Commit ed16a5e
feat: add react-native-macos support (#513)
* Move example -> example-prev
* Init React Native Test App
yarn init-test-app --version 0.73.0
(and manually bump react-native-* versions afterwards)
* Merge example-prev into example
* Add osx to podspec
* Fix metro config to resolve react-native-safe-area-context
* Install pods
* Write macOS equivalents for all iOS code
* Raise macOS deployment target to 10.15
* Delete example-prev
* Trying and failing to get macOS app to build
* Apply Tommy Nguyen's suggestions to fix pod installation
Co-authored-by: Tommy Nguyen <[email protected]>
* Stop using compat components for macOS
* Restore example to its original state
* Add example-macos
* Reduce macOS deployment target to 10.15
* Make example-macos use RNTesterApp instead of bespoke app
* Remove example-macos
* Pin react-native and react-native-macos to v0.74
* 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.
* Fix bundleURL
microsoft/react-native-macos#2164 (comment)
* Fix Metro config
* Run yarn format:write
---------
Co-authored-by: Tommy Nguyen <[email protected]>1 parent cc52b98 commit ed16a5e
File tree
34 files changed
+3826
-407
lines changed- example
- ios
- macos
- RNSACExample-macOS
- Assets.xcassets
- AppIcon.appiconset
- Base.lproj
- RNSACExample.xcodeproj
- RNSACExample.xcworkspace
- ios
- src
34 files changed
+3826
-407
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments