We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Pressing on fullscreen button forces re-rendering
How can i solve this issue, it only happens on android,
Here is the code:
import React, { useState } from 'react'; import { View } from 'react-native'; import YoutubePlayer from 'react-native-youtube-iframe'; interface YoutubePlayerProps { mediaUrl: string; } const YoutubePlayerComponent: React.FC<YoutubePlayerProps> = ({ mediaUrl }) => { const getVideoId = (url: string): string => { const videoIdMatch = url.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/); return videoIdMatch ? videoIdMatch[1] : ''; }; return ( <View> <YoutubePlayer height={350} videoId={getVideoId(mediaUrl)} onError={(e) => console.error('Error loading video', e)} /> </View> ); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Pressing on fullscreen button forces re-rendering
WhatsApp.Video.2024-10-19.at.13.13.31.mp4
How can i solve this issue, it only happens on android,
Here is the code:
The text was updated successfully, but these errors were encountered: