Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 600 Bytes

plugin-open-in-editor.md

File metadata and controls

29 lines (19 loc) · 600 Bytes

Open In Editor

Both reactotron-react-native ships with a plugin called openInEditor.

With this enabled, you can now click on the error line of code to have the file open in your editor.

Usage

Wherever you setup your Reactotron in your app, you also add the additional plugin on the import line.

import Reactotron, { openInEditor } from 'reactotron-react-native'

or

import Reactotron, { openInEditor } from 'reactotron-react-js'

Next, add it as a plugin to Reactotron.

Reactotron
  .configure()
  .use(openInEditor()) // <--- here we go!
  .connect()