[fix] Export DeviceEventEmitter

Close #1402
This commit is contained in:
Evan Bacon
2019-07-16 14:04:55 -07:00
committed by Nicolas Gallagher
parent 45f94eb43d
commit 8f5e7d4e14
3 changed files with 9 additions and 1 deletions
@@ -17,6 +17,7 @@ module.exports = {
ColorPropType: true, ColorPropType: true,
DatePickerAndroid: true, DatePickerAndroid: true,
DatePickerIOS: true, DatePickerIOS: true,
DeviceEventEmitter: true,
DeviceInfo: true, DeviceInfo: true,
Dimensions: true, Dimensions: true,
DrawerLayoutAndroid: true, DrawerLayoutAndroid: true,
@@ -0,0 +1,2 @@
import RCTDeviceEventEmitter from '../../vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter';
export default RCTDeviceEventEmitter;
+6 -1
View File
@@ -104,6 +104,9 @@ import TimePickerAndroid from './exports/TimePickerAndroid';
import TVEventHandler from './exports/TVEventHandler'; import TVEventHandler from './exports/TVEventHandler';
import VibrationIOS from './exports/VibrationIOS'; import VibrationIOS from './exports/VibrationIOS';
// plugins
import DeviceEventEmitter from './exports/DeviceEventEmitter';
export { export {
// top-level API // top-level API
createElement, createElement,
@@ -207,5 +210,7 @@ export {
Systrace, Systrace,
TimePickerAndroid, TimePickerAndroid,
TVEventHandler, TVEventHandler,
VibrationIOS VibrationIOS,
// plugins
DeviceEventEmitter
}; };