mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-15 07:57:09 +08:00
feat: add Windows and macOS support (#8570)
react-native-gesture-handler doesn't have Windows/macOS implementation yet, use the web version as stubs for now to enable navigation features for Windows and mac. Close https://github.com/microsoft/react-native-windows/issues/3884 Close https://github.com/microsoft/react-native-windows/issues/4044
This commit is contained in:
@@ -29,7 +29,10 @@ function StackNavigator({
|
||||
}: Props) {
|
||||
const defaultOptions = {
|
||||
gestureEnabled: Platform.OS === 'ios',
|
||||
animationEnabled: Platform.OS !== 'web',
|
||||
animationEnabled:
|
||||
Platform.OS !== 'web' &&
|
||||
Platform.OS !== 'windows' &&
|
||||
Platform.OS !== 'macos',
|
||||
};
|
||||
|
||||
const { state, descriptors, navigation } = useNavigationBuilder<
|
||||
|
||||
Reference in New Issue
Block a user