Not sure if this help, but I recently found a way to manipulate the cookies without ejecting.
But the implementation is quite hacky:
- Create a WebView
- Inject javascript to change document.cookie
- Send message to notify that manipulation was done
The sample code for clearing cookie:
<WebView
source={{ uri: "Your source" }}
onMessage={(e) => {
// Complete handler
}}
injectedJavaScript={`
document.cookie
.split(";")
.forEach(function(c) {
document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";domain=your domain");
});
window.postMessage();
`}
/>