diff --git a/Libraries/NativeApp/RCTNativeAppEventEmitter.js b/Libraries/NativeApp/RCTNativeAppEventEmitter.js new file mode 100644 index 000000000..38ccb0dcf --- /dev/null +++ b/Libraries/NativeApp/RCTNativeAppEventEmitter.js @@ -0,0 +1,18 @@ +/** + * 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. + * + * @providesModule RCTNativeAppEventEmitter + * @flow + */ +'use strict'; + +var EventEmitter = require('EventEmitter'); + +var RCTNativeAppEventEmitter = new EventEmitter(); + +module.exports = RCTNativeAppEventEmitter; diff --git a/Libraries/react-native/react-native.js b/Libraries/react-native/react-native.js index b94b172f3..c81183b5b 100644 --- a/Libraries/react-native/react-native.js +++ b/Libraries/react-native/react-native.js @@ -59,6 +59,7 @@ var ReactNative = Object.assign(Object.create(require('React')), { // Plugins DeviceEventEmitter: require('RCTDeviceEventEmitter'), + NativeAppEventEmitter: require('RCTNativeAppEventEmitter'), NativeModules: require('NativeModules'), requireNativeComponent: require('requireNativeComponent'),