Hi! 馃憢
Firstly, thanks for your work on this project! 馃檪
Today I used patch-package to patch react-native@0.81.5 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native/ReactCommon/react/renderer/core/graphicsConversions.h b/node_modules/react-native/ReactCommon/react/renderer/core/graphicsConversions.h
index bb59351..bcff1d7 100644
--- a/node_modules/react-native/ReactCommon/react/renderer/core/graphicsConversions.h
+++ b/node_modules/react-native/ReactCommon/react/renderer/core/graphicsConversions.h
@@ -76,8 +76,11 @@ inline folly::dynamic toDynamic(const YGValue& dimension) {
return "stretch";
case YGUnitPoint:
return dimension.value;
- case YGUnitPercent:
- return std::format("{}%", dimension.value);
+ case YGUnitPercent: {
+ char buffer[32];
+ std::snprintf(buffer, sizeof(buffer), "%g%%", dimension.value);
+ return std::string(buffer);
+ }
}
return nullptr;
This issue body was partially generated by patch-package.
Hi! 馃憢
Firstly, thanks for your work on this project! 馃檪
Today I used patch-package to patch
react-native@0.81.5for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.