mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
17 lines
460 B
JavaScript
17 lines
460 B
JavaScript
|
/**
|
||
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
||
|
*
|
||
|
* @providesModule NativeModules
|
||
|
*/
|
||
|
'use strict';
|
||
|
|
||
|
var NativeModules = require('BatchedBridge').RemoteModules;
|
||
|
|
||
|
// Dirty hack to support old (RK) and new (RCT) native module name conventions
|
||
|
Object.keys(NativeModules).forEach((moduleName) => {
|
||
|
var rkModuleName = moduleName.replace(/^RCT/, 'RK');
|
||
|
NativeModules[rkModuleName] = NativeModules[moduleName];
|
||
|
});
|
||
|
|
||
|
module.exports = NativeModules;
|