Determine whether application is in development or production environment


#1

Is there a way to determine whether the Expo app is in dev / prod mode? This would be useful to switch between which API server to communicate with.


#2

Hi, you can check __DEV__.

console.log(__DEV__);

#3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.