bitespeed-react-native
v0.1.1
Published
Bitespeed React Native SDK
Downloads
3
Maintainers
Readme
bitespeed-react-native
Bitespeed React Native SDK
Installation
npm install bitespeed-react-native
Usage
import fcmService from 'bitespeed-react-native';
React.useEffect(() => {
const tokenListener = fcmService.addListener('FCMToken', (token) => {
console.log('Received FCM Token:', token);
});
const notificationListener = fcmService.addListener(
'NotificationReceived',
(notification) => {
console.log('Notification Received', JSON.stringify(notification));
}
);
const clickListener = fcmService.addListener(
'NotificationClick',
(notification) => {
console.log('Notification Clicked', JSON.stringify(notification));
}
);
return () => {
tokenListener.remove();
notificationListener.remove();
clickListener.remove();
};
}, []);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT