react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

Support For React Native New Arch BRIDGELESS Mode

Open GideonAgboba opened this issue 1 year ago • 1 comments

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:

  1. Create a new React Native project with new architecture enabled
  2. Install react-native-iap
  3. Enable Bridgeless mode in the app
  4. Try to use any IAP functionality
  5. 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.

GideonAgboba avatar Jan 16 '25 12:01 GideonAgboba

This might be relevant https://github.com/hyochan/react-native-iap/discussions/2754 they said they were planning a migration to expo modules

elsa17z avatar Mar 31 '25 12:03 elsa17z

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.

hyochan avatar Sep 30 '25 18:09 hyochan