Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rive-react-native + Expo Go #163

Open
lisherwin opened this issue Mar 17, 2023 · 6 comments
Open

rive-react-native + Expo Go #163

lisherwin opened this issue Mar 17, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@lisherwin
Copy link

lisherwin commented Mar 17, 2023

Description

I am building an app with Expo Go and I am wondering if rive-react-native currently works in an Expo Go app. I've thoroughly read the documentation and I am still unsure. I see that installation steps include updating pods manually, which would not work in Expo Go. Additionally I see a line "The Rive React Native runtime does not have support for Expo at this time" indicating similarly that rive-react-native would not work in an Expo Go app.

If this is not yet supported, are there plans to have Rive supported in Expo Go apps? Is there a timeline for this?
TYIA

Provide a Repro

Not Available. Just that I am unable to pod install for an Expo Go app.

Expected behavior

Would love for rive-react-native to work in Expo Go!

Screenshots

Device & Versions (please complete the following information)

  • Device: iOS Simulator

Additional context

@HayesGordon HayesGordon added the enhancement New feature or request label Mar 17, 2023
@HayesGordon
Copy link
Contributor

Hi @lisherwin, we're definitely considering adding better expo support, though no timeline for that as of now. The line in the docs about the RN runtime not having support in Expo was added at a time when it did not work, and Expo did not allow you to add Native modules easily.

There are community docs in this issue that mentions some considerations for adding Rive to an Expo app, that you may want to take a look at: #123

Expo allows you to add libraries with custom native code: https://docs.expo.dev/workflow/customizing/#generate-native-projects-with-prebuild

Here is an example Rive expo app: https://github.com/lklima/rive-animated-app

@iway1
Copy link

iway1 commented Mar 26, 2023

I don't think it's realistic to expect that Rive ever works with Expo Go since it depends on their native SDKs which wouldn't really make sense to have included in Expo Go.

It should be possible within the managed workflow (and currently is for iOS, I don't think it works on android though)

@ashuvssut
Copy link

@iway1 It is possible

take example of notifee. It depends on native SDKs. So expo has a "config-plugin" for notifee to make it work in managed expo dev env
see https://github.com/expo/config-plugins.

@iway1
Copy link

iway1 commented Mar 27, 2023

@ashuvssut config plugins can allow it to work with expo's managed workflow, but not Expo Go which is what this issue is.

A config plugin for the managed workflow doesn't seem to be necessary at the moment on iOS (it already works in the managed workflow for iOS), but maybe it would be helpful for Android?

@itsyoboieltr
Copy link

Expo Go + Web support with metro would be the premium animation experience really in cross-platform development :D

@t1gu1
Copy link

t1gu1 commented Jun 24, 2024

I just create an issue, almost a doc on how to make Rive works on web and ios/Android.
#257

Also in that example, expo go still works, but the animation won't (Will display a placeholder image)
Still need to build the app for IOS/Android to see the animation. (At least you can still use expo go when develloping other things)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants