Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6213

Webview iframe doesn't work, it doesn't appear on the screen

$
0
0

I need to insert video in my app. I use WebView to insert iframe, but it doesn't work.

const Course = () => {  const route = useRoute();  const course = useSelector((state: RootState) => state.profile.course);  const dispatch = useDispatch();  const {id}: any = route.params;  useEffect(() => {    dispatch(getCourse(id))  }, []);  return (<SafeAreaView><View><TextHeader>{course?.title}</TextHeader><WebView           style={{width: course?.frame_width, height: course?.frame_heigth}}          source={{uri: course?.video}}        /></View></SafeAreaView>  );};

Why does it happen? And how can I fix it?


Viewing all articles
Browse latest Browse all 6213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>