Files
react-navigation/example
Satyajit Sahoo 6262f7298b feat: add animationTypeForReplace option (#297)
Currently, when a screen is replaced the new screen comes into focus with a push animation. However, sometimes you might want to customize how the animation looks like.

For example, when the user logs out, animating out the previous screen like pop feels more natural than doing a push animation with the sign in screen. The PR adds a new `animationTypeForReplace` option to control this. Specifying `animationTypeForReplace: 'pop'` will pop the previous screen, otherwise the new screen will be pushed like before.

Co-authored-by: Michał Osadnik <micosa97@gmail.com>
2020-01-27 18:20:53 +01:00
..
2020-01-03 11:37:33 +01:00
2020-01-10 13:12:32 +01:00
2020-01-10 13:12:32 +01:00
2019-12-09 15:20:28 +01:00
2020-01-10 13:12:32 +01:00
2020-01-10 13:12:32 +01:00
2020-01-10 13:12:32 +01:00
2019-12-09 15:20:28 +01:00

Example for React Navigation

If you want to run the example from the repo,

  • Clone the repository and run yarn in the project root
  • Run yarn example start to start the packager
  • Follow the instructions to open it with the Expo app