Question about React Native Runtime with Expo
Environment
@rive-app/react-native: 0.2.6
react-native-nitro-modules: 0.34.1
expo: 55.0.4
react-native: 0.83.2
react: 19.2.0
EAS Build profile: ios-simulator (extends development, simulator: true)
EAS CLI: >= 18.0.6
Build service: EAS Build (cloud)
Xcode Build Errors
- '(lambda at .../RiveRuntime-Swift.h:3603:62)' has different definitions in different modules; first difference is definition in module 'RiveRuntime.Swift' found method 'operator()' with body
- 'swift::Optional::init' has different definitions in different modules; definition in module 'RiveRuntime.Swift' first difference is 1st parameter with name 'some_'
- 'swift::UTF8View' has different definitions in different modules; first difference is definition in module 'NitroModules.Swift' found method 'getDescription'
- 'swift::String' has different definitions in different modules; first difference is definition in module 'NitroModules.Swift' found method 'get_nfcCodeUnits'
- 'swift::Optional' has different definitions in different modules; first difference is definition in module 'NitroModules.Swift' found method 'init' with 1st parameter named 'value'Steps to Reproduce
Create an Expo 55 project with React Native 0.83
Install @rive-app/react-native@^0.2.6 and react-native-nitro-modules@^0.34.1
Run eas build --profile ios-simulator
Build fails at "Run fastlane" step with the above errors
What I've Tried
Upgrading react-native-nitro-modules to 0.35.0: Could not install because @rive-app/react-native@0.2.6 declares peerDependencies capping nitro-modules at >=0.33.2 <0.35.0
The project has no custom Podfile or expo-build-properties configuration
Questions
Is there a known workaround or build setting to suppress these ODR violations?
Are there plans to update @rive-app/react-native to support react-native-nitro-modules@0.35.0, which may resolve the interop header conflicts?
Would falling back to the legacy rive-react-native package be recommended as a temporary workaround?
Much Thanks!