我使用的是KeyboardAvoidingView和ScrollView和TextInput。当前几个TextInput聚焦时,键盘就会出现,并将TextInput移出屏幕太高。
我尝试过将KeyboardAvoidingView作为父标记,ScrollView作为子标记,反之亦然。我还玩过KeyboardAvoidingView的道具(keyboardVerticalOffset,behavior等)。然而,他们中的任何一个都不起作用。我还测试了react-native-keyboard-aware-scrollview包,完全没有工作。
<KeyboardAvoidingView b
登录到我的react原生项目后,我想转到下一页,但我在某个地方做错了。Formcomponent在任何情况下都不能作为onPress使用。原因何在? import React, {useState} from 'react';
import {View, Text, TextInput, TouchableOpacity, Image} from 'react-native';
import {login_screen} from '../styles/page_style';
import Home from 'healthyr
我是react native的新手,当我尝试这样做时 <TextInput
style={styles.input}
onChange={(text) => setPontoValue(text)}
/> 我收到此错误 TS2345: Argument of type 'NativeSyntheticEvent<TextInputChangeEventData>' is not assignable to parameter of type 'SetStateActi