From 5b80af3904561434b37231ade41c5c9f35f1a130 Mon Sep 17 00:00:00 2001 From: Sadaqat Ali Date: Sun, 13 Feb 2022 23:22:09 +0500 Subject: [PATCH] fixed the keyboard scroll issue on android --- .../mainButton/view/mainButtonStyles.js | 2 +- src/screens/transfer/screen/delegateScreen.js | 33 +++++++++++++------ src/screens/transfer/screen/transferStyles.js | 7 ++++ 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/src/components/mainButton/view/mainButtonStyles.js b/src/components/mainButton/view/mainButtonStyles.js index 859f2d35a..5fce4ec40 100644 --- a/src/components/mainButton/view/mainButtonStyles.js +++ b/src/components/mainButton/view/mainButtonStyles.js @@ -13,7 +13,7 @@ export default EStyleSheet.create({ }, shadowColor: '#5f5f5fbf', shadowOpacity: 0.1, - elevation: 3, + // elevation: 3, }, icon: { alignSelf: 'center', diff --git a/src/screens/transfer/screen/delegateScreen.js b/src/screens/transfer/screen/delegateScreen.js index 00954eeef..f0425686c 100644 --- a/src/screens/transfer/screen/delegateScreen.js +++ b/src/screens/transfer/screen/delegateScreen.js @@ -1,11 +1,12 @@ import React, { Component, Fragment } from 'react'; -import { View, Text, FlatList, TouchableOpacity, Alert } from 'react-native'; +import { View, Text, Platform, ScrollView, KeyboardAvoidingView } from 'react-native'; import { WebView } from 'react-native-webview'; import { injectIntl } from 'react-intl'; import Slider from '@esteemapp/react-native-slider'; import get from 'lodash/get'; import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; import { View as AnimatedView } from 'react-native-animatable'; +import { TouchableOpacity, FlatList } from 'react-native-gesture-handler'; // Constants import { debounce } from 'lodash'; @@ -477,17 +478,29 @@ class DelegateScreen extends Component { return ( - */} + - - {step >= 1 && _renderStepOne()} - {step >= 2 && _renderStepTwo()} - {_renderMainBtn()} - - + + + {step >= 1 && _renderStepOne()} + {step >= 2 && _renderStepTwo()} + + {_renderMainBtn()} + + + + {/* */}