Phecda Su

Results 8 comments of Phecda Su

勾选 `将 JS 编译成 ES5` 试试

A (not perfect) workaround is setting blur enabled to `false` during unmount, which should be done in native code. ``` patch diff --git a/node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManagerImpl.java b/node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManagerImpl.java index 4444313..6fe3478 100644 --- a/node_modules/@react-native-community/blur/android/src/main/java/com/reactnativecommunity/blurview/BlurViewManagerImpl.java...

Maybe we can also add a `code` key to the Kotlin/Swift/TS... `Error` ? This is useful when I previously use the old arch.

I just find that Fabric Component can control its recycle behaviour with `+ (BOOL)shouldBeRecycled` and `- (void)prepareForRecycle`. Maybe we can make something similar?

Theoritically we have `Error.prototype.cause` from es2022, but it looks like RN has not used it in tsconfig. https://github.com/facebook/react-native/blob/e08abbcb99270381c94145a33476f51684dffd93/packages/typescript-config/tsconfig.json#L19-L21 > Until now complex error info can only be passed as json...

This is because [UIScrollEdgeEffect](https://developer.apple.com/documentation/uikit/uiscrolledgeeffect?language=objc) introduced in iOS 26. A temp workaround for new Arch is to apply this patch: ``` diff diff --git a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm b/node_modules/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm index c593d9e..161a804 100644 --- a/node_modules/react-native/React/Fabric/Mounting/ComponentViews/ScrollView/RCTEnhancedScrollView.mm...

On iOS new arch, every view is recycled by default. So we should do some cleaning work in `- (void)prepareForRecycle` of the `LottieAnimationViewComponentView`. My idea is: 1. set the 4...