File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
packages/create-react-native-library/templates Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 5
5
<% } -%>
6
6
7
7
#ifdef RCT_NEW_ARCH_ENABLED
8
- #import " RN<%- project.name -%>Spec.h"
8
+ #import " generated/RN<%- project.name -%>Spec/ RN<%- project.name -%>Spec.h"
9
9
10
10
@interface <%- project.name -%> : NSObject <Native<%- project.name -%>Spec>
11
11
#else
Original file line number Diff line number Diff line change 1
1
#ifdef RCT_NEW_ARCH_ENABLED
2
2
#import " <%- project.name -%>View.h"
3
3
4
- #import " ComponentDescriptors.h"
5
- #import " EventEmitters.h"
6
- #import " Props.h"
7
- #import " RCTComponentViewHelpers.h"
4
+ #import " generated/<%- project.name -%>ViewSpec/ ComponentDescriptors.h"
5
+ #import " generated/<%- project.name -%>ViewSpec/ EventEmitters.h"
6
+ #import " generated/<%- project.name -%>ViewSpec/ Props.h"
7
+ #import " generated/<%- project.name -%>ViewSpec/ RCTComponentViewHelpers.h"
8
8
9
9
#import " RCTFabricComponentsPlugins.h"
10
10
#import " Utils.h"
Original file line number Diff line number Diff line change 1
1
#import " <%- project.name -%>View.h"
2
2
3
- #import " ComponentDescriptors.h"
4
- #import " EventEmitters.h"
5
- #import " Props.h"
6
- #import " RCTComponentViewHelpers.h"
3
+ #import " generated/<%- project.name -%>ViewSpec/ ComponentDescriptors.h"
4
+ #import " generated/<%- project.name -%>ViewSpec/ EventEmitters.h"
5
+ #import " generated/<%- project.name -%>ViewSpec/ Props.h"
6
+ #import " generated/<%- project.name -%>ViewSpec/ RCTComponentViewHelpers.h"
7
7
8
8
#import " RCTFabricComponentsPlugins.h"
9
9
@@ -58,13 +58,13 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &
58
58
{
59
59
NSString *noHashString = [stringToConvert stringByReplacingOccurrencesOfString: @" #" withString: @" " ];
60
60
NSScanner *stringScanner = [NSScanner scannerWithString: noHashString];
61
-
61
+
62
62
unsigned hex;
63
63
if (![stringScanner scanHexInt: &hex]) return nil ;
64
64
int r = (hex >> 16 ) & 0xFF ;
65
65
int g = (hex >> 8 ) & 0xFF ;
66
66
int b = (hex) & 0xFF ;
67
-
67
+
68
68
return [UIColor colorWithRed: r / 255 .0f green: g / 255 .0f blue: b / 255 .0f alpha: 1 .0f ];
69
69
}
70
70
You can’t perform that action at this time.
0 commit comments