UNPKG

react-native-counter-input

Version:

Counter Input with fully customizable options 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;