Hey!
Today we are releasing React Native visionOS 0.77! 🎉
This release contains all the changes from React Native 0.77.
You can create a new application using the command below:
npx @react-native-community/cli@latest init NewVisionApp --template @callstack/[email protected]
Important for upgrading
While upgrading to this version make sure to add RCTAppDependencyProvider
in your AppDelegate.swift
:
class AppDelegate: RCTAppDelegate {
+ override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
+ self.dependencyProvider = RCTAppDependencyProvider()
+
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}
override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}