Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here I add change color for the loader #250

Open
RONAKDHOLARIYA opened this issue Oct 18, 2022 · 0 comments
Open

Here I add change color for the loader #250

RONAKDHOLARIYA opened this issue Oct 18, 2022 · 0 comments

Comments

@RONAKDHOLARIYA
Copy link

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-video-controls/VideoPlayer.js b/node_modules/react-native-video-controls/VideoPlayer.js
index 7d36b4b..3c18883 100644
--- a/node_modules/react-native-video-controls/VideoPlayer.js
+++ b/node_modules/react-native-video-controls/VideoPlayer.js
@@ -31,6 +31,7 @@ export default class VideoPlayer extends Component {
     volume: 1,
     title: '',
     rate: 1,
+    loaderStyle:{}
   };
 
   constructor(props) {
@@ -1167,7 +1168,9 @@ export default class VideoPlayer extends Component {
                     }),
                   },
                 ],
+                ...this.props.loaderStyle
               },
+
             ]}
           />
         </View>
@@ -1212,7 +1215,7 @@ export default class VideoPlayer extends Component {
             onProgress={this.events.onProgress}
             onError={this.events.onError}
             onLoad={this.events.onLoad}
-            onEnd={this.events.onEnd}
+            onEnd={()=>{this.events.onEnd()}}
             onSeek={this.events.onSeek}
             style={[styles.player.video, this.styles.videoStyle]}
             source={this.props.source}
@@ -1278,6 +1281,7 @@ const styles = {
       left: 0,
       alignItems: 'center',
       justifyContent: 'center',
+     
     },
   }),
   controls: StyleSheet.create({

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant