feat: use yoga::StyleLength instead of yoga::value on 77+ (#2582)

# Summary

With react-native@0.77 `yoga::value` is no longer available and we
should use `yoga::StyleLength`.

## Test Plan

App should build again on 0.77.rc-3
This commit is contained in:
Jakub Grzywacz
2024-12-19 14:34:55 +01:00
committed by GitHub
parent b4fa586ab8
commit 6042b89b6b
8 changed files with 86 additions and 27 deletions

View File

@@ -1,6 +1,8 @@
require 'json'
require_relative './scripts/rnsvg_utils'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
svgConfig = rnsvg_find_config()
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
@@ -25,6 +27,9 @@ Pod::Spec.new do |s|
s.tvos.resource_bundles = {'RNSVGFilters' => ['apple/**/*.appletvos.metallib']}
s.visionos.resource_bundles = {'RNSVGFilters' => ['apple/**/*.xros.metallib']}
s.xcconfig = {
"OTHER_CFLAGS" => "$(inherited) -DREACT_NATIVE_MINOR_VERSION=#{svgConfig[:react_native_minor_version]}",
}
if fabric_enabled
install_modules_dependencies(s)