mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45577 # Changelog: [Internal] This diff adds new native module, which can be used from JavaScript. The API includes: 1. `hasActiveSession`: returns a boolean flag, which can be used for determining if 1 or more debugging sessions are active for current HostTarget. 2. `subscribe`: receives a callback, which will be executed once the debugging state changes. To be more precise, this will only be called when state is changing from no active sessions to 1 session or the other way around. Callback should expect to receive one boolean argument, which can be used for determining if there is an active session. Reviewed By: huntie Differential Revision: D59975264 fbshipit-source-id: dd095954529f573f38e9fae1792465a59e639d23