0

我在使用 react-native textinput 时遇到问题。在一个屏幕上显示 swiftkeyboard,而在另一个屏幕上不显示 swift 键盘,而是显示默认键盘。

在下面的 textinput swiftkey 键盘上显示:

<TextInput
              name="hintText"
              enablesReturnKeyAutomatically = {true}
              returnKeyType = "done"
              maxLength={this.state.maxHintLength}
              multiline={true}
              placeholder="Enter your hint here"
              underlineColorAndroid='rgba(0,0,0,0)'
              value={user.hintText}
              onChange={this.onHintTextChange}
              autoCorrect={false}
              style={styles.buttonEditTextBlue}
              blurOnSubmit={true}
            />

并且在下面的 textinput swiftkey 键盘上不显示

<TextInput
              underlineColorAndroid='rgba(0,0,0,0)'
              value={user.email}
              onChange={this.handleEmail}
              enablesReturnKeyAutomatically = {true}
              type="text"
              keyboardType = "email-address"
              returnKeyType = "done"
              autoCorrect={false}
              style={{color:'#333333',height: 40, backgroundColor:'white', marginTop:5,width:'100%',borderRightWidth: 0, borderLeftWidth:0,borderColor: 'lightgray', borderWidth: 1,paddingLeft:10}}
            />
4

0 回答 0