Skip to content

Instantly share code, notes, and snippets.

@flopshot
Last active March 15, 2021 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flopshot/da635cb07fe0fba663ab5a7c4b1307a3 to your computer and use it in GitHub Desktop.
Save flopshot/da635cb07fe0fba663ab5a7c4b1307a3 to your computer and use it in GitHub Desktop.
WhiteLabelConfig.m
// WhiteLabelConfig.m
@implementation WhiteLabelConfig
RCT_EXPORT_MODULE(WhiteLabelConfig);
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getAppName) {
return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
}
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getPrimaryColor) {
return @"#fdf6e3";
}
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getPrimaryTextColor) {
return @"#657b83";
}
RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(getGreetingText) {
return @"Welcome";
}
@end
@penchef
Copy link

penchef commented Mar 15, 2021

add #import "WhiteLabelConfig.h" at the top to fix these errors:

Screen Shot 2021-03-15 at 11 40 09 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment