OneSignal / react-onesignal

React OneSignal Module: Make it easy to integrate OneSignal with your React App!
Other
73 stars 26 forks source link

2.0 Release #47

Closed rgomezp closed 3 years ago

rgomezp commented 3 years ago

Context

The React OneSignal NPM package currently lacks several OneSignal WebSDK functions. The package is also currently dependent on an initialization helper set-up hook. This ensures OneSignal is ready to execute the functions before doing so. The initialization function is also different from our WebSDK initialization. It would be nice to have consistency.

2.0 Release

This release addresses the above points by adding all supported functions, changing the initialization function, and removing the need for the set-up hook.

We hope the changes will greatly simplify the package and improve usability. We also want to ensure adopters have access to all of the most up-to-date functions and features provided by OneSignal.

Additionally, the release includes some clean-up:

The events object is no longer needed either. In its place, the event handlers can now be added directly via the on function to match the WebSDK 1:1.

This release also adds full Typescript support for all functions.

Learn more here