小编Lew*_*hen的帖子

如何修复每当我在 Expo react-native 中使用 KeyboardAwareView 或 react-native-keyboard-aware-scroll-view 时显示的白色键盘空间?

我正在使用 Expo - react-native 创建应用程序,但使用 KeyboardAvoidingView 和其他键盘包(react-native-keyboard-aware-scroll-view)在屏幕底部显示空白。我该如何解决?( https://i.stack.imgur.com/1c0M6.jpg ) 尝试过 KeyboardAvoidingView 和 react-native-keyboard-aware-scroll-view 但问题仍然存在

       import React, {Component} from 'react';
       import {StyleSheet,
       ScrollView,
       Text,ActivityIndicator,
       TouchableOpacity,
       TextInput,
        View,
        StatusBar,
       ImageBackground,
        KeyboardAvoidingView} from 'react-native';

       import { createStackNavigator, createAppContainer } from 'react- 
        navigation';
        import { KeyboardAwareView } from 'react-native-keyboard-aware- 
        view';
        import { AsyncStorage } from 'react-native';

        export default class LoginForm extends Component {
        render() {
         return (
           <KeyboardAwareView contentContainerStyle={{flex: 1}} animated={true}>
      <View style={styles.container}>
      <ScrollView style={{flex: 1}}>
    <StatusBar
      backgroundColor="transparent"
      barStyle="default"
      translucent={true}
    />
        <ImageBackground style={{width: "100%",height: …
Run Code Online (Sandbox Code Playgroud)

android react-native react-native-android expo

4
推荐指数
1
解决办法
9760
查看次数