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 596ca9f commit 1ad8cecCopy full SHA for 1ad8cec
src/YoutubeIframe.js
@@ -184,7 +184,10 @@ const YoutubeIframe = (props, ref) => {
184
request => {
185
try {
186
const url = request.mainDocumentURL || request.url;
187
- return url.startsWith(baseUrlOverride || DEFAULT_BASE_URL);
+ const iosFirstLoad = Platform.OS === 'ios' && url === 'about:blank';
188
+ const shouldLoad =
189
+ iosFirstLoad || url.startsWith(baseUrlOverride || DEFAULT_BASE_URL);
190
+ return shouldLoad;
191
} catch (error) {
192
// defaults to true in case of error
193
// returning false stops the video from loading
0 commit comments