LoginSignup
0
0

More than 5 years have passed since last update.

ReactNavigationの遷移でアニメーションさせない

Posted at

transitionConfig を定義すればいいんですね。

参考:

const stack = createStackNavigator(
  {
    Hoge: HogeComponent,
    Huga: HugaComponent,
  },
  {
    //ここで遷移時の挙動を定義
    transitionConfig: () => ({
      transitionSpec: {
        duration: 0,
        timing: Animated.timing,
        easing: Easing.step0,
      },
    }),
  },
);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0