react-native/React/Modules/RCTSourceCode.m

31 lines
508 B
Mathematica
Raw Normal View History

/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "RCTSourceCode.h"
2015-04-20 14:04:53 -07:00
#import "RCTBridge.h"
@implementation RCTSourceCode
RCT_EXPORT_MODULE()
2015-04-20 14:04:53 -07:00
@synthesize bridge = _bridge;
+ (BOOL)requiresMainQueueSetup
{
return NO;
}
- (NSDictionary<NSString *, id> *)constantsToExport
2015-09-02 13:51:53 -07:00
{
return @{
@"scriptURL": self.bridge.bundleURL.absoluteString ?: @"",
};
2015-09-02 13:51:53 -07:00
}
@end