-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
17 changed files
with
2,976 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# CocoaPods | ||
Pods/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export NODE_BINARY=$(command -v node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
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 'RNSACExample-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 => false, | ||
:fabric_enabled => ENV['RCT_NEW_ARCH_ENABLED'] == '1', | ||
# 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 |
Oops, something went wrong.