-
Notifications
You must be signed in to change notification settings - Fork 474
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
Typescript type fixes + example code in .tsx #444
base: master
Are you sure you want to change the base?
Conversation
Props: added apiKey: string on{State,Quality,...}: added handler definitions StandaloneAndroid: fixed playlistId
@davidohayon669 could you please review and merge this PR? In TS project I have an annoying error in any way, whether there is apiKey or not, because propTypes require it when the TS types haven't it. Also there is an already issue #452, we (users) really need it. Thank you. |
@davidohayon669 Any thoughts or feedback on this? Looking forward to some kind of progress, if at possible. Feel free to reach out privately as well. Thanks! |
Any updates on this PR? Getting these type fixes in would really make my dev experience with this library much better. @tasinet thanks for opening this by the way! And @davidohayon669 thanks for the library, been really nice to work with 😄 |
A few small typescript bugfixes & improvements: (which got this ball rolling)
YouTubeState
and on[Stuff] callbacks properly typedA bigger one: A typescript version of the example.
I have named this
ReactNativeYouTubeExample.typescript.tsx
so that there is no confusion as to which one is in play, along with instructions at the top to rename before use. I took a few liberties but nothing major. Let me know if you want any changes.Utility stuff:
I'm not sure if this one could be leaner or if it makes much difference.
Tests
TODO