Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/clean-banks-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"react-native-youtube-bridge": minor
---

fix: change props name from webviewProps to webViewProps

4 changes: 2 additions & 2 deletions README-ko_kr.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ function App() {
aspectRatio: 16 / 9,
}}
// iOS, Android 플랫폼 지원
webviewStyle={{
webViewStyle={{
// ...
}}
// iOS, Android 플랫폼 지원
webviewProps={{
webViewProps={{
// ...
}}
/>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ function App() {
aspectRatio: 16 / 9,
}}
// iOS, Android platform support
webviewStyle={{
webViewStyle={{
// ...
}}
// iOS, Android platform support
webviewProps={{
webViewProps={{
// ...
}}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/YoutubePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const YoutubePlayer = forwardRef<PlayerControls, YoutubePlayerProps>(
rel: false,
},
webViewStyle,
webviewProps,
webViewProps,
},
ref,
) => {
Expand Down Expand Up @@ -243,7 +243,7 @@ const YoutubePlayer = forwardRef<PlayerControls, YoutubePlayerProps>(
source={{ html: createPlayerHTML() }}
style={[styles.webView, webViewStyle]}
onMessage={handleMessage}
{...webviewProps}
{...webViewProps}
javaScriptEnabled
domStorageEnabled
allowsFullscreenVideo
Expand Down
2 changes: 1 addition & 1 deletion src/types/youtube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export type YoutubePlayerProps = {
/**
* @platform ios, android
*/
webviewProps?: Omit<WebViewProps, 'ref' | 'source' | 'style' | 'onMessage'>;
webViewProps?: Omit<WebViewProps, 'ref' | 'source' | 'style' | 'onMessage'>;
/**
* @platform web
*/
Expand Down