react-navigation禁止侧滑

【react-navigation禁止侧滑】在createStackNavigator后加上一下方法:

defaultNavigationOptions: { gesturesEnabled: false, },

    推荐阅读