wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

refactor RNNSplashView and allow custom implementations #825

Closed DanielZlotin closed 5 years ago

DanielZlotin commented 7 years ago

Currently RNNSplashView is a mess (one giant method) and needs some refactoring.

Also, we need tests to make sure custom splash screens are supported (it looks like they are but if something were to break there currently is no way to tell). Testing it won't be easy as we need some way to control it from outside. Maybe xctests are the solution here unfortunately.

Kureev commented 7 years ago

Can you please provide more information on this issue? Probably it's something that community can help you with?

DanielZlotin commented 7 years ago

@Kureev updated

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

rizwankce commented 5 years ago

I looked into the RNNSpalashScreen. Below is what I can understand is happening.

From initial look this is what I can propose, comments or suggestion welcome.

@DanielZlotin

Also, one more thing would like to add is bootstrap the RNN without the splash screen. Probably extra API method which only allocate and set the RNNBridgeManager. The reason behind this is I have a brownfield app and currently managed to make it work with some custom native code. But I would like to avoid splash when bootstrapping. May be take this as first step to support brownfield apps.

henrikra commented 5 years ago

@rizwankce Good debugging! Can you make PR of those changes?

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] commented 5 years ago

The issue has been closed for inactivity.