2015-03-23 13:28:42 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-16 18:24:55 -08: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 13:28:42 -07:00
|
|
|
*/
|
2015-03-12 17:49:54 -07:00
|
|
|
|
|
|
|
#import "RCTSourceCode.h"
|
|
|
|
|
2015-04-20 14:04:53 -07:00
|
|
|
#import "RCTBridge.h"
|
2015-03-12 17:49:54 -07:00
|
|
|
|
|
|
|
@implementation RCTSourceCode
|
|
|
|
|
2015-04-08 05:42:43 -07:00
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
|
2015-04-20 14:04:53 -07:00
|
|
|
@synthesize bridge = _bridge;
|
|
|
|
|
2017-08-07 06:45:24 -07:00
|
|
|
+ (BOOL)requiresMainQueueSetup
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
2015-11-14 10:25:00 -08:00
|
|
|
- (NSDictionary<NSString *, id> *)constantsToExport
|
2015-09-02 13:51:53 -07:00
|
|
|
{
|
2016-11-18 04:59:40 -08:00
|
|
|
return @{
|
2017-11-07 16:44:51 -08:00
|
|
|
@"scriptURL": self.bridge.bundleURL.absoluteString ?: @"",
|
2016-11-18 04:59:40 -08:00
|
|
|
};
|
2015-09-02 13:51:53 -07:00
|
|
|
}
|
|
|
|
|
2015-03-12 17:49:54 -07:00
|
|
|
@end
|