react native
爱吃的小胖子
这个作者很懒,什么都没留下…
展开
-
react native 常用实用插件
调用系统打电话、发短信、发邮件、打开网址功能https://github.com/anarchicknight/react-native-communications快速检索列表(按首字母)https://github.com/johanneslumpe/react-native-selectablesectionlistview图表组件https://github.com/tomauty/rea...原创 2018-07-16 13:17:39 · 2719 阅读 · 0 评论 -
react-native数组删除,数组长度未变
js的数组删除方式有两种:一、delete(数组的长度不发生变化)var array = ["我","爱","你"]delete array[0]二、splice(数组的长度会发生相应的变化)splice(0,1);括号中的第一个数字是起始位置,后一个数字是需要删除的长度...原创 2018-09-29 17:19:31 · 3594 阅读 · 1 评论 -
react native常见的真机调试错误及警告集锦(持续更新中...)
1,undefined不是函数(评估'_this.registerEvents()')由于项目使用了最新的RN版本:0.57.0,所引起的:首先在项目目录下运行react-native start --reset-cache;之后再运行react-native run-android就可以了;2、 TaskQueue: Error with task : Invariant Vio...原创 2018-11-10 23:33:06 · 3327 阅读 · 0 评论 -
react native console.error...
Attempted to transition from state `RESPONDER_INACTIVE_PRESS_IN` to `RESPONDER_ACTIVE_LONG_PRESS_IN`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being can...原创 2018-10-26 14:39:13 · 835 阅读 · 0 评论 -
react native 安卓iOS打包流程及注意事项
安卓:1、先生成签名秘钥:在项目主目录下执行下语句(有效期10000天)keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000之后再项目主目录下生成my-release-key.keystore文件,将该文件移动到...原创 2018-11-06 09:36:46 · 527 阅读 · 0 评论 -
项目创建:
项目创建:1、前提:环境配置完成;2、打开终端,cd到目标文件夹,运行react-native init +项目名;之后就是等待,等待出现下面图片中的内容时,说明创建完成,之后可以用webstorm等工具打开项目;...原创 2018-11-30 19:13:29 · 190 阅读 · 0 评论 -
react native 利用ios模拟器,第一次调用时需运行下面的命令
1、sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/2、指定simulator运行项目,react-native run-ios --simulator "iPhone 6s"3、指定真机运行 react-native run-ios --device "zhuoiPhone"...原创 2019-01-12 14:29:24 · 940 阅读 · 0 评论 -
react native项目正常运行但终端是Loading dependency graph, done.
这种情况出现在android端,在android项目的mainApplication文件中的方法,就可以正常加载进度条,以及能通过摇晃手机唤出菜单页public boolean getUseDeveloperSupport() { //return BuildConfig.DEBUG; return true;} ...原创 2019-02-01 14:07:02 · 2899 阅读 · 4 评论