Support For React Native New Arch BRIDGELESS Mode
Please use the Discussion board if you want to get some help. Please use issues to report bugs.
Description
The library needs to be updated to support React Native's New Architecture in Bridgeless mode. This involves migrating the native modules to the new Turbo Modules system and ensuring compatibility with the latest React Native architecture changes.
Expected Behavior
- All in-app purchase functionality should work seamlessly in the new architecture
- Native modules should be properly initialized in Bridgeless mode
- Performance improvements from new architecture should be maintained
- Full compatibility with both legacy and new architecture modes
Screenshots
N/A - This is an architectural update
Environment:
- react-native-iap: 12.x.x
- react-native: 0.73.x (with new architecture enabled)
- Platforms (iOS, Android, emulator, simulator, device): All platforms
To Reproduce
Steps to reproduce the behavior:
- Create a new React Native project with new architecture enabled
- Install react-native-iap
- Enable Bridgeless mode in the app
- Try to use any IAP functionality
- Module fails to initialize properly in Bridgeless mode
Additional Context
This update will require:
- Implementing TurboModules for both iOS and Android
- Updating the native code to work with Fabric renderer
- Testing compatibility with both legacy and new architecture modes
- Ensuring proper type definitions for TypeScript users
- Updating the documentation to reflect new architecture support
Since this is a major architectural change, it would require careful testing and possibly a major version bump.
This might be relevant https://github.com/hyochan/react-native-iap/discussions/2754 they said they were planning a migration to expo modules
I’m closing all issues reported in versions below 14, as the library now supports the new architecture with NitroModules and has been completely revamped.