Skip to content

Handle removing exception#2624

Merged
piaskowyk merged 1 commit into
masterfrom
@piaskowyk/shimmer-fix
Nov 25, 2021
Merged

Handle removing exception#2624
piaskowyk merged 1 commit into
masterfrom
@piaskowyk/shimmer-fix

Conversation

@piaskowyk
Copy link
Copy Markdown
Member

@piaskowyk piaskowyk commented Nov 12, 2021

Description

I am not convinced to fix it by reanimated side. IMO this assertion is not necessary and handling it this way looks like dirty hacks for edge cases. I ask them to remove this assertion. in spite of it, I prepared a fix.

Handle Assert exception during disappearing of a component. Caused by https://github.com/oblador/react-native-shimmer/blob/620a9e899df40e1bef38127d4ef61384e1a195c5/ios/RNShimmeringView.m#L26

Fixes #2554

Related: oblador/react-native-shimmer#33

Copy link
Copy Markdown
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I support this change. I think it does not make sense to catch unchecked exceptions thrown by other libraries in reanimated. Especially that in this particular case the assertion does not really assert against anything and the method could proceed as normal w/o it. I think what would make sense for cases like that is what we discussed offline, that is an ability to disable exiting animations in subtrees

@piaskowyk piaskowyk merged commit 28c47fe into master Nov 25, 2021
@piaskowyk piaskowyk deleted the @piaskowyk/shimmer-fix branch November 25, 2021 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception thrown while executing UI block: Attempted to remove non-existent subview

2 participants