Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 使用粘贴在页脚中的本机键盘避免查看_React Native_Keyboard - Fatal编程技术网

React native 使用粘贴在页脚中的本机键盘避免查看

React native 使用粘贴在页脚中的本机键盘避免查看,react-native,keyboard,React Native,Keyboard,我正在使用react native的键盘AvoidingView,屏幕底部有输入(justifyContent:'flex-end')。键盘仍然隐藏输入 这里有一个描述 <View style={{ backgroundColor: AppConst.Colors.rowBg, flex: 1, paddingLeft: 20, paddingRight: 20, justifyContent: 'flex-end

我正在使用react native的
键盘AvoidingView
,屏幕底部有输入(
justifyContent:'flex-end'
)。键盘仍然隐藏输入


这里有一个描述
 <View
    style={{
      backgroundColor: AppConst.Colors.rowBg,
      flex: 1,
      paddingLeft: 20,
      paddingRight: 20,
      justifyContent: 'flex-end',
    }}
  >
    <KeyboardAvoidingView behavior="padding">
      <Text style={{ color: AppConst.Colors.blackApp, fontSize: 18 }}>
        A description goes here
      </Text>
      <View
        style={{
          height: 50,
          width: width - 40,
          justifyContent: 'center',
          paddingLeft: 20,
          backgroundColor: '#FFF',
        }}
      >
        <TextInput
          style={{ color: AppConst.Colors.blackApp, backgroundColor: '#FFF', height: 50 }}
          onChangeText={this.onChangeFriendCode}
          placeholderTextColor={AppConst.Colors.grayApp}
          value={this.state.token}
          placeholder={this.props.store.translate('ENTER_CODE')}
          tintColor={AppConst.Colors.mainApp}
          maxLength={6}
          autoCorrect={false}
        />
      </View>
      <Butto
        captionStyle={{
          color: AppConst.Colors.mainApp,
          textAlign: 'center',
        }}
        caption={'A button here'}
      />
    </KeyboardAvoidingView>
  </View>