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

Can we use it with react native navigation #6

Open
ashokkumar88 opened this issue May 14, 2018 · 7 comments
Open

Can we use it with react native navigation #6

ashokkumar88 opened this issue May 14, 2018 · 7 comments

Comments

@ashokkumar88
Copy link

ashokkumar88 commented May 14, 2018

Thanks for this awesome library. Can we use this library with react-native-navigation?

@jdnichollsc
Copy link
Collaborator

@ashokkumar88 what animation do you need with the navigation?

@nandorojo
Copy link

I was also hoping for this to work. I tried FluidTransitions, but it doesn't allow for transitioning nested components, so adding any complexity renders it a bit useless. It would be great to have shared transitions between elements on different screens for react-navigation to work with react-native-motion.

@german970814
Copy link

@nandorojo so this library does not work to animate shared components between react-navigation screens?

@nandorojo
Copy link

nandorojo commented Jan 13, 2020

There is now a different library called react-navigation-shared-element which supports shared animations between screens with react navigation.

I wrote a quick tutorial for getting it up and running here.

If you'd rather see the code, I also made an expo snack example.

If you aren't using an Expo managed project (must be SDK 35+), be sure to follow the instructions to link it to your app here.

It works very well with nested components too.

Finally, if you aren't already, I suggest using react-native-screens to help improve performance for react-navigation. Good luck!

set-ios

@german970814
Copy link

@nandorojo Thanks

@amitassaraf
Copy link

@nandorojo Note that you cannot use react-native-screens with react-navigation-shared-element and it is unlikely to ever be supported

@grantgeorge
Copy link

grantgeorge commented Aug 21, 2020

@nandorojo flagging that support for react-navigation v5 for that library is in pre-release.

For react-navigation v5 I recommend looking at the react-navigation-shared-element development branch here: https://github.com/IjzerenHein/react-navigation-shared-element/tree/navigation-v5

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

No branches or pull requests

6 participants