mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 22:25:12 +00:00
feat: update props field so rea works correctly (#1880)
PR adding update of _props after updateProps method in order for e.g. react-native-reanimated to pick correct props when running updates. Coauthored by @tomekzaw. It is needed since RCTMountingManager reads this field as oldProps: facebook/react-native@10e47b8/React/Fabric/Mounting/RCTMountingManager.mm#L306
This commit is contained in:
@@ -57,6 +57,7 @@ using namespace facebook::react;
|
||||
}
|
||||
|
||||
setCommonGroupProps(newProps, self);
|
||||
_props = std::static_pointer_cast<RNSVGForeignObjectProps const>(props);
|
||||
}
|
||||
|
||||
- (void)prepareForRecycle
|
||||
|
||||
Reference in New Issue
Block a user