Skip to content

Commit 9e6e95f

Browse files
committed
style: re-arrange imports
1 parent 2698ca4 commit 9e6e95f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/YoutubeIframe.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
import {EventEmitter} from 'events';
21
import React, {
2+
useRef,
3+
useMemo,
4+
useEffect,
35
forwardRef,
46
useCallback,
5-
useEffect,
67
useImperativeHandle,
7-
useMemo,
8-
useRef,
98
} from 'react';
109
import {Platform, StyleSheet, View} from 'react-native';
10+
import {EventEmitter} from 'events';
11+
import {WebView} from './WebView';
1112
import {
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';
1718
import {
18-
MAIN_SCRIPT,
19-
PLAYER_FUNCTIONS,
2019
playMode,
2120
soundMode,
21+
MAIN_SCRIPT,
22+
PLAYER_FUNCTIONS,
2223
} from './PlayerScripts';
2324
import {deepComparePlayList} from './utils';
24-
import {WebView} from './WebView';
2525

2626
const 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
}

0 commit comments

Comments
 (0)