React-native-navigation: [v2] Modal animations can't be disabled

Created on 21 May 2018  路  2Comments  路  Source: wix/react-native-navigation

Issue Description

My modals keep opening with animations despite setting options.animated to false.

Steps to Reproduce / Code Snippets / Screenshots

The following doesn't disable the animation:

Navigation.showModal({
  component: {
    name: 'app.Main',
    options: {
      animated: false
    }
  }
});

Environment

  • React Native Navigation version: 2.0.2292
  • React Native version: 0.55.3
  • Platform(s): iOS, Android unknown
  • Device info: Simulator, iPhone X, iOS 11
iOS v2

Most helpful comment

Try this:

Navigation.showModal({
  component: {
    name: 'app.Main',
    options: {
      animations: {
        showModal: {
          enable: false
        }
      }
    }
  }
});

All 2 comments

Try this:

Navigation.showModal({
  component: {
    name: 'app.Main',
    options: {
      animations: {
        showModal: {
          enable: false
        }
      }
    }
  }
});

Thanks, couldn't find this documented.

Was this page helpful?
0 / 5 - 0 ratings