React-native-youtube: Expo support?

Created on 20 May 2017  路  4Comments  路  Source: davidohayon669/react-native-youtube

I tried out to use this library with expo but stuck with an error.
Are there any plans for expo support?

help wanted

Most helpful comment

AFAIK, Expo is a way to run apps that don't require native-linked libraries. RN-YT is a native-linked library, so it won't work in Expo. Unless Expo decides to include RN-YT (and you'd have to discuss that with the Expo team). Or unless you decide to export your Expo app to ExponentKit (I think that's the correct route.)

You're of course welcome to use the YT iframe in a RN WebView, which I believe should work within an Expo app. But will be a bit less "native" feeling.

All 4 comments

I'm not familiar with Expo.
If anybody is willing to add the support, you're welcome

AFAIK, Expo is a way to run apps that don't require native-linked libraries. RN-YT is a native-linked library, so it won't work in Expo. Unless Expo decides to include RN-YT (and you'd have to discuss that with the Expo team). Or unless you decide to export your Expo app to ExponentKit (I think that's the correct route.)

You're of course welcome to use the YT iframe in a RN WebView, which I believe should work within an Expo app. But will be a bit less "native" feeling.

If anyone is having issues with a detached Expo app, make sure to add an appropriate path to Pods/Headers/Public under Header Search Paths for the RCTYouTube target in your project.

https://docs.expo.io/versions/latest/guides/expokit.html#changing-native-dependencies

Was this page helpful?
0 / 5 - 0 ratings