From a6b2ab9462e6b5cd428c88c5f21f2a8bd1d832fc Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Thu, 21 Apr 2022 16:07:44 +0200 Subject: [PATCH 1/4] feat: add prop for hiding keyboard on swipe --- TestsExample/App.js | 3 +- TestsExample/src/Test.tsx | 77 ++++++++++++++++++++++ ios/RNSScreen.h | 1 + ios/RNSScreen.m | 4 ++ src/native-stack/types.tsx | 6 ++ src/native-stack/views/NativeStackView.tsx | 2 + src/types.tsx | 6 ++ 7 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 TestsExample/src/Test.tsx diff --git a/TestsExample/App.js b/TestsExample/App.js index ed0b86501a..ddbbbbcb5a 100644 --- a/TestsExample/App.js +++ b/TestsExample/App.js @@ -78,13 +78,14 @@ import Test1259 from './src/Test1259'; import Test1260 from './src/Test1260'; import Test1296 from './src/Test1296'; import Test1299 from './src/Test1299'; +import Test from './src/Test'; enableFreeze(true); export default function App() { return ( - + ); } diff --git a/TestsExample/src/Test.tsx b/TestsExample/src/Test.tsx new file mode 100644 index 0000000000..edbc598cd8 --- /dev/null +++ b/TestsExample/src/Test.tsx @@ -0,0 +1,77 @@ +import React from 'react'; +import { View, Text, Button, KeyboardAvoidingView, Platform, TouchableWithoutFeedback, Keyboard, Image, TextInput } from 'react-native'; +import {NavigationContainer, ParamListBase} from '@react-navigation/native'; +import {createNativeStackNavigator, NativeStackNavigationProp} from 'react-native-screens/native-stack'; + +function First({navigation}: {navigation: NativeStackNavigationProp}) { + return ( + + First screen +