React native React Navigation v5中setOptions内的CardStyleInterpolators
我正试图根据请求的来源更改转换样式。我可以这样做吗React native React Navigation v5中setOptions内的CardStyleInterpolators,react-native,react-navigation,React Native,React Navigation,我正试图根据请求的来源更改转换样式。我可以这样做吗 navigation.setOptions({ CardStyleInterpolator: ({ CardStyleInterpolators }) => { if (route.params?.cleanup == 1) { CardStyleInterpolators.forVerticalIOS; } else { CardStyleInterpolators.for
navigation.setOptions({
CardStyleInterpolator: ({ CardStyleInterpolators }) => {
if (route.params?.cleanup == 1) {
CardStyleInterpolators.forVerticalIOS;
} else {
CardStyleInterpolators.forHorizontalIOS;
}
},
}}