Skip to content

Dev tools showing in production #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
stevelw opened this issue Apr 19, 2025 · 1 comment
Open

Dev tools showing in production #26

stevelw opened this issue Apr 19, 2025 · 1 comment

Comments

@stevelw
Copy link

stevelw commented Apr 19, 2025

I was expecting behaviour to be same as the official dev tools, but the tools are not being automatically excluded from production builds.

@LovesWorking
Copy link
Owner

My external dev tools handle this here: https://github.com/LovesWorking/rn-better-dev-tools

You could also add an ENV check or set up your own logic to avoid importing it in prod. I’ll add this when I get the chance, but it might be a while I don’t work on this one as much since the external version works really well for me. If you or someone else wants to open a PR, that’d be awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants