From 7fe3ef4186d1abbdcd3acd70f9c544974b27f4c1 Mon Sep 17 00:00:00 2001 From: COURTES Guillaume <guillaumecourtes88@gmail.com> Date: Tue, 22 Jun 2021 14:15:05 +0200 Subject: [PATCH] fix keyboard input display --- react-native/ChatApp/components/CreateDiscussionScreen.js | 2 +- react-native/ChatApp/components/LoginScreen.js | 2 +- react-native/ChatApp/components/SignupScreen.js | 2 +- react-native/ChatApp/components/UpdateDiscussionScreen.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/react-native/ChatApp/components/CreateDiscussionScreen.js b/react-native/ChatApp/components/CreateDiscussionScreen.js index 7f29c3614..09f45f5da 100644 --- a/react-native/ChatApp/components/CreateDiscussionScreen.js +++ b/react-native/ChatApp/components/CreateDiscussionScreen.js @@ -58,7 +58,7 @@ class CreateDiscussionScreen extends React.Component { else return ( <KeyboardAvoidingView - behavior="height" + behavior="padding" style={{flex:1, alignItems: 'center', justifyContent: 'center' }} > diff --git a/react-native/ChatApp/components/LoginScreen.js b/react-native/ChatApp/components/LoginScreen.js index 9572b2f24..5cf31f1ef 100644 --- a/react-native/ChatApp/components/LoginScreen.js +++ b/react-native/ChatApp/components/LoginScreen.js @@ -30,7 +30,7 @@ class LoginScreen extends React.Component { render() { return ( <KeyboardAvoidingView - behavior="height" + behavior="padding" > <View style={{ height: windowHeight/3, alignItems: 'center', justifyContent: 'center' }}> <Text h1>Connexion</Text> diff --git a/react-native/ChatApp/components/SignupScreen.js b/react-native/ChatApp/components/SignupScreen.js index 5d1711f96..0b562acfb 100644 --- a/react-native/ChatApp/components/SignupScreen.js +++ b/react-native/ChatApp/components/SignupScreen.js @@ -31,7 +31,7 @@ class SignupScreen extends React.Component { render() { return ( <KeyboardAvoidingView - behavior="height" + behavior="padding" > <View style={{ height: windowHeight/3, alignItems: 'center', justifyContent: 'center' }}> <Text h1>Inscription</Text> diff --git a/react-native/ChatApp/components/UpdateDiscussionScreen.js b/react-native/ChatApp/components/UpdateDiscussionScreen.js index ba15dde69..655f2e4d1 100644 --- a/react-native/ChatApp/components/UpdateDiscussionScreen.js +++ b/react-native/ChatApp/components/UpdateDiscussionScreen.js @@ -61,7 +61,7 @@ class UpdateDiscussionScreen extends React.Component { else return ( <KeyboardAvoidingView - behavior="height" + behavior="padding" style={{flex:1, alignItems: 'center', justifyContent: 'center' }} > -- GitLab