Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Run React Native Gallery on macOS #469

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5f769c1
index.js to make sure ship bundles RN
Saadnajmi Jul 17, 2024
a290dba
Chore: Update react-native-lottie
Saadnajmi Jul 9, 2024
0446cea
Edit eslint default
Saadnajmi Jul 1, 2024
8ff2ddc
Run `npx react-native-macos-init`
Saadnajmi Jun 13, 2024
46de731
react-native-macos-init followup
Saadnajmi Jul 1, 2024
bda5c7f
macOS hello world runs
Saadnajmi Jul 1, 2024
52cb17b
Comment out react-native-windows dependencies & picker
Saadnajmi Jul 1, 2024
2c68b57
Comment out faulty test pages
Saadnajmi Jul 2, 2024
99b820b
Comment out LinearGradient and react-native-xaml
Saadnajmi Jul 2, 2024
6f7f15f
Comment out react-native-xaml references
Saadnajmi Jul 2, 2024
0cd3f80
Show all samples on Home screen
Saadnajmi Jul 23, 2024
fd248d3
Use RN SVG for gradients
Saadnajmi Jul 3, 2024
5f3e1c3
Port some PlatformColor uses
Saadnajmi Jul 3, 2024
91519e0
Fix Image aspect ratios
Saadnajmi Jul 10, 2024
eab5076
Add Segoe font to macOS app
Saadnajmi Jul 10, 2024
27e54b0
Replace uses of PathIcon & FontIcon with FURN Icon
Saadnajmi Jul 10, 2024
52278da
Remove App.macos.tsx
Saadnajmi Jul 2, 2024
610d3f0
WIP: macOS sidebar
Saadnajmi Jul 14, 2024
28b5a8c
WIP: Port most icons to fluent icons
Saadnajmi Jul 15, 2024
f1ce961
WIP: Sidebar selection is more macOS like
Saadnajmi Jul 15, 2024
f197187
WIP: Sidebar, LayoutAnimation
Saadnajmi Jul 15, 2024
ad7a026
WIP: Sidebar, No titlebar on macOS
Saadnajmi Jul 16, 2024
a4adac8
ControlItem, no new badge
Saadnajmi Jul 15, 2024
41f7a53
FocusZone
Saadnajmi Jul 16, 2024
e73f98c
WIP: Apple Design
Saadnajmi Jul 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
File renamed without changes.
4 changes: 4 additions & 0 deletions macos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# CocoaPods
Pods/

.xcode.env.local
1 change: 1 addition & 0 deletions macos/.xcode.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export NODE_BINARY=$(command -v node)
26 changes: 26 additions & 0 deletions macos/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 'rngallery-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',
# 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
Loading
Loading