-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathPodfile
More file actions
26 lines (21 loc) · 822 Bytes
/
Podfile
File metadata and controls
26 lines (21 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require_relative '../node_modules/react-native-macos/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
prepare_react_native_project!
target 'MacOSExample-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 => ENV['RCT_NEW_ARCH_ENABLED'] == '1',
# 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