Skip to content

Commit 47f2e60

Browse files
fix: import React Dependency into Video / Sound files (#1828)
1 parent 8a031bc commit 47f2e60

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

package/native-package/src/handlers/Sound.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import React from 'react';
2+
13
import AudioVideoPlayer from '../optionalDependencies/Video';
24

35
export const Sound = {

package/native-package/src/handlers/Video.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import React from 'react';
2+
13
import AudioVideoPlayer from '../optionalDependencies/Video';
24
export const Video = AudioVideoPlayer
35
? ({ onBuffer, onEnd, onLoad, onProgress, paused, repeat, style, uri, videoRef }) => (

0 commit comments

Comments
 (0)