Browse Source

android slider fix

Viktoriia 1 year ago
parent
commit
7f27c072c3
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Route.tsx

+ 4 - 2
Route.tsx

@@ -159,13 +159,15 @@ const Route = () => {
     },
     cardStyle: { backgroundColor: 'white' },
     unmountOnBlur: true,
-    gestureEnabled: true,
+    gestureEnabled: Platform.OS === 'ios' ? true : false,
     lazy: true
   });
 
   const regionViewScreenOptions = {
     ...screenOptions,
-    ...TransitionPresets.ModalSlideFromBottomIOS,
+    ...(Platform.OS === 'ios'
+      ? TransitionPresets.ModalSlideFromBottomIOS
+      : {}),
     contentStyle: {
       flex: 1
     }