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:
Wojciech Lewicki
2022-09-26 16:15:59 +02:00
committed by GitHub
parent bf74342afa
commit f82a0265e2
21 changed files with 34 additions and 8 deletions
+1
View File
@@ -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