mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 00:42:31 +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:
@@ -78,6 +78,7 @@ using namespace facebook::react;
|
||||
if (RCTUIColorFromSharedColor(newProps.color)) {
|
||||
self.tintColor = RCTUIColorFromSharedColor(newProps.color);
|
||||
}
|
||||
_props = std::static_pointer_cast<RNSVGSvgViewProps const>(props);
|
||||
}
|
||||
|
||||
- (void)prepareForRecycle
|
||||
|
||||
Reference in New Issue
Block a user