mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 12:25:21 +08:00
fix: don't enable animation & gestures for first screen
This commit is contained in:
@@ -228,10 +228,13 @@ export default class CardStack extends React.Component<Props, State> {
|
||||
: DefaultTransition;
|
||||
|
||||
const {
|
||||
animationEnabled = Platform.OS !== 'web' &&
|
||||
animationEnabled = index !== 0 &&
|
||||
Platform.OS !== 'web' &&
|
||||
Platform.OS !== 'windows' &&
|
||||
Platform.OS !== 'macos',
|
||||
gestureEnabled = Platform.OS === 'ios' && animationEnabled,
|
||||
gestureEnabled = index !== 0 &&
|
||||
Platform.OS === 'ios' &&
|
||||
animationEnabled,
|
||||
gestureDirection = defaultTransitionPreset.gestureDirection,
|
||||
transitionSpec = defaultTransitionPreset.transitionSpec,
|
||||
cardStyleInterpolator = animationEnabled === false
|
||||
|
||||
Reference in New Issue
Block a user