callstack / react-native-visionos

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

feat: add support for ornaments & dev menu trigger #149

Closed okwasniewski closed 1 month ago

okwasniewski commented 1 month ago

Summary:

This PR adds ornaments support. And also allows headset users to trigger dev menu while wearing the headset easily. (#17)

Now users can use ornaments (and any other SwiftUI modifiers on the root view!)

RCTMainWindow(moduleName: "RNTesterApp") { rootView in
   rootView.ornament(attachmentAnchor: .scene(.bottom)) {
      Button("Hey"){}
   }
}

simulator_screenshot_D101DA49-B497-405A-9C71-F7E4F0B9B839

Changelog:

Test Plan: