我想知道你们中是否有人知道在editable={false}
时使TextInput
可选的方法。
谢谢。
这是React Native的当前行为
在使用Text
的情况下,您可以使用fake
TextInput
并使用selectable
道具https://reactnative.dev/docs/text#selectable
或者类似的东西
this.state.editable ? <TextInput /> : <Text selectable={true} />;