Skip to content
This repository has been archived by the owner on Dec 28, 2019. It is now read-only.

working hot-reload and overkill refactor #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

thheller
Copy link
Collaborator

I refactored a bit more than I needed to but it made more sense to me this way.

The basic idea is that you can "register" multiple screens and that registry handles all the nasty stateful stuff and just delegates to whatever the "latest" definition is in the registry.

Since react-native-navigation controls when and how the screens are created we can't do the other hacks I did in reagent-react-native.

As far as I can tell everything is working as expected although I didn't properly forward the other events yet (ony navigationButtonPressed). I kinda feel like the whole setRoot and push business could be abstracted in a friendlier way too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants