You can turn development mode on and off in the expo XDE, but how do you detect it in your code so you can switch on debug logging or do something differently for the debug build? Their docs show how to enable it, and see it in the UI, but not how to test for it in code.
Showing the Developer Menu Terminal UI: Press M in the terminal to open the menu on connected iOS and Android. iOS Device: Shake the device a little bit. iOS Simulator: Hit Ctrl + Cmd ⌘ + Z on a Mac in the emulator to simulate the shake gesture, or press Cmd ⌘ + D .
expo-dev-client is designed to support any workflow, release process, or set of dependencies in the Expo/React Native ecosystem.
Expo is a framework to build React Native apps. It is a set with tools and services built for React Native. It will help you begin with building React Native apps with ease. It provides you with a list of tools that simplify the creation and testing of React Native app.
You can check your Node version by running the Node -v command on your terminal. Expo offers a command-line interface called Expo CLI. It is used to test the app while it's being developed either in iOS or Android.
This always works for me. No need to look in the packagerOpts.
if (__DEV__) {
// do dev stuff 🤘
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With