Skip to content

Commit 5dd08c6

Browse files
Update src/adapters/ExpoAVVideoAdapter.tsx
Co-authored-by: kalifyaniv-cloudinary <[email protected]>
1 parent e3d71ab commit 5dd08c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/adapters/ExpoAVVideoAdapter.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ export class ExpoAVVideoAdapter implements VideoPlayerAdapter {
5454
}
5555
},
5656
onLoad: (data: any) => {
57-
if (props.onLoad) {
58-
props.onLoad(data);
59-
}
57+
props.onLoad?.(data);
6058
},
6159
onLoadStart: (data: any) => {
6260
props.onLoadStart?.(data);

0 commit comments

Comments
 (0)