Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native detect production

if (__DEV__) {
    console.log('Development');
} else {
    console.log('Production');
}
 
PREVIOUS NEXT
Tagged: #react #native #detect #production
ADD COMMENT
Topic
Name
9+6 =