authentication - 注销时重新启动expo应用程序而不弹出
问题描述
当我单击注销功能时,我想重新加载整个 expo 应用程序,并且我想在不弹出应用程序的情况下执行此操作,是否有解决方法?任何帮助,将不胜感激。我研究了 react-native-restart 库,但它需要我弹出我的应用程序。
这些是我当前的代码
logOut() {
Auth.currentAuthenticatedUser({
bypassCache: false
}).
then(
user => user.signOut()
)
.catch(err => console.log(err))
}
解决方案
推荐阅读
- c# - 按下按钮时,Blazor 服务器应用程序中的输入字段未绑定
- wordpress - 在 Wordpress 中使用 iframe 绕过 CSP 规则
- gmail-api - 收到来自 gmail users.watch API 的推送通知后如何阅读用户 gmail?
- angular - 尝试从数组对象读取时无法读取未定义的属性
- flutter - BLE 模块问题:异常:另一次扫描已在进行中
- graylog3 - Graylog 检查时间是否合理
- c++ - 有没有办法在给定的 int32_t 上重用 std::atomic?
- azure-devops - 如何在 Azure 板上查看章鱼部署阶段
- python - django-modeltranslation - Django 模型 get() SQL SELECT 不获取已翻译的字段
- java - android.os.NetworkOnMainThreadException 在新线程内