title: importing Network module for clearCookies
body: <p>I was needing to <code>clearCookies</code> and found a hidden/undocumented function - <a href="https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/RCTNetworking.android.js" rel="noreferrer">https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/RCTNetworking.android.js</a></p>
  
  <p>I am able to access it like this:</p>
  
  <pre><code>import RCTNetworking from 'RCTNetworking'
  console.log('RCTNetworking:', RCTNetworking.clearCookies);
  </code></pre>
  
  <p>It works, but is it correct? Will <code>import RCTNetworking from 'RCTNetworking'</code> work guranteed?</p>
  
  <p>I thought it would be more safe to import from <code>NativeModules</code> like this:</p>
  
  <pre><code>import { NativeModules } from 'react-native'
  console.log('Networking:', NativeModules.Networking.clearCookies);
  </code></pre>
  
  <p>However this imports the whole <code>NativeModules</code> which has a bunch of other stuff. Wouldn't this be bad? Or does tree shakingng in production remove all the stuff I don't use from <code>NativeModules</code>?</p>
  
  <p>Is there another way to access <code>clearCookies</code>? Is this documented anywhere?</p>