-
Notifications
You must be signed in to change notification settings - Fork 527
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
onLoad #14
Comments
Can you send me a bit of details? What version of React Native, what version of react-native-video-controls, etc. |
onLoadStart={ () => {} } // Fired when loading of the source starts
RN0.39.2 android6.0.1 react-native-video-controls 1.1.1 I saw your code. |
So you're overwriting the onLoad function with a blank function? |
Yes。 |
Removed onLoad events from being editable in 1.2.x |
@kylemilloy I realize I am late to this party but I think that removing the ability to pass an onLoad is not a good idea. Could I get your thoughts on this? I just started looking at this library after working with react-native-video and need to use the onLoad to be able to get the the width and height of the video that is loaded so I can resize the component to fill the screen width and scale the height based on the aspect ratio. That being said I think it makes sense to not remove the original onLoad event since your component relies on the logic in there. Based on this I would suggest that your onLoad calls the onLoad passed in with the props with the arguments it receives. (you may want to do this with all of the callback props that were removed) Thoughts? Id be happy to contribute with a PR based on what we decide. |
Pull away, my son. Thanks for the help. Yeah that'd work I think. Easy enough to just do something like
Would probably be good to do some checking to ensure the prop onLoad is a fx |
OnLoad with BUG
Causes the Load icon to appear
The text was updated successfully, but these errors were encountered: