HI I want to run some code only when It is a production build like sentry
or google analystics
.
I have checked Is there a way to keep debug code out of a release build in React Native? this post but
if(__DEV__) {
this.setState({username: 'Niel', password: 'Test'});
}
__DEV__
gives me undefined variable name.
Is not working.
can someone help me out of it?
Thanks