mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user