React native 判断 Platform
来源:互联网 发布:c语言排序算法 编辑:程序博客网 时间:2024/05/11 04:54
在模拟器中运行,Platform 可以判断出来,
但是在真机运行的时候Platform 这个platform,什么也没出来
解决办法: IOS 删掉app,重新build
Android 删掉 index.android.bundle
重新执行
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
同样的textInput,密文输入也是这个问题,有时候不显示密文,尤其对于android平台,稳定性真的有待提高
同样的代码,有时就表现的很诡异,删掉app,重新编译执行也许是个办法
0 0
- React native 判断 Platform
- React Native 特定平台选择-Platform
- react native 判断网络状态
- react native使用Platform给安卓或者ios单独设置样式
- react native
- React Native
- React Native
- React- Native
- react-native
- React Native
- React Native
- react native
- React Native
- react-native
- React Native
- react native
- React Native
- React Native
- mysql中if函数
- MySql避免重复插入记录方法(ignore,Replace,ON DUPLICATE KEY UPDATE)
- 引用与指针
- setScale,preScale和postScale的区别
- 日常记录:《算法导论》学习笔记之一
- React native 判断 Platform
- nginx的时间管理机制
- jenkins介绍(补充)
- iOS从App跳转至系统设置菜单各功能项跳到系统设
- React Native Android Gradle 编译流程浅析(二)
- 深度学习有趣的应用
- word2vec笔记
- 现在完成时
- 工厂方法模式(Factory Method Pattern)