UNPKG

create-nova-expo-template

Version:

A template for creating a new React Native app using Expo and TypeScript, with a focus on performance and best practices.

10 lines (8 loc) 306 B
import AsyncStorage from "@react-native-async-storage/async-storage"; import store from "@/redux"; import { logout } from "@/redux/authReducer"; export default function logoutHandler() { AsyncStorage.removeItem("token"); AsyncStorage.removeItem("refreshToken"); store.dispatch(logout()); }