infinitered / reactotron-react-native

Reactotron's react-native client.
MIT License
110 stars 27 forks source link

Idea: non-HOC storybookSwitcher #1026

Open leonskim opened 2 years ago

leonskim commented 2 years ago

Reactotron.storybookSwitcher() only works by wrapping the entire app. However, there are cases it's not ideal so what I've done is to connect to Reactotron directly by websocket and capture the messages: https://github.com/infinitered/ignite/pull/1839

The problem from above is, toggling Storybook is not bidirectional, so ultimately we'd need to have some sort of a listener and a message sending interface works like storybookSwitcher.