This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disabled Reactotron for production builds
- Loading branch information
1 parent
3af2030
commit 928cd68
Showing
3 changed files
with
26 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
import Reactotron from 'reactotron-react-js'; | ||
import { reactotronRedux } from 'reactotron-redux'; | ||
|
||
const reactotron = Reactotron.configure().use(reactotronRedux()); | ||
|
||
let reactotron; | ||
if (process.env.NODE_ENV === 'development') { | ||
reactotron.connect(); // let's connect! | ||
// uncomment the following lines and use the command | ||
// adb reverse tcp:9090 tcp:9090 | ||
reactotron = Reactotron.configure() | ||
.use(reactotronRedux()) | ||
.connect(); // let's connect! | ||
// to make it work with an Android emulator: | ||
// .connect({ | ||
// enabled: true, | ||
// host: '10.1.0.22', // server ip | ||
// port: 9090 | ||
// }); // let's connect! | ||
// adb reverse tcp:9090 tcp:9090 | ||
} | ||
|
||
export default reactotron; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters