头图

RN

1. Local packaging failed, lack of sentry configuration

image.png
Note
image.png

2. When running pod install, use_native_modules cannot find the local package

image.png
Manually modify the path of the package under @react-native-commutiy to find the local path of
image.png

3. An error is reported when running yarn android

image.png
manually modify the build.gradle file in the android directory and add
image.png

4. An error is reported when running yarn android

image.png
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

image.png
Manually modify compileSdkVersion and targetSdkVeision under android to 29
image.png

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

image.png
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

image.png
in the circle in android/build.gradle
image.png

10 maven {url ' https://dl.bintray.com/umsdk/release' } Can’t access

image.png

replace maven as shown in the picture {url ' https://repo1.maven.org/maven2/' }
image.png

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

image.png
solution
image.png

13 Xcode reports an error An organization slug is required (provide with --org)

企业微信截图_537845f3-7664-46f0-9eba-15485d450429.png
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

企业微信截图_2430d6a1-0069-4c8e-92d6-3668c172cd31.png


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

image.png
upgrade system, upgrade WeChat developer tool

20 Jumping to the page after startup reports an empty page error

image.png
Upgrade WeChat Developer Tools

The content packaged by Xcode is inconsistent with the content written by yourself

image.png

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

changed to

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];//开发包

HappyCodingTop
526 声望847 粉丝

Talk is cheap, show the code!!