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

Support for hooks #24

Open
GioLogist opened this issue Dec 23, 2019 · 0 comments
Open

Support for hooks #24

GioLogist opened this issue Dec 23, 2019 · 0 comments

Comments

@GioLogist
Copy link

As suggested in this issue I implemented a similar approach as examples/native/src/explorer/ExplorerView.js, for triggering a transition without a navigator. However, it seems that hooks are not supported.

Expected behaviour

When using hooks to manage state, transitions should work as they do with class components.

Show Actual behaviour

No transition occurs.

Provide the code

The demo and code can be seen on this snack.

You'll notice a couple of things

  1. Upon first load, the functional component never works
  2. Upon first load, the class component works
  3. When going back and forth between the two, you'll notice additional odd behavior
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant