@connected-home/react-native-push-notification-hive

React Native Local and Remote Notifications for Hive app

Stats

StarsIssuesVersionUpdatedCreatedSize
@connected-home/react-native-push-notification-hive
3.8.02 years ago3 years agoMinified + gzip package size for @connected-home/react-native-push-notification-hive in KB

Readme

React Native Push Notifications

Hive-specific changes

Since this lib is not yet published, in order to use it we'll need to tell hive-soaring-sparrow to replace the original lib with this fork. Assumptions:

  • You have hive-soaring-sparrow cloned in your current directory, with yarn install etc. done already done (RN project ready to work)
  • You already cloned this repo right next to your hive-soaring-sparrow directory
  • You are currently in the hive-soaring-sparrow directory

Do the following to replace the original lib in the project:

rm -rf node_modules/@connected-home/react-native-push-notification-hive
yarn add ../react-native-push-notification-hive

You can use the above each time you want to rebuild the native library to see changes in the project. TODO: Find out a way for the project to fetch the library from the Git repo.

When starting the bundler, it might be necessary to clear its cache too:

rm -rf /tmp/metro-bundler-cache-* && npm start --reset-cache

Breaking changes

3.1.0

remoteNotificationsRegistered event is now sent with two parameters (deviceToken and tokenType) instead of one for Android. Clients must use the tokenType to determine which service the token should be sent to.

===

See the docs for original library at: https://github.com/zo0r/react-native-push-notification

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.