在 Xcode 中显示上述错误
Update the Yoga package to v1.19.0,
Use patch-package for development ease
Add postinstall script to package.json file with patch-package call
Edit react-native/ReactCommon/yoga/yoga/Yoga.cpp to fix the issue with incorrect operator used Execute npx patch-package react-native to generate .patch file Make sure to add patches/ directory to git
编辑react-native/ReactCommon/yoga/yoga/Yoga.cpp文件以修复使用错误操作符的问题。替换按位“|”带有逻辑“||”的运算符操作员。
Xcode 14.3 (14E222b) 的 Yoga.cpp 问题:https://github.com/facebook/react-native/issues/36758#issuecomment-1496210081
Xcode 14.3 将按位“|”与布尔操作数一起使用:https://toyboy2.medium.com/xcode-14-3-use-of-bitwise-with-boolean-operands-d4784faf5e73