Comments (1)
We will likely migrate to SwiftUI and deprecate Main.storyboard
entirely. This will require us to bump the macOS deployment target to 11.0+. At the moment, we're stuck on 10.15 so we're looking at 4.0 release at the earliest.
In any case, I did some preliminary investigation and it looks like we no longer need to declare the default menu items. The code below will correctly insert the React menu between View and Window:
import SwiftUI
@main
struct ReactTestApp: App {
@State private var rememberLastComponent = false
var body: some Scene {
WindowGroup {
ContentView()
}
.commands {
CommandMenu(LocalizedStringKey(stringLiteral: "React")) {
Button(LocalizedStringKey(stringLiteral: "Load Embedded JS Bundle")) {
// TODO
}
Button(LocalizedStringKey(stringLiteral: "Load From Dev Server")) {
// TODO
}
Toggle(LocalizedStringKey(stringLiteral: "Remember Last Opened Component"), isOn: $rememberLastComponent)
Divider()
}
}
}
}
from react-native-test-app.
Related Issues (20)
- `react-native-reanimated` expo plugin broken after introduction of `@rnx-kit/react-native-host` HOT 4
- Update the config plugin for Reanimated
- iOS/macOS: add ability to customize `Info.plist`
- [email protected] cannot be added because it does not exist or is unsupported HOT 3
- Files are generated under the wrong folder if no `node_modules` folder exists
- Add support for `react-native` 0.73
- Add support for `react-native` 0.74 HOT 1
- Action Required: Fix Renovate Configuration
- Optional app.json component parameter to specify supported platforms for component HOT 8
- Quick start wiki has incorrect command in Macos section HOT 1
- Generate code from `app.json` and avoid parsing JSON at runtime HOT 3
- Add support for Bridgeless Mode
- `bundleRoot` ignored on apple HOT 1
- Improve the docs: add npm examples HOT 3
- Breaking changes in 4.0 HOT 5
- iOS / Android Assets HOT 7
- Adding Cocoapods minimum version requirement when setting up a project HOT 5
- Fresh install fails on Windows (Latest version as of this issue) HOT 1
- Is react-native-test-app's only use case: library testing or can it be used for production apps as well HOT 2
- Windows: Re-enable builds with NuGet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-test-app.