您将需要定义一个自定义动画场景配置。
const BaseConfig = Navigator.SceneConfigs.FloatFromRight;
const CustomSceneConfigNoSwipeGestures = Object.assign({}, BaseConfig, {
springTension: 100,
springFriction: 1,
gestures: {}
});
pushScreen = () => {
this.props.navigator.push({
name: 'My Screen',
component: MyScreen,
sceneConfig: CustomSceneConfigNoSwipeGestures,
});
}
空手势:{}对象将覆盖将从Navigator.SceneConfigs对象应用的标准行为。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句