12.0.0
This is a major release with important breaking changes, please see our migration guide for more info on how to update your current Batch implementation.
Expo
- Removed Expo support from this repository. You should now use our new dedicated Batch-Expo-Plugin.
Core
- Batch requires react-native v0.77 or higher.
- Removed support for the old React Native architecture (Native Module). The plugin is now a pure Turbo Module and requires the new architecture enabled.
- Batch no longer requires a custom React Native CLI configuration. If
react-native.config.jsonly exists for Batch, delete it or remove the@batch.com/react-native-pluginentry.
Android
- The plugin is no longer auto-initialized. You should now call
RNBatchModule.initialize(application)fromMainApplication.onCreate()to complete setup. - The initial state of the "Do Not Disturb" (DnD) feature is no longer read from the Android resources. You should now add a meta-data tag
batch_do_not_disturb_initial_stateto the section of yourAndroidManifest.