![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react-native
诺冬丶
这个作者很懒,什么都没留下…
展开
-
OPPO R9真机上运行react native项目
由于我的手机是oppo R9在安装RN的时候遇见了坑,导致无法在真机上运行。 这里给大家分享一下我的解决方法。首先就跟着react native 中文网的搭建开发环境的步骤走一遍 https://reactnative.cn/docs/0.45/getting-started.html 环境都装好以后就是安装RN了测试安装react-native init AwesomeProjectcd原创 2017-06-19 21:07:37 · 1599 阅读 · 0 评论 -
React Native 屏幕适配
直接上代码import { Dimensions,PixelRatio} from 'react-native';export const windowWidth = Dimensions.get('window').width; //当前设备宽高export const windowHeight = Dimensions.get('window').height; const fontS原创 2017-06-28 00:59:51 · 370 阅读 · 0 评论