Skip to content

Commit 96cd6ed

Browse files
authored
fix: Check whether if 'webViewProps' is null
`bounces={webViewProps.bounces ?? false}` has problem when webViewProps = null. Thus, change operation from '.' to '?.'
1 parent 614eaa3 commit 96cd6ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/YoutubeIframe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const YoutubeIframe = (props, ref) => {
191191
return request.mainDocumentURL === 'about:blank';
192192
}}
193193
{...webViewProps}
194-
bounces={webViewProps.bounces ?? false}
194+
bounces={webViewProps?.bounces ?? false}
195195
/>
196196
</View>
197197
);

0 commit comments

Comments
 (0)