react-native-af-video-player icon indicating copy to clipboard operation
react-native-af-video-player copied to clipboard

logo prop required in `Controls` and `TopBar`?

Open pandigita opened this issue 6 years ago • 5 comments

Hi there, first of all, thank you for this wonderful, well functioning, well fullscreening video player! I'm strangely getting a prop type error, claiming logo is required, when the docs and common logic clearly suggest it's not required. Both the Controls and the TopBar component seem to require it.

Both in the console and the YellowBox: "Warning: Failed prop type: The prop logo is marked as required in Controls, but its value is undefined." and "Warning: Failed prop type: The prop logo is marked as required in TopBar, but its value is undefined."

The video player works as expected, however, and I'm simply ignoring the warning, like so: console.ignoredYellowBox = ['Warning: Failed prop type: The prop logo is marked as required'];

  • react-native-af-video-player version: 0.2.1

  • React Native version: 0.55.4

  • OS: Ubuntu

  • Has this issue already been raised? I think not.

  • Have you clearly read and understood the Readme? I think yes.

  • Code and explanation to replicate this issue: <Video url={someURL} /> // works with Failed prop type warning while <Video url={someURL} logo={someLogoURL} /> // works without any warnings

  • Are there any console logs? Yes, see above.

pandigita avatar Jun 28 '18 13:06 pandigita

I already had fixed this issue, if you want, you can use the project om my profile, i still will up that on npm and give suport of my fork, please give me a start to keep me motivated on this project

jorgeluisrezende avatar Jul 10 '18 20:07 jorgeluisrezende

@jorgeluisrezende - I ran into this as well. In your comment above are you asking for someone to submit a PR with a suggested fix?

kodayashi avatar Aug 12 '18 22:08 kodayashi

Well, i had fixed this, i'm was asking for someone to help to continue working in this project, i had made a fork and already mad some changes. theres a lot of work to do...

jorgeluisrezende avatar Aug 16 '18 02:08 jorgeluisrezende

All good @jorgeluisrezende, I just suppressed the issue for now. I will try to reach back out next month, maybe I can help :)

kodayashi avatar Aug 16 '18 03:08 kodayashi

I just want to say that my partner and I are finding your library to be quite nice. Regarding this issue, there is a discrepancy between the PropTypes directives of Controls.js and Video.js; specifically the required fields. The only required field in Video is url, and I would imagine these to match. If you would like, I can submit a pull request with this change.

kmausolf avatar Dec 05 '18 03:12 kmausolf