Skip to content

Commit 424a36e

Browse files
Update src/adapters/ExpoVideoAdapter.tsx
Co-authored-by: kalifyaniv-cloudinary <[email protected]>
1 parent 3d9b13d commit 424a36e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/adapters/ExpoVideoAdapter.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ export class ExpoVideoAdapter implements VideoPlayerAdapter {
334334
nativeControls: props.useNativeControls || false,
335335
contentFit: 'contain',
336336
onLoad: (data: any) => {
337-
if (props.onLoad) {
338-
props.onLoad(data);
339-
}
337+
props.onLoad?.(data);
340338
},
341339
onLoadStart: (data: any) => {
342340
props.onLoadStart?.(data);

0 commit comments

Comments
 (0)