-
Notifications
You must be signed in to change notification settings - Fork 9
Switching Between React Native Architectures
The plugin supports both the legacy bridge architecture and the new architecture (TurboModules/Fabric). You can switch between architectures depending on your needs.
In order to switch between new and legacy architecture, you can do it by changing the flag in your apps gradle.properties file.
newArchEnabled=truenewArchEnabled=falseAfter changing this flag clean the build of application:
cd android && ./gradlew clean
Reinstall and run the app.
In order to switch between new and legacy architecture, you can do it by changing the two flags in your apps Podfile file. You need to change the values of RCT_NEW_ARCH_ENABLED and new_arch_enabled.
It is important that values of both flags should match (either enabled or disabled).
ENV['RCT_NEW_ARCH_ENABLED'] = '1' # Enable new architecture
...
use_react_native!(
...
:new_arch_enabled => true, # Enable new architecture
)
ENV['RCT_NEW_ARCH_ENABLED'] = '0' # Disable new architecture (legacy)
...
use_react_native!(
...
:new_arch_enabled => fasle, # Disable new architecture (use legacy)
)
After changing these values: Run:
cd ios && pod install
Rebuild and run the app
If you have any questions or suggestions, feel free to send an email to [email protected] or create an issue.
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
- Privacy settings
- In‐app chat
- WebRTC Calls and UI
- Migration guides
- JSON Web Token (JWT) structure and generation example