title: Detect iPhone iOS Dark Mode w/ React Native
body: <p>I know this is possible using Swift:</p>
  
  <pre class="lang-swift prettyprint-override"><code>override func touchesBegan(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) {
      if traitCollection.userInterfaceStyle == .light {
          print("Light mode")
      } else {
          print("Dark mode")
      }
  }
  </code></pre>
  
  <p>However, is there a way of doing this with JavaScript ?</p>