Skip to content

Commit

Permalink
feat: add Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Guo committed Jul 10, 2020
1 parent 5134824 commit 832aa5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stack/src/navigators/createStackNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function StackNavigator({
}: Props) {
const defaultOptions = {
gestureEnabled: Platform.OS === 'ios',
animationEnabled: Platform.OS !== 'web',
animationEnabled: Platform.OS !== 'web' && Platform.OS !== 'windows',
};

const { state, descriptors, navigation } = useNavigationBuilder<
Expand Down
2 changes: 2 additions & 0 deletions packages/stack/src/views/GestureHandler.windows.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {PanGestureHandler, GestureHandlerRootView, GestureState} from './GestureHandler.tsx';
export type { PanGestureHandlerGestureEvent } from 'react-native-gesture-handler';
1 change: 1 addition & 0 deletions packages/stack/src/views/MaskedView.windows.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {default as MaskedView} from './MaskedView.tsx';
1 change: 1 addition & 0 deletions packages/stack/src/views/TouchableItem.windows.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {TouchableItem} from './TouchableItem.tsx';

0 comments on commit 832aa5c

Please sign in to comment.