1

我正在开发 react-native 应用程序,我希望能够在 TextInput 中显示剪贴板 onLongPress 而不显示键盘。仅当用户短按(点击)时才应显示键盘。

<TouchableWithoutFeedback onLongPress={() => Keyboard.dismiss} accessible={true}>
         <TextInput
               placeholder={props.messages.placeholder.token}
               keyboardType={"default"}
               onChangeText={(text) => props.setControlToken({ text })}
               underlineColorAndroid="transparent"
               style={{
                   borderBottomWidth: 1,
                   borderRadius: 4,
                   fontSize: inputFontSize
              }}
          />
</TouchableWithoutFeedback>

谢谢

4

0 回答 0