-
| Is there a public API or recommended pattern for checking in platform code is the app is running in dev mode? This is useful for enabling/disabling logging or other debug tooling. If there's one recommended way, it would be nice to get that documented. | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            cortinico
          
      
      
        Aug 30, 2025 
      
    
    Replies: 1 comment
-
| On Android, you can use  That's not really specific to React Native also, any other native app will respect the same behavior | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        lindboe
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
On Android, you can use
if (BuildConfig.DEBUG)to check if you're on Debug. Similarly on iOS, you can check with#ifdef DEBUG.That's not really specific to React Native also, any other native app will respect the same behavior