Features
- Legacy Architecture Deprecation: The React Native legacy architecture is now deprecated. A warning will be displayed when using the legacy architecture. Support for the legacy architecture will be removed in a future version. Please migrate to the New Architecture. For more information, see the React Native New Architecture documentation.
- Updated the SDK to use React Native 0.83.0
- Updated the Android native Swrve dependency to automatically use the latest minor version of release 12.X.X. For more information on the supported features and fixes, see the Android SDK release notes.
- Added new
refreshContentAPI to manually refresh campaigns and resources with callback support for completion status - Improved TypeScript type definitions for all public APIs including Embedded Message, Message Center, Push Inbox, and In-App Message APIs
- Added comprehensive JSDoc documentation to all public APIs for better IntelliSense support
- Migrated SDK to
react-native-builder-bobproject structure for improved build tooling and developer experience - Added JavaScript/TypeScript unit tests for the SDK
- Replaced
StringMaptype withRecord<string, string>for better TypeScript consistency (StringMapremains supported but deprecated) - Updated all void-returning methods to properly return
Promise<void>instead ofPromise<any>
Fixes
- Fixed an issue where
userResourcesUpdatedListenercallbacks were incorrectly gated by the push listener check - Fixed type inconsistency where
SwrvePushInboxMessage.messageIdtype didn’t match Push Inbox method parameters - Fixed
IapRewardinterface incorrectly using single-element tuples instead of arrays - Fixed an issue with In-App Message clipboard functionality