react-native-gifted-chat
Version:
The most complete chat UI for React Native
9 lines • 472 B
TypeScript
import { DependencyList } from 'react';
/**
* A custom useEffect hook that only triggers on updates, not on initial mount
* Idea stolen from: https://stackoverflow.com/a/55075818/1526448
* @param {()=>void} effect the function to call
* @param {DependencyList} dependencies the state(s) that fires the update
*/
export declare function useUpdateLayoutEffect(effect: () => void, dependencies?: DependencyList): void;
//# sourceMappingURL=useUpdateLayoutEffect.d.ts.map