Skip to content

Commit 99e9456

Browse files
refactor: ignore silent switch for iOS
1 parent 4fafe9a commit 99e9456

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package/native-package/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ registerNativeHandlers({
252252
// eslint-disable-next-line react/display-name
253253
Video: Video ? ({ onBuffer, onEnd, onLoad, onProgress, paused, style, uri, videoRef }) => (
254254
<Video
255+
ignoreSilentSwitch={'ignore'}
255256
onBuffer={onBuffer}
256257
onEnd={onEnd}
257258
onError={(error) => {

package/src/native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export type VideoType = {
145145
style?: StyleProp<ViewStyle>;
146146
};
147147

148-
export let Video: React.ComponentType<VideoType> | undefined;
148+
export let Video: React.ComponentType<VideoType>;
149149

150150
type Handlers = {
151151
compressImage?: CompressImage;

0 commit comments

Comments
 (0)