diff --git a/src/react/native/api/DeviceEventEmitter.hx b/src/react/native/api/DeviceEventEmitter.hx new file mode 100644 index 0000000..0ddfc83 --- /dev/null +++ b/src/react/native/api/DeviceEventEmitter.hx @@ -0,0 +1,6 @@ +package react.native.api; + +@:jsRequire('react-native', 'DeviceEventEmitter') +extern class DeviceEventEmitter { + static public function addListener(eventName : String, cb : Dynamic -> Void) : Void; +}