在RN中使用WebView加载美团的领券页面,美团将登陆信息缓存在WebView的cookie中,这就造成当切换账号再次打开美团的链接时显示的还是上个用户的信息,因此要清除cookie
var RCTNetworking = require("RCTNetworking");
RCTNetworking.clearCookies(() => {});
在RN中使用WebView加载美团的领券页面,美团将登陆信息缓存在WebView的cookie中,这就造成当切换账号再次打开美团的链接时显示的还是上个用户的信息,因此要清除cookie
var RCTNetworking = require("RCTNetworking");
RCTNetworking.clearCookies(() => {});