From aaa961296b3d735ffaa0be480703a395b8de383d Mon Sep 17 00:00:00 2001 From: Sunbreak Date: Thu, 9 Mar 2023 16:41:11 +0800 Subject: [PATCH] fix: remove dummy nativeOnly --- Video.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Video.js b/Video.js index 808c0a51..dc451d3e 100644 --- a/Video.js +++ b/Video.js @@ -416,13 +416,6 @@ Video.propTypes = { FilterType.SEPIA, ]), filterEnabled: PropTypes.bool, - /* Native only */ - src: PropTypes.object, - seek: PropTypes.oneOfType([ - PropTypes.number, - PropTypes.object, - ]), - fullscreen: PropTypes.bool, onVideoLoadStart: PropTypes.func, onVideoLoad: PropTypes.func, onVideoBuffer: PropTypes.func, @@ -566,10 +559,4 @@ Video.propTypes = { ...ViewPropTypes, }; -const RCTVideo = requireNativeComponent('RCTVideo', Video, { - nativeOnly: { - src: true, - seek: true, - fullscreen: true, - }, -}); +const RCTVideo = requireNativeComponent('RCTVideo');