1
假设这是一个分量获取从文本输入所选文本
class Wysiwyg extends Component {
constructor(props) {
super(props);
}
render() {
return(
<View>
<TextInput placeholder="Type here" />
</View>
)
}
}
AppRegistry.registerComponent('AwesomeProject',() => Wysiwyg)
我打字:“棕色的大眼睛”
现在,如果我从文本输入中选择“大”。如何获得选定的文本输入值,以便我可以按下按钮将“Big”更改为Big粗体。
我会尽快查询并尽快与您联系。谢谢。 – Kakar