callstack / react-native-visionos

A framework for building native visionOS applications using React
https://callstack.github.io/react-native-visionos-docs/
MIT License
1.02k stars 30 forks source link

feat: make SwiftUI React Native entry point #68

Closed okwasniewski closed 10 months ago

okwasniewski commented 11 months ago

Towards #45

Summary:

This PR introduces SwiftUI as the application entry point. Allowing to leverage Immersive Spaces, Volumetric Windows, and much more!

The way we are currently creating new windows is a temporary workaround until a proper solution is upstreamed (https://github.com/facebook/react-native/pull/42263). This PR also introduces React-RCTSwiftExtensions pod that contains useful utility classes to host React Native in SwiftUI.

Changelog:

[VISIONOS] [ADDED] - Make SwiftUI as the application root

Test Plan:

  1. Initialize app from the new template
  2. Experiment with the APIs