Some Guy
Some Guy

Reputation: 13568

Is __DEV__ defined on production?

I have a React Native app and it's crashing only in production (not local), I think because of __DEV__. Is __DEV__ defined in production?

Upvotes: 3

Views: 2407

Answers (1)

OzBarry
OzBarry

Reputation: 1198

After doing some investigation myself, __DEV__ is set to true when running on an iOS or Android simulator.

Upvotes: 2

Related Questions