title: Access http-only or secure cookies on Android devices React Native
body: <p>I'm current build a RN app with <code>react-native-webview</code> and <code>@react-native-community/cookies</code>.
  Now, i need to access all cookies in webview. With some help of <code>@react-native-community/cookies</code> on ios devices, i can get all of this but on android i only get non-secure/non-httpOnly cookies.</p>
  <p>Android devices is running on API 28.</p>
  <p>Here my code:</p>
  <ol>
  <li>Implement webview</li>
  </ol>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>          &lt;WebView
              ref={webViewRef}
              source={{uri: 'https://example.com'}}
              javaScriptEnabled={true}
              sharedCookiesEnabled={true}
              thirdPartyCookiesEnabled={true}
            /&gt;</code></pre>
  </div>
  </div>
  </p>
  <ol start="2">
  <li>Get cookies</li>
  </ol>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  useEffect(() =&gt; {
      let getCookies = () =&gt;
        CookieManager.getAll(useWebKit).then((cookies) =&gt; {
          console.log('CookieManager.get =&gt;', cookies);
        });
  
      if (Platform.OS === 'android') {
        getCookies = () =&gt;
          CookieManager.get('https://linkedin.com').then((cookies) =&gt; {
            console.log('CookieManager.get =&gt;', cookies);
          });
      }
  
      getCookies();
    }, [url]);</code></pre>
  </div>
  </div>
  </p>
  <p>Thanks.</p>