UNPKG

react-native-reanimated-carousel

Version:

Simple carousel component.fully implemented using Reanimated 2.Infinitely scrolling, very smooth.

10 lines 297 B
import { useEffect } from "react"; export const useUpdateGestureConfig = (gesture, config) => { const { enabled } = config; useEffect(() => { if (typeof enabled !== "undefined") gesture.enabled(enabled); }, [enabled, gesture]); }; //# sourceMappingURL=useUpdateGestureConfig.js.map