Cookies are not working in react native web view for android

<WebView
        incognito={true}
        javaScriptEnabled={true}
        thirdPartyCookiesEnabled={true}
        sharedCookiesEnabled={true}
        
        source={{
          uri: url,
          headers: {
            cookie: cookie
          },
        }}

        onLoadStart={() => {
          props.navigation.setParams({
            title: props.title,
          });
        }}
        onLoadEnd={() => setSpinner(false)}
      />

i tried adding cookie manager library but it does not work. Although same code works fine for iOS but in android it doesn’t detect cookie.

Also, tried on different android version but the problem is persistent.

This issue started after upgrading ReactNative version from 63 to 71.