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

Revert "feat: implement window manager events (#142)" #147

Closed okwasniewski closed 1 month ago

okwasniewski commented 1 month ago

This API was not useful because you can achieve the same thing with AppState (visionOS doesn't differentiate between focused windows as I thought it does).

It never got released so I'm reverting the implementation.

thymikee commented 1 month ago

How does it correspond to https://github.com/callstack/react-native-visionos/issues/135?

okwasniewski commented 1 month ago

How does it correspond to #135?

We need another solution, ideally something like WindowManager.currentWindows (naming might be different). But we need to detect when windows are closed not only when their state is changed (because the state is the same for every window, we can't have one window in the background and one in the foreground).