I need to embet a YouTube video in my Expo app. Need to support web too.

Currently I import a library called "react-native-youtube-iframe" to embed YT videos into my iOS/Android app, but it keeps failing when I try to run the app on the web (browser). I tried doing conditional imports, but I can't figure it out. I keep getting the same error about "Unable to resolve module react-native-web-webview from..." I tried setting platform extensions like YoutubePlayer.web.js and such, but that didn't help either. Is there a good solution to this problem? I really want my app to work on the web as well. Thank you!!
1 Reply
Denver Crossbourne
Denver CrossbourneOP4mo ago
I just fixed it!!! Apparently that library falls back to react-native-web-webview if it's on the web, but it has to be installed separately :edge:
Want results from more Discord servers?
Add your server