Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions android/src/main/java/com/swmansion/reanimated/NodesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,22 @@ public void sendEvent(String name, WritableMap body) {
}

public void updateProps(int viewTag, Map<String, Object> props) {
/*
* This is a temporary fix intended to address an issue where updates to properties
* are attempted on views that may not exist or have been removed. This scenario can
* occur in fast-changing UI environments where components are frequently added or
* removed, leading to potential inconsistencies or errors when attempting to update
* views based on outdated references
*/
try {
View view = mUIManager.resolveView(viewTag);
if (view == null) {
return;
}
} catch (IllegalViewOperationException e) {
return;
}

// TODO: update PropsNode to use this method instead of its own way of updating props
boolean hasUIProps = false;
boolean hasNativeProps = false;
Expand Down