-
Notifications
You must be signed in to change notification settings - Fork 13
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
Align PR handling of default values #346
base: development
Are you sure you want to change the base?
Align PR handling of default values #346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested your changes and once entering fullscreen or PiP.
Nit: I assume you meant "RN" instead of "PR" in the title of this Pull Request.
src/components/PlayerView/index.tsx
Outdated
if (node && isPictureInPictureRequested) { | ||
dispatch('setPictureInPicture', node, isPictureInPictureRequested); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: d071e78
src/components/PlayerView/index.tsx
Outdated
@@ -125,21 +125,21 @@ export function PlayerView({ | |||
|
|||
useEffect(() => { | |||
const node = findNodeHandle(nativeView.current); | |||
if (node) { | |||
if (node && isFullscreenRequested != undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use !==
instead as the Check warning indicated!
if (node && isFullscreenRequested != undefined) { | |
if (node && isFullscreenRequested !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Which tool is emitting those warning? If we need to avoid them, should it be part of the CI? (I don't have any warning on my side)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarn lint
It already runs on the CI and you can see the warnings only on the Files changed
tab.
This should be executed as pre-commit hook if you have husky
installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make them errors? #348
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for changing it!
Co-authored-by: Roland Kákonyi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Problem (PRN-92)
Most of the RN SDK relies on the default value from the native side.
The 2 exceptions where fullscreen and PiP, where the default is set in TS.
Nevertheless this is not necessary because the defaults are the same in both native SDK.
Changes
Align the default. Don't send the command if the value is undefined.
📚 Other PRs for this issue