Patch react-native/Yoga to make it possible to build an app using Xcode 14.3 (#15589)
* Patch react-native/Yoga to make it possible to build an app using Xcode 14.3 * Update * Update * Comment update * Comment update
This commit is contained in:
parent
4123fde91b
commit
5be2cd949b
|
@ -12,6 +12,7 @@ stdenv.mkDerivation {
|
||||||
"patchBuildIdPhase"
|
"patchBuildIdPhase"
|
||||||
"patchHermesPhase"
|
"patchHermesPhase"
|
||||||
"patchJavaPhase"
|
"patchJavaPhase"
|
||||||
|
"patchYogaNodePackagePhase"
|
||||||
"installPhase"
|
"installPhase"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -66,6 +67,14 @@ stdenv.mkDerivation {
|
||||||
patchJavaPhase = ''
|
patchJavaPhase = ''
|
||||||
${nodejs}/bin/node ./node_modules/jetifier/bin/jetify
|
${nodejs}/bin/node ./node_modules/jetifier/bin/jetify
|
||||||
'';
|
'';
|
||||||
|
# Patch React Native Yoga.cpp file
|
||||||
|
# FIXME: Remove this once release newer than 1.19.0 is used which includes:
|
||||||
|
# https://github.com/facebook/yoga/commit/f174de70
|
||||||
|
patchYogaNodePackagePhase = ''
|
||||||
|
substituteInPlace ./node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp --replace \
|
||||||
|
'node->getLayout().hadOverflow() |' \
|
||||||
|
'node->getLayout().hadOverflow() ||'
|
||||||
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -R node_modules $out/
|
cp -R node_modules $out/
|
||||||
|
|
Loading…
Reference in New Issue