Description
Facing build error on latest @rive-app/react-native@0.4.6 version.
Cannot assign value of type 'RiveArtboard??' to type 'RiveArtboard?'
error in HybridRiveFile.swift:L57
Provide a Repro
- Just did yarn install and then pod install
- When building on xcode 26.3, faced this error.
Source .riv/.rev file
Expected behavior
The build should work normally.
Screenshots
Device & Versions (please complete the following information)
- Device: [e.g. Android Emulator, iOS Simulator] - iOS simulator iPhone 17
- OS: [e.g. Android SDK API Level 30, iOS 14.5] - iOS 26.3
- React Native Version: [Check your package.json or run
npx react-native info e.g.: 0.79.2] 0.81.1
- Expo Version (if applicable): [Check your package.json or run
npx expo-env-info | grep 'expo:' e.g.: ~54.0.0]
@rive-app/react-native Version: [Check your package.json e.g.: 0.1.0] 0.4.6
Additional context
Adding the suggested fix by xcode to safe cast it worked and then the build worked fine along with all other features.
Description
Facing build error on latest @rive-app/react-native@0.4.6 version.
Cannot assign value of type 'RiveArtboard??' to type 'RiveArtboard?'
error in HybridRiveFile.swift:L57
Provide a Repro
Source
.riv/.revfileExpected behavior
The build should work normally.
Screenshots
Device & Versions (please complete the following information)
npx react-native infoe.g.:0.79.2] 0.81.1npx expo-env-info | grep 'expo:'e.g.:~54.0.0]@rive-app/react-nativeVersion: [Check your package.json e.g.:0.1.0] 0.4.6Additional context
Adding the suggested fix by xcode to safe cast it worked and then the build worked fine along with all other features.