Fix Android edit profile keyboard aware scroll view (#6811)
This commit is contained in:
parent
330fd42212
commit
f3f5cef8d1
1 changed files with 2 additions and 4 deletions
|
|
@ -49,7 +49,6 @@ const EditProfile = ({
|
|||
const intl = useIntl();
|
||||
const serverUrl = useServerUrl();
|
||||
const theme = useTheme();
|
||||
const keyboardAwareRef = useRef<KeyboardAwareScrollView>(null);
|
||||
const changedProfilePicture = useRef<NewProfileImage | undefined>(undefined);
|
||||
const scrollViewRef = useRef<KeyboardAwareScrollView>();
|
||||
const hasUpdateUserInfo = useRef<boolean>(false);
|
||||
|
|
@ -204,14 +203,13 @@ const EditProfile = ({
|
|||
>
|
||||
<KeyboardAwareScrollView
|
||||
bounces={false}
|
||||
enableAutomaticScroll={true}
|
||||
enableAutomaticScroll={Platform.select({ios: true, default: false})}
|
||||
enableOnAndroid={true}
|
||||
enableResetScrollToCoords={true}
|
||||
extraScrollHeight={Platform.select({ios: 45})}
|
||||
keyboardOpeningTime={0}
|
||||
keyboardDismissMode='on-drag'
|
||||
keyboardDismissMode='none'
|
||||
keyboardShouldPersistTaps='handled'
|
||||
ref={keyboardAwareRef}
|
||||
scrollToOverflowEnabled={true}
|
||||
testID='edit_profile.scroll_view'
|
||||
style={styles.flex}
|
||||
|
|
|
|||
Loading…
Reference in a new issue