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

[VO-428] feat: Call resolve on all Android's path for hide and show, and improve debug #4

Merged
merged 3 commits into from
Feb 29, 2024

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Feb 28, 2024

Previous implementation was not handling parallel calls correctly

As not all path are resolving the promise, then the JS call would hang
in some scenario


This PR also add more details in Android methods result so we can check if the splashscreen is hidden or not. Some logs have also been added to improve debugging experience

Related PR: cozy/cozy-flagship-app#1181

Previous implementation was not handling parallel calls correctly

As not all path are resolving the promise, then the JS call would hang
in some scenario
In order to improve feedback on what is done by the library, we want to
return strings instead of `true` when the BootSplash is not shown or
hidden
In order to ease debug, we want to add some console logs

Those logs would allow to track the bootsplashNames array

Those are native logs, so they would not appear on the RN console,
instead use XCode console, `adb logcat ...` or Flipper
@Ldoppea Ldoppea changed the title Fix/promise resolve feat: Call resolve on all Android's path for hide and show Feb 28, 2024
@Ldoppea Ldoppea changed the title feat: Call resolve on all Android's path for hide and show feat: Call resolve on all Android's path for hide and show, and improve debug Feb 28, 2024
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 28, 2024
`react-native-bootsplash` has been upgraded to retrieve a fix that
ensures the `show` and `hide` methods always resolve their promises

Related PR: cozy/react-native-bootsplash#4
@Ldoppea Ldoppea changed the title feat: Call resolve on all Android's path for hide and show, and improve debug [VO-428] feat: Call resolve on all Android's path for hide and show, and improve debug Feb 28, 2024
@Ldoppea Ldoppea merged commit bb60ff4 into cozy_main Feb 29, 2024
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 29, 2024
`react-native-bootsplash` has been upgraded to retrieve a fix that
ensures the `show` and `hide` methods always resolve their promises

Related PR: cozy/react-native-bootsplash#4
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 29, 2024
`react-native-bootsplash` has been upgraded to retrieve a fix that
ensures the `show` and `hide` methods always resolve their promises

Related PR: cozy/react-native-bootsplash#4
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 29, 2024
`react-native-bootsplash` has been upgraded to retrieve a fix that
ensures the `show` and `hide` methods always resolve their promises

Related PR: cozy/react-native-bootsplash#4
Ldoppea added a commit to cozy/cozy-flagship-app that referenced this pull request Feb 29, 2024
`react-native-bootsplash` has been upgraded to retrieve a fix that
ensures the `show` and `hide` methods always resolve their promises

Related PR: cozy/react-native-bootsplash#4
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

Successfully merging this pull request may close these issues.

1 participant