0.1.2 • Published 1 year ago

react-native-tualo-broadcast-receiver v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-tualo-broadcast-receiver

broadcast receiver for react native

Installation

npm install react-native-tualo-broadcast-receiver

Usage

import { register } from 'react-native-tualo-broadcast-receiver';

// ...
if (React.Platform.OS=='android'){
const eventEmitter = new NativeEventEmitter(NativeModules.TualoBroadcastReceiverModule);
    eventListener = eventEmitter.addListener("com.my.fancy.INTENT", (event) => {
    console.log(event) 
});
}
// ...
const result = await register(['com.my.fancy.INTENT']);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library