react-native/React/Modules/RCTSourceCode.m

31 lines
514 B
Mathematica
Raw Normal View History

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 21:04:53 +00:00
#import "RCTBridge.h"
@implementation RCTSourceCode
RCT_EXPORT_MODULE()
2015-04-20 21:04:53 +00:00
@synthesize bridge = _bridge;
+ (BOOL)requiresMainQueueSetup
{
return NO;
}
- (NSDictionary<NSString *, id> *)constantsToExport
2015-09-02 20:51:53 +00:00
{
return @{
@"scriptURL": self.bridge.bundleURL.absoluteString ?: @"",
};
2015-09-02 20:51:53 +00:00
}
@end