We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9111237 commit c5d220dCopy full SHA for c5d220d
src/YoutubeIframe.js
@@ -30,6 +30,7 @@ const YoutubeIframe = (
30
onPlaybackRateChange = _playbackRate => {},
31
initialPlayerParams = {},
32
webViewStyle,
33
+ webViewProps,
34
},
35
ref,
36
) => {
@@ -112,7 +113,6 @@ const YoutubeIframe = (
112
113
const onWebMessage = useCallback(
114
event => {
115
const message = JSON.parse(event.nativeEvent.data);
- // console.log({message});
116
try {
117
switch (message.eventType) {
118
case 'playerStateChange':
@@ -169,6 +169,7 @@ const YoutubeIframe = (
169
source={{html: MAIN_SCRIPT(videoId, playList, initialPlayerParams)}}
170
allowsInlineMediaPlayback
171
onMessage={onWebMessage}
172
+ {...webViewProps}
173
/>
174
</View>
175
);
0 commit comments