on this page으로 작성된 기본 화면 전환을 무시하려면 transitionConfig
을 사용해야합니다. \react-navigation\lib\views\CardStackStyleInterpolator.js
그래서 코드는 다음과 같아야합니다 : 당신은에서 유용한 정보를 얻을 수 있습니다
const navigator = StackNavigator(scenes, {
transitionConfig:() => ({
screenInterpolator: sceneProps => {
const { layout, position, scene } = sceneProps;
const { index } = scene;
const translateX = position.interpolate({
inputRange: [index - 1, index, index + 1],
outputRange: [layout.initWidth, 0, 0]
});
const opacity = position.interpolate({
inputRange: [index - 1, index - 0.99, index, index + 0.99, index + 1],
outputRange: [0, 1, 1, 0.3, 0]
});
return { opacity, transform: [{ translateX }] }
}
})
});
이 페이지는'https : // reactnavigation.org/docs/navigators/stack'에 대해 이야기하고 있습니까? Navigator.SceneConfigs 관련 설정을 찾지 못했습니다. –
'react-navite '의 네비게이터가 더 이상 사용되지 않습니다. –