![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react native
邓惠子飞吧
加油,做最好的自己!
展开
-
webView在android端出现乱码问题
添加baseUrl属性解决webView在android端出现乱码问题<WebView source={{ html: this.state.content, baseUrl: ''}}/>原创 2018-10-16 13:45:16 · 466 阅读 · 0 评论 -
react native 键盘遮挡问题
ios:import { KeyboardAvoidingView } from 'react-native';<KeyboardAvoidingView style={styles.container} behavior="padding" enabled={Platform.OS === 'ios'} > ... 在这里放置需要根据键盘调整位置的组件 ...<...原创 2019-03-27 19:37:34 · 398 阅读 · 0 评论 -
获取和设置react native 的TextInput的光标
需求:通过按键向TextInput中输入特定字符。如图所示。问题:如何把字符插入到光标所在位置,就需要获取光标位置打印 this.refs.keywords可以找到:函数:setNativeProps用于设置光标位置。传参为{selection : { start : start, end : end}},指定光标的开始和结束。如果start和end不能这说明start-...原创 2019-03-27 19:45:50 · 5206 阅读 · 1 评论