Skip to content

Releases: callstack/react-native-visionos

Release 0.74.0-nightly-20240123

26 Jan 12:44
4e11ae3
Compare
Choose a tag to compare

What's new?

SwiftUI as Entry point

React native visionOS now uses SwiftUI lifecycle. The app entry point is now App.swift file (by default it is main.m). This change allows us to use full capabilities of the visionOS SDK.

Here is a example from the template:

// App.swift
@main
struct HelloWorldApp: App {
  @UIApplicationDelegateAdaptor var delegate: AppDelegate
  
  var body: some Scene {
    RCTMainWindow(moduleName: "HelloWorld")
  }
}

What's Changed

Full Changelog: https://github.com/callstack/react-native-visionos/commits/v0.74.0-nightly-20240123