From c483533d46557379e340a44aa4e69d8461c8463f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphae=CC=88l=20Blanchet?= Date: Tue, 26 Sep 2023 10:13:42 -0400 Subject: [PATCH 1/2] fix: Swipe down to dismiss screen with ScrollView on iOS --- TestsExample/App.js | 1 + TestsExample/src/Test1884.tsx | 69 +++++++++++++++++++++++++++++++++++ ios/RNSScreenStack.mm | 14 +++++++ 3 files changed, 84 insertions(+) create mode 100644 TestsExample/src/Test1884.tsx diff --git a/TestsExample/App.js b/TestsExample/App.js index 00d27e0876..f6e9d5ca77 100644 --- a/TestsExample/App.js +++ b/TestsExample/App.js @@ -92,6 +92,7 @@ import Test1791 from './src/Test1791'; import Test1802 from './src/Test1802'; import Test1844 from './src/Test1844'; import Test1864 from './src/Test1864'; +import Test1884 from './src/Test1884'; enableFreeze(true); diff --git a/TestsExample/src/Test1884.tsx b/TestsExample/src/Test1884.tsx new file mode 100644 index 0000000000..10f1e9408e --- /dev/null +++ b/TestsExample/src/Test1884.tsx @@ -0,0 +1,69 @@ +import * as React from 'react'; +import { Button, View, Text, ScrollView } from 'react-native'; +import { NavigationContainer, ParamListBase } from '@react-navigation/native'; +import { createNativeStackNavigator } from '@react-navigation/native-stack'; +import { NativeStackNavigationProp } from 'react-native-screens/native-stack'; + +const Stack = createNativeStackNavigator(); + +type NavProp = { + navigation: NativeStackNavigationProp; +}; + +export default function App() { + return ( + + + + + + + + ); +} + +const Home = ({ navigation }: NavProp) => ( + + Home +