RN
1.本地打包失败,短少sentry配置
正文
2.运行pod install的时候,use_native_modules 找不到本地的包
手动批改@react-native-commutiy下的包的门路 找到这个包下的bin.js本地的门路
3.运行yarn android的时候报错
手动批改android目录下的build.gradle文件,新增
4.运行yarn android的时候报错
手动复制jdk文件地址(留神替换为本人的地址)
sudo cp /Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/lib/tools.jar /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib
5.运行yarn android的时候报错
手动批改android下的compileSdkVersion和targetSdkVeision为29
6.运行yarn android的时候报错 cannot find moudle react-native-pager-view at @ant-design/react-native/lib/carousel
手动装置react-native-pager-view
运行yarn start的时候报错,找不到模块
手动装置@react-native-picker
APP拉起小程序领取后无奈返回APP
https://developers.weixin.qq…. 此接口用户可手动触发返回App 只能返回拉起小程序的App
react-native-image-picker 502
手动正文android/build.gradle中圈中的局部
maven { url ‘https://dl.bintray.com/umsdk/…’ } 拜访不了
按图示中替换maven { url ‘https://repo1.maven.org/maven2/’ }
RN 图片不显示
xcode12导致 在文件react-native/Libraries/Image/RCTUIImageViewAnimated.m中的
if (_currentFrame) {...}后加
else {
[super displayLayer:layer];
}
降级到最新的mac 零碎 monterey, xcode 13,运行yarn ios报错
解决办法
Xcode报错An organization slug is required (provide with –org)
在ios文件下新建sentry.properties文件
defaults.project=sentry新建的具体我的项目名
defaults.org=组织名 // 比方https://sentry.xxxx.com/organizations/sentry1111/projects/,组织名为sentry1111
defaults.url=https://sentry.xxxx.com // 私有化部署sentry的,取本人域名;走官网sentry的该值不须要配置,间接删除
auth.token=authtoken // 这个值的获取比拟麻烦, 私有化参照上面步骤获取,官网的应该走我的项目设置间接能生成
Taro
我的项目编译小程序报错
taro相干依赖 要与taro-cli保持一致
批改tabbar尺寸
app.less中间接批改.weui-tabbar__icon的宽高
进入列表页闪屏
从新返回列表页的生命周期
componentDidShow 只用来init
在程序切后盾生命周期
componentDidHide中重置查问参数(包含loading参数)
开发环境小程序启动白屏
src/app.config.ts
底部plugins中存在未受权插件 正文掉即可
微信开发者工具运行会呈现白屏,编译失败
降级零碎,降级微信开发者工具
启动后 跳转页面报错 空页面
降级微信开发者工具