diff --git a/.changeset/clean-banks-rescue.md b/.changeset/clean-banks-rescue.md new file mode 100644 index 0000000..632310c --- /dev/null +++ b/.changeset/clean-banks-rescue.md @@ -0,0 +1,6 @@ +--- +"react-native-youtube-bridge": minor +--- + +fix: change props name from webviewProps to webViewProps + diff --git a/README-ko_kr.md b/README-ko_kr.md index 6478f26..ea67057 100644 --- a/README-ko_kr.md +++ b/README-ko_kr.md @@ -189,11 +189,11 @@ function App() { aspectRatio: 16 / 9, }} // iOS, Android 플랫폼 지원 - webviewStyle={{ + webViewStyle={{ // ... }} // iOS, Android 플랫폼 지원 - webviewProps={{ + webViewProps={{ // ... }} /> diff --git a/README.md b/README.md index a784e53..e08e932 100644 --- a/README.md +++ b/README.md @@ -189,11 +189,11 @@ function App() { aspectRatio: 16 / 9, }} // iOS, Android platform support - webviewStyle={{ + webViewStyle={{ // ... }} // iOS, Android platform support - webviewProps={{ + webViewProps={{ // ... }} /> diff --git a/src/YoutubePlayer.tsx b/src/YoutubePlayer.tsx index cbe8b2b..2160411 100644 --- a/src/YoutubePlayer.tsx +++ b/src/YoutubePlayer.tsx @@ -34,7 +34,7 @@ const YoutubePlayer = forwardRef( rel: false, }, webViewStyle, - webviewProps, + webViewProps, }, ref, ) => { @@ -243,7 +243,7 @@ const YoutubePlayer = forwardRef( source={{ html: createPlayerHTML() }} style={[styles.webView, webViewStyle]} onMessage={handleMessage} - {...webviewProps} + {...webViewProps} javaScriptEnabled domStorageEnabled allowsFullscreenVideo diff --git a/src/types/youtube.ts b/src/types/youtube.ts index 3ca971d..c609221 100644 --- a/src/types/youtube.ts +++ b/src/types/youtube.ts @@ -36,7 +36,7 @@ export type YoutubePlayerProps = { /** * @platform ios, android */ - webviewProps?: Omit; + webViewProps?: Omit; /** * @platform web */