UNPKG

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.

10 lines (7 loc) 402 B
// Import necessary modules and types import { useSelector } from 'react-redux'; import { TypedUseSelectorHook } from 'react-redux/es/types'; import { RootState } from '@/store/configureStore'; // Define the useAppSelector function, a typed selector hook for accessing the Redux store state const useAppSelector: TypedUseSelectorHook<RootState> = useSelector; export default useAppSelector;