expo-router-redux-template
Version:
An expo template featuring expo-router, reduxjs-toolkit, react-native-reanimated, and redux-persist for cross-platform mobile app development.
9 lines (6 loc) • 318 B
text/typescript
// Import necessary modules and types
import { useDispatch } from 'react-redux';
import { AppDispatch } from '@/store/configureStore';
// Define the useAppDispatch function, which returns a type-safe app dispatch function
const useAppDispatch: () => AppDispatch = useDispatch;
export default useAppDispatch;