Open monkeydone opened 6 years ago
textAlign:'center,
adb logcat *:S ReactNative:V ReactNativeJS:V
react-native init ADemo
react-native run-android
translateY:-30; 将这个view的位置想上平移30.达到组件覆盖的效果. 更好的效果
elevation: 20, shadowOffset: {width: 0, height: 0}, shadowColor: 'black', shadowOpacity: 1, shadowRadius: 5,
elevation:20 只有设置了这个,在Android上才能看到阴影效果
cat package.json | grep react-native- | awk -F":" '{print $1}' | sort | xargs -I {} npm install --save {}
react-native init ProjectName --version 0.44.0 如果发现有ssl库错误 可以考虑复制其他可以运行的~/.rncache下的文件到自己的机器上.可能是这个目录下的文件下载失败的问题.
npm install -g yarn react-native-cli yarn config set registry https://registry.npm.taobao.org --global yarn config set disturl https://npm.taobao.org/dist --global
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs
react-native log-android react-native log-ios
调出调试菜单
安装某个模块