[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,
DatePickerAndroid: true,
DatePickerIOS: true,
DeviceEventEmitter: true,
DeviceInfo: true,
Dimensions: 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 VibrationIOS from './exports/VibrationIOS';
// plugins
import DeviceEventEmitter from './exports/DeviceEventEmitter';
export {
// top-level API
createElement,
@@ -207,5 +210,7 @@ export {
Systrace,
TimePickerAndroid,
TVEventHandler,
VibrationIOS
VibrationIOS,
// plugins
DeviceEventEmitter
};