File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- import { EventEmitter } from 'events' ;
21import React , {
2+ useRef ,
3+ useMemo ,
4+ useEffect ,
35 forwardRef ,
46 useCallback ,
5- useEffect ,
67 useImperativeHandle ,
7- useMemo ,
8- useRef ,
98} from 'react' ;
109import { Platform , StyleSheet , View } from 'react-native' ;
10+ import { EventEmitter } from 'events' ;
11+ import { WebView } from './WebView' ;
1112import {
12- CUSTOM_USER_AGENT ,
13- DEFAULT_BASE_URL ,
1413 PLAYER_ERROR ,
1514 PLAYER_STATES ,
15+ DEFAULT_BASE_URL ,
16+ CUSTOM_USER_AGENT ,
1617} from './constants' ;
1718import {
18- MAIN_SCRIPT ,
19- PLAYER_FUNCTIONS ,
2019 playMode ,
2120 soundMode ,
21+ MAIN_SCRIPT ,
22+ PLAYER_FUNCTIONS ,
2223} from './PlayerScripts' ;
2324import { deepComparePlayList } from './utils' ;
24- import { WebView } from './WebView' ;
2525
2626const YoutubeIframe = ( props , ref ) => {
2727 const {
@@ -145,7 +145,7 @@ const YoutubeIframe = (props, ref) => {
145145 } , [ videoId , play ] ) ;
146146
147147 useEffect ( ( ) => {
148- if ( ! playerReady . current < 1 ) {
148+ if ( ! playerReady . current ) {
149149 // no instance of player is ready
150150 return ;
151151 }
You can’t perform that action at this time.
0 commit comments