mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
# Summary Due to the large number of example apps in the repository, I decided to change the structure and move all applications into an "apps" folder to maintain a clear structure.
29 lines
833 B
Ruby
29 lines
833 B
Ruby
require_relative '../node_modules/react-native-macos/scripts/react_native_pods'
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
|
|
ENV['RCT_NEW_ARCH_ENABLED'] = '0'
|
|
|
|
prepare_react_native_project!
|
|
|
|
target 'PaperMacOSExample-macOS' do
|
|
platform :macos, '10.15'
|
|
use_native_modules!
|
|
|
|
# Flags change depending on the env values.
|
|
flags = get_default_flags()
|
|
|
|
use_react_native!(
|
|
:path => '../node_modules/react-native-macos',
|
|
:hermes_enabled => true,
|
|
:fabric_enabled => false,
|
|
# Flipper is not compatible w/ macOS
|
|
:flipper_configuration => FlipperConfiguration.disabled,
|
|
# An absolute path to your application root.
|
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
)
|
|
|
|
post_install do |installer|
|
|
react_native_post_install(installer)
|
|
end
|
|
end
|