UNPKG

react-native-login-screen

Version:

Fully Customizable & Ready to use Login Screen for React Native

6 lines (5 loc) 323 B
import { SetStateAction } from "react"; type Callback<T> = (value?: any) => void; type DispatchWithCallback<T> = (value: any, callback?: Callback<any>) => void; declare function useStateWithCallback<T>(initialState: any | (() => any)): [any, DispatchWithCallback<SetStateAction<any>>]; export default useStateWithCallback;