Denver Crossbourne
TTCTheo's Typesafe Cult
•Created by Denver Crossbourne on 8/6/2024 in #questions
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!!
3 replies