@crossed/sheet
Version:
A Cross Platform(Android & iOS) ActionSheet with a robust and flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.
19 lines (18 loc) • 591 B
JavaScript
import { createContext, createRef, useContext } from "react";
import { actionSheetEventManager } from "./eventmanager";
const PanGestureRefContext = createContext({
ref: createRef(),
eventManager: actionSheetEventManager
});
const usePanGestureContext = () => useContext(PanGestureRefContext);
const DraggableNodesContext = createContext({
nodes: createRef()
});
const useDraggableNodesContext = () => useContext(DraggableNodesContext);
export {
DraggableNodesContext,
PanGestureRefContext,
useDraggableNodesContext,
usePanGestureContext
};
//# sourceMappingURL=context.js.map