File tree Expand file tree Collapse file tree
packages/create-react-native-library/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55<% } -%>
66
77#ifdef RCT_NEW_ARCH_ENABLED
8- #import " RN<%- project.name -%>Spec.h"
8+ #import " generated/RN<%- project.name -%>/ RN<%- project.name -%>Spec.h"
99
1010@interface <%- project.name -%> : NSObject <Native<%- project.name -%>Spec>
1111#else
Original file line number Diff line number Diff line change 11#ifdef RCT_NEW_ARCH_ENABLED
22#import " <%- project.name -%>View.h"
33
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"
88
99#import " RCTFabricComponentsPlugins.h"
1010#import " Utils.h"
Original file line number Diff line number Diff line change 11#import " <%- project.name -%>View.h"
22
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"
77
88#import " RCTFabricComponentsPlugins.h"
99
@@ -58,13 +58,13 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &
5858{
5959 NSString *noHashString = [stringToConvert stringByReplacingOccurrencesOfString: @" #" withString: @" " ];
6060 NSScanner *stringScanner = [NSScanner scannerWithString: noHashString];
61-
61+
6262 unsigned hex;
6363 if (![stringScanner scanHexInt: &hex]) return nil ;
6464 int r = (hex >> 16 ) & 0xFF ;
6565 int g = (hex >> 8 ) & 0xFF ;
6666 int b = (hex) & 0xFF ;
67-
67+
6868 return [UIColor colorWithRed: r / 255 .0f green: g / 255 .0f blue: b / 255 .0f alpha: 1 .0f ];
6969}
7070
You can’t perform that action at this time.
0 commit comments