### Events Keep in mind: - Events share namespace (so come up with an app-wide naming convention) - If you have several instances of a component, you need to pass an identifier (like a view's `reactTag`) to identify it in the handler. On the js end, `reactTag` maps to `this.props.rootTag`. #### React ```js import { NativeEventEmitter, NativeModules } from 'react-native' const videoPlayer = NativeModules.VideoPlayer const videoPlayerEmitter = new NativeEventEmitter(VideoPlayer) const subscription = videoPlayerEmitter.addListener('video-progress', (progress) => console.log(progress)) // Don't forget to unsubscribe, typically in `componentWillUnmount` subscription.remove() ``` #### iOS [docs](https://facebook.github.io/react-native/docs/native-modules-ios.html#sending-events-to-javascript) ```obj-c // ```