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
#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
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
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
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
- 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
name: "Release" | |
on: | |
push: | |
tags: | |
- "*" | |
env: | |
COMPOSER_FLAGS: "--no-dev --no-interaction" |
NewerOlder