react native清除WebView的Cookie缓存方法

在RN中使用WebView加载内部H5页面,将登陆信息缓存在WebView的cookie中,导致另外一个接入移动端登录的地方,登录时拿到H5登录时种的cookie,业务需求是要求不同的人在两端都可登录,因此要清除cookie,
淌坑一天emm…两行代码搞定

var RCTNetworking = require("RCTNetworking");
RCTNetworking.clearCookies(() => {
    
    });

猜你喜欢

转载自blog.csdn.net/khadijiah/article/details/108148318