mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-24 04:25:34 +08:00
feat: enable react-native-screens in Stack by default on iOS
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
||||
StyleSheet,
|
||||
LayoutChangeEvent,
|
||||
Dimensions,
|
||||
Platform,
|
||||
} from 'react-native';
|
||||
import type { EdgeInsets } from 'react-native-safe-area-context';
|
||||
import type {
|
||||
@@ -397,9 +396,8 @@ export default class CardStack extends React.Component<Props, State> {
|
||||
onGestureStart,
|
||||
onGestureEnd,
|
||||
onGestureCancel,
|
||||
detachInactiveScreens = Platform.OS === 'ios'
|
||||
? false // Disable `react-native-screens` on iOS by default since it's buggy
|
||||
: shouldUseActivityState || mode !== 'modal', // Enable on new versions of screens or for non modals on older versions
|
||||
// Enable on new versions of screens or for non modals on older versions
|
||||
detachInactiveScreens = shouldUseActivityState || mode !== 'modal',
|
||||
} = this.props;
|
||||
|
||||
const { scenes, layout, gestures, headerHeights } = this.state;
|
||||
|
||||
Reference in New Issue
Block a user