我想避免使用其他语言,我想要一个英文键盘作为输入。
<TextInput style={{ width: "85%", marginStart: 10, fontSize: 12, fontFamily: 'Roboto' }} placeholder="Enter your password" onChangeText={password => setPassword(password)} secureTextEntry={!showPassword} />
在 TextInput 中使用“keyboardType="email-address"”属性
在 React Native 中强制仅从键盘启用英语