2015-03-23 20:28:42 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-03-23 20:28:42 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-03-23 20:28:42 +00:00
|
|
|
*/
|
2015-03-13 00:49:54 +00:00
|
|
|
|
|
|
|
#import "RCTSourceCode.h"
|
|
|
|
|
2015-04-20 21:04:53 +00:00
|
|
|
#import "RCTBridge.h"
|
2015-03-13 00:49:54 +00:00
|
|
|
|
|
|
|
@implementation RCTSourceCode
|
|
|
|
|
2015-04-08 12:42:43 +00:00
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
|
2015-04-20 21:04:53 +00:00
|
|
|
@synthesize bridge = _bridge;
|
|
|
|
|
2017-08-07 13:45:24 +00:00
|
|
|
+ (BOOL)requiresMainQueueSetup
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
2015-11-14 18:25:00 +00:00
|
|
|
- (NSDictionary<NSString *, id> *)constantsToExport
|
2015-09-02 20:51:53 +00:00
|
|
|
{
|
2016-11-18 12:59:40 +00:00
|
|
|
return @{
|
2017-11-08 00:44:51 +00:00
|
|
|
@"scriptURL": self.bridge.bundleURL.absoluteString ?: @"",
|
2016-11-18 12:59:40 +00:00
|
|
|
};
|
2015-09-02 20:51:53 +00:00
|
|
|
}
|
|
|
|
|
2015-03-13 00:49:54 +00:00
|
|
|
@end
|