Skip to content

Rive is not working in Expo SDK 54 #368

@MarroosSK

Description

@MarroosSK

Hello,

after creating new expo react native project with SDK 54, RN 0.81 my project is not launching. I have finished 1 app about 2 weeks ago with SDK 53 RN 0.73 and Rive worked so i guess issue is related to new SDK/ RN versions? Thank you

Description

i have done following steps:

  • npx create-expo-app@latest .
  • npm i expo-custom-assets (created /src/resources where i did put my .riv file)
  • npx expo prebuild
  • npx expo run:android (crash happens here)

Device & Versions

  • Device: Android device through USB
  • Versions Expo 54.0.8, RN 0.81.4, Rive ^9.6.0

Additional context

console throws at me this:

Task :rive-react-native:compileDebugKotlin FAILED
e: file:///home/marroos/expo-apps/lieky-app/node_modules/rive-react-native/android/src/main/java/com/rivereactnative/RiveReactNativeView.kt:809:36 Argument type mismatch: actual type is 'String?', but 'String' was expected.
e: file:///home/marroos/expo-apps/lieky-app/node_modules/rive-react-native/android/src/main/java/com/rivereactnative/RiveReactNativeViewManager.kt:17:12 Return type mismatch: expected 'MutableMap<String, Map<String, String>>?', actual 'Map<String, Map<String, String>>'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions