RN
1. Local packaging failed, lack of sentry configuration
Note
2. When running pod install, use_native_modules cannot find the local package
Manually modify the path of the package under @react-native-commutiy to find the local path of
3. An error is reported when running yarn android
manually modify the build.gradle file in the android directory and add
4. An error is reported when running yarn android
manually copy the jdk file address (note to replace with your own address)
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. An error is reported when running yarn android
Manually modify compileSdkVersion and targetSdkVeision under android to 29
6. An error is reported when running yarn android, cannot find moudle react-native-pager-view at @ant-design/react-native/lib/carousel
manually install react-native-pager-view
7 An error was reported when running yarn start, and the module could not be found
Manual installation @react-native-picker
8APP can't return to the APP after starting the mini program to pay
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html This interface user can manually trigger to return to the app, only the app that
9react-native-image-picker 502
in the circle in android/build.gradle
10 maven {url ' https://dl.bintray.com/umsdk/release' } Can’t access
replace maven as shown in the picture {url ' https://repo1.maven.org/maven2/' }
11 RN picture does not display
xcode12导致 在文件react-native/Libraries/Image/RCTUIImageViewAnimated.m中的
if (_currentFrame) {...}后加
else {
[super displayLayer:layer];
}
12 Upgrade to the latest mac system monterey, xcode 13, run yarn ios and report an error
solution
13 Xcode reports an error An organization slug is required (provide with --org)
Create a sentry.properties file
defaults.project=sentry新建的具体项目名
defaults.org=组织名 // 比如https://sentry.xxxx.com/organizations/sentry1111/projects/,组织名为sentry1111
defaults.url=https://sentry.xxxx.com // 私有化部署sentry的,取自己域名;走官方sentry的该值不需要配置,直接删除
auth.token=authtoken // 这个值的获取比较麻烦, 私有化参照下面步骤获取,官方的应该走项目设置直接能生成
14 If Xcode clicks on this file, it won't run
1. 可以在ios文件夹下运行yarn start
2. 在项目的最外层运行 yarn run ios
Taro
15 Project compilation small program error
taro related dependencies must be consistent with taro-cli
16 Modify the tabbar size
directly modify the width and height of the
17 Enter the list page splash screen
重新返回列表页的生命周期
componentDidShow 只用来init
在程序切后台生命周期
componentDidHide中重置查询参数(包括loading参数)
18 The small program in the development environment starts with a white screen
src/app.config.ts
底部plugins中存在未授权插件 注释掉即可
19 A white screen will appear when the WeChat developer tool is running, and the compilation fails
upgrade system, upgrade WeChat developer tool
20 Jumping to the page after startup reports an empty page error
Upgrade WeChat Developer Tools
The content packaged by Xcode is inconsistent with the content written by yourself
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
changed to
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];//开发包
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。