- 博客(16)
- 资源 (1)
- 收藏
- 关注
原创 RN常见问题
1、问题:/node_modules/react-native/third-party/glog-0.3.4':解决方式:RN升级可能产生这个bug,解决方法"在根目录:1.cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../2.cd node_modules/react-native/third-party/glog-0.3.4/ &&
2020-09-09 16:42:36
295
原创 React-Native更换源
查看镜像源 npm config get registry更换为taobao源 npm config set registry https://registry.npm.taobao.org --global npm config set disturl https://npm.taobao.org/dist --global更换为官方镜像源 npm config set registry https://registry.npmjs.org/yarn换源也是一样...
2020-07-28 09:34:21
706
原创 Mysql安装
1、安装后没有服务执行 mysqld.exe install2、服务无法启动执行mysqld --initialize-insecure ,第一次执行的话,时间会久一些,执行结束后没有输出信息,查看bin的同级目录下会多出一个data文件夹,里面一堆文件,默认密码就在里面3、默认密码进入刚刚最开始创建的data文件夹,跟bin同一个文件夹的那个,里面有一个.err的文件,用...
2020-04-18 10:48:03
254
原创 mac 上 react native 8081端口被占用
1命令 lsof -i tcp:port (port替换成端口号,比如8081)可以查看该端口被什么程序占用,并显示PID,方便KILL2使用kill -9 + pid3.重启xcode
2020-03-20 14:30:49
490
原创 React-Native包简单介绍
// 绘图//"@react-native-community/art": "^1.1.2",//// 一个用于React Native的异步,未加密,持久的键值存储系统//"@react-native-community/async-storage": "^1.7.1",// 针对Android,iOS,macOS和Windows的React Native Network Inf...
2020-03-17 17:12:28
749
转载 打包dll发布到nuget服务器
创建类库首先创建一个类库,就是你想要发布到nuget的类库,在AssemblyInfo.cs编辑程序集版本信息,重新生成,好了,这一步就完成了,哈哈哈下载并注册nugetnuget地址:https://www.nuget.org/你需要在这个网站注册一个账号,期间会有邮箱验证,验证成功之后就可以了然后下载nuget.exe:https://www.nuget.org/downl...
2020-02-25 10:22:23
1097
原创 常用网页
MobX :https://cn.mobx.js.org/ReactNative 中文网:https://reactnative.cn/docs/0.60/getting-started.htmlNPM:https://www.npmjs.comReactNativeNavigation (导航):https://reactnavigation.org/React-nati...
2019-11-22 14:59:14
250
原创 index.android.bundle的报错
在 android\app\src\main下新建assets文件夹react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/...
2019-11-16 16:37:44
731
转载 Git 常用命令
修改和提交#添加所有改动过的文件git add . #添加指定的文件git add #文件重命名git mv#删除文件git rm#停止跟踪文件但不删除git rm -cached#提交指定文件git commit -m '修改说明'#提交所有更新过的文件git commit -m "commit message"#修改最后一次提交git commit -a...
2019-11-12 12:33:23
104
转载 code-push常用命令
1. code-push常用命令 deploymentNmae:Debug,Production安装: npm install -g code-push-cli 注册账号: code-push register 登陆: code-push login 注销: code-push logout 添加项目: code-push app add [app名称] 删除项目: code-...
2019-11-12 12:21:36
3584
转载 whistle抓包工具
GitHub:https://github.com/avwo/whistle/blob/master/README-zh_CN.md安装具体教程地址:https://wproxy.org/whistle/install.html步骤:1.全局安装node,全局安装whistlecmd->进入全局安装安装node安装whistle npm install -g whi...
2019-11-12 12:03:23
1075
原创 React-native 创建新项目
1、创建项目 React-native init demo(项目名) --version 0.58.62、复制项目包(package.json),并更改项目名称(name)3、生成项目包文件 yarn install4、react-native link 包文件5、复制重载包(replace_node_modules)到包文件夹(node_modules)6、将原项目a...
2019-09-06 10:39:32
1442
原创 VsCode DeBug运行失败
错误说明:[Error] Error: 执行命令 react-native.cmd run-android --no-packager 时出错: 执行命令 react-native.cmd run-android --no-packager 时出错 (error code 101)解决方式:将build目录删除( 项目目录/android/app/build),再次运行尝试...
2019-08-15 17:44:51
5230
转载 React Native 中 component 生命周期
React Native中的component跟Android中的activity,fragment等一样,存在生命周期,下面先给出component的生命周期图getDefaultPropsobject getDefaultProps()执行过一次后,被创建的类会有缓存,映射的值会存在this.props,前提是这个prop不是父组件指定的这个方法在对象被创建之前执行,因此不...
2019-08-08 16:42:27
123
原创 ReactNative绑定模拟器
adb connect 127.0.0.1这句命令默认会连5555端口,谷歌官方模拟器就是用这个端口,但是这些国产模拟器用的端口却不一样绑定模拟器网易:abd connect 127.0.0.1:7555夜神:abd connect 127.0.0.1:62001逍遥:adb connect 127.0.0.1:21503查看已连接设备:adb devices真机调试:ad......
2019-08-08 16:36:39
1953
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人