Skip to content

Commit c7ba66d

Browse files
committed
Init [email protected] project
I temporarily renamed the "name" field in package.json to "RNSACExample", then ran `npx react-native-macos-init` to generate a project by that name.
1 parent 4cbcfbc commit c7ba66d

File tree

17 files changed

+2976
-0
lines changed

17 files changed

+2976
-0
lines changed

example/macos/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CocoaPods
2+
Pods/

example/macos/.xcode.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export NODE_BINARY=$(command -v node)

example/macos/Podfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require_relative '../node_modules/react-native-macos/scripts/react_native_pods'
2+
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3+
4+
prepare_react_native_project!
5+
6+
target 'RNSACExample-macOS' do
7+
platform :macos, '10.15'
8+
use_native_modules!
9+
10+
# Flags change depending on the env values.
11+
flags = get_default_flags()
12+
13+
use_react_native!(
14+
:path => '../node_modules/react-native-macos',
15+
:hermes_enabled => false,
16+
:fabric_enabled => ENV['RCT_NEW_ARCH_ENABLED'] == '1',
17+
# An absolute path to your application root.
18+
:app_path => "#{Pod::Config.instance.installation_root}/.."
19+
)
20+
21+
post_install do |installer|
22+
react_native_post_install(installer)
23+
end
24+
end

0 commit comments

Comments
 (0)