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

Track state of windows #135

Open MP185496 opened 3 months ago

MP185496 commented 3 months ago

Description

Is there any way to check did i already opened the window? When we close second window by clicking x, in our app we don't have that event happened and that window is closed. So we can't predict do we need to update or open the window in that case.

Steps to reproduce

/

React Native Version

0.73.5

Affected Platforms

Runtime - Android, Runtime - iOS

Output of npx react-native info

/

Stacktrace or Logs

/

Reproducer

/

Screenshots and Videos

No response

okwasniewski commented 3 months ago

Hey, thanks for opening the issue.

It's a valid feature request to add an event listener on a given window to know when its state changes. Let's keep this issue open until it gets implemented