All notable changes to this project will be documented in this file.
react-native-iterate
adheres to Semantic Versioning.
Fixed
- Fixed a bug that caused the user auth token not to be cleared when Iterate.reset() was called until the app was closed
Added
- Iterate.reset() can now safely be called before Iterate.init()
Fixed
- Fixed a bug that caused API requests for new users to use the incorrect auth token until Iterate.init was executed again
Fixed
- Fixed an error that occurred when attempting to remove data in the Iterate.reset() method that had not been set
Added
- 'dismiss' event now includes a 'progress' property that includes how far the user got in the survey
- All events now include the survey they are related to (helpful when getting events on multiple surveys)
- New 'displayed' event which is fired when the survey or prompt are displayed
Added
- Add Iterate.onEvent callback to get additional interaction events on the survey like 'dismiss' and 'survey-complete'
Breaking Changes
See the README for the updated way to initialize Iterate
- Changes from the withIterate high-order component to the component
- Iterate.init(...) is now required to be called before any other methods
- Changed the API for sending event properties from happening in the Identify method, to the sendEvent method
- The user now provides their own safe area
Optimizations
- All initialization is now lazy-loaded to maximize app boot performance
- Additional error handling
Added
- Add a 'reset' method that clears all data from local storage and the local redux store. This is useful when logging out a user to ensure their data isn't associated with the next logged in user
- Exports StorageInterface interface
Added
- withIterate now requires a storage facility to be passed in
Removed
- react-native-encrypted-storage is no longer a required peer dependency
Added
- Shipped version 1.0.0
Fixed
- Use the correct survey color for the prompt button
Fixed
- Link to the correct typescript definition file
Fixed
- Include redux as a dependency instead of relying on a peerDependency
Fixed
- UI bug fixes for devices without a notch
Added
- Loading indicator on the survey
Released on 2021-02-21.
Added
- Initial release of react-native-iterate.