UNPKG

react-native-bouncy-checkbox-group

Version:

Fully customizable bouncy checkbox group 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;