This file contains hidden or 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
name: "Release" | |
on: | |
push: | |
tags: | |
- "*" | |
env: | |
COMPOSER_FLAGS: "--no-dev --no-interaction" |
This file contains hidden or 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
- require_relative '../node_modules/react-native/scripts/react_native_pods' | |
- require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
+ require_relative '../../../node_modules/react-native/scripts/react_native_pods' | |
+ require_relative '../../../node_modules/@react-native-community/cli-platform-ios/native_modules' | |
target 'ExampleApp' do | |
... |
This file contains hidden or 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
npx @callstack/react-native-visionos@latest init MySpatialApp |
This file contains hidden or 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
bundle install && bundle exec pod install |
This file contains hidden or 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
yarn visionos |
This file contains hidden or 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
#if !TARGET_OS_VISION | |
// unsupported code | |
#endif |
This file contains hidden or 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
let jsCodeLocation = URL(string: "<http://localhost:8081/index.bundle?platform=ios>")! | |
let rootView = RCTRootView(bundleURL: jsCodeLocation, moduleName: "ReactNativeScreen", initialProperties: [:], launchOptions: nil) | |
let vc = UIViewController() | |
vc.view = rootView | |
self.present(vc, animated: true, completion: nil) |
This file contains hidden or 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
import UIKit | |
import React | |
import React_RCTAppDelegate | |
class AppDelegate: RCTAppDelegate { | |
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { | |
// Do any setup your app needs | |
self.automaticallyLoadReactNativeWindow = false | |
// Remember to call super |
This file contains hidden or 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
import UIKit | |
import React | |
import React_RCTAppDelegate | |
class AppDelegate: RCTAppDelegate { | |
// ... application didFinishLaunchingWithOptions | |
override func sourceURL(for bridge: RCTBridge) -> URL? { | |
self.bundleURL() | |
} |
This file contains hidden or 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
@main | |
struct BrownfieldSwiftUIApp: App { | |
@UIApplicationDelegateAdaptor var delegate: AppDelegate | |
var body: some Scene { | |
WindowGroup { | |
TabView { | |
ContentView() | |
.tabItem { | |
Label("Home", systemImage: "house") |
OlderNewer