Как исправить «KeyboardAvoidingView» в IOS при использовании структуры Native Base Content - PullRequest
2 голосов
/ 11 июля 2019

Я использую KeyboardAvoidingView, чтобы отобразить фокус ввода, но когда KeyBoard показывает, scrollView paddingBottom изменяется и перекрывает форму.

<Container style={styles.container}>
  <Content contentContainerStyle={{flex:1}} scrollEnabled={false} enableOnAndroid  >{/* styles.content */}
    <ScrollView style={{flex: 1}} automaticallyAdjustContentInsets={true} indicatorStyle="white" >
      <KeyboardAvoidingView behavior="padding" enabled={Platform.OS === 'android' ? true : false} style={styles.keyboardAvoidingView} keyboardVerticalOffset={60} >
        <Form style={{margin:20,marginRight:35}}>
          <Input>
            {/*... Some Inputs*/}
          </Input>
        </Form>
      </KeyboardAvoidingView>
    </ScrollView>
  </Content>
</Container>

Изображение 1: enter image description here

Изображение 2: enter image description here

Изображение 3: enter image description here

...