Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logout = () => {
// Do app clean up stuff here and navigate to logged out screen.
NavigationHelpers.setRoot({ name: publicRoute.example })
}
const onNext = useCallback(() => {
return NavigationHelpers.pushTo(componentId, {
name: publicRoute.example,
})
}, [componentId])