From fc901c783b34ab27dd991f74520a274feba4ec5d Mon Sep 17 00:00:00 2001 From: Dong Liu Date: Thu, 9 Feb 2023 10:39:45 +0800 Subject: [PATCH] Added controlsStyle props --- README.md | 1 + dist/index.d.ts | 1 + dist/index.js | 2 +- dist/props.d.ts | 3 ++- dist/props.js | 10 ++++++++++ dist/utils.d.ts | 10 ---------- dist/utils.js | 10 ---------- lib/index.tsx | 2 +- lib/props.tsx | 13 ++++++++++++- lib/utils.tsx | 10 ---------- 10 files changed, 28 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 6bd52df..cbcbbce 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ For default prop values, please visit [/lib/props.tsx](https://github.com/ihmpav | **defaultControlsVisible** | `boolean` | Show controls on darker overlay when video starts playing. Default is `false` | | **timeVisible** | `boolean` | Show current time and final length in the bottom. Default is `true` | | **textStyle** | `TextStyle` | Object containing `` styling | +| **controlsStyle** | `FlexStyle` | Basic styling of `Controls` | | **slider** | `{ visible?: boolean } & SliderProps` | Object containing any of [@react-native-community/slider](https://github.com/callstack/react-native-slider) props. Your styling may break default layout. Also hide slider by providing `visible: false` prop. You are unable to overwrite `ref`, `value`, `onSlidingStart` and `onSlidingComplete` | | **activityIndicator** | `ActivityIndicatorProps` | Any values from [ActivityIndicator](https://reactnative.dev/docs/activityindicator) | | **animation** | `{ fadeInDuration?: number, fadeOutDuration?: number }` | Duration of animations in milliseconds | diff --git a/dist/index.d.ts b/dist/index.d.ts index 074cf17..3b34157 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -9,6 +9,7 @@ declare const VideoPlayer: { defaultControlsVisible: boolean; timeVisible: boolean; textStyle: import("react-native").TextStyle; + controlsStyle: import("react-native").FlexStyle; slider: { visible?: boolean | undefined; } & import("@react-native-community/slider").SliderProps; diff --git a/dist/index.js b/dist/index.js index ecc8cf5..d228731 100644 --- a/dist/index.js +++ b/dist/index.js @@ -215,7 +215,7 @@ const VideoPlayer = (tempProps) => { {