react-native/React/Modules/RCTSourceCode.m

28 lines
584 B
Mathematica
Raw Normal View History

/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#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;
- (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