mirror of
https://github.com/status-im/react-native-config.git
synced 2025-02-28 23:10:44 +00:00
27 lines
469 B
Objective-C
27 lines
469 B
Objective-C
#import "ReactNativeConfig.h"
|
|
#import "GeneratedDotEnv.m" // written during build by BuildDotenvConfig.ruby
|
|
|
|
@implementation ReactNativeConfig
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
+ (BOOL)requiresMainQueueSetup
|
|
{
|
|
return YES;
|
|
}
|
|
|
|
+ (NSDictionary *)env {
|
|
return (NSDictionary *)DOT_ENV;
|
|
}
|
|
|
|
+ (NSString *)envFor: (NSString *)key {
|
|
NSString *value = (NSString *)[self.env objectForKey:key];
|
|
return value;
|
|
}
|
|
|
|
- (NSDictionary *)constantsToExport {
|
|
return DOT_ENV
|
|
}
|
|
|
|
@end
|