UNPKG

@react-navigation/stack

Version:

Stack navigator component for iOS and Android with animated transitions and gestures

12 lines (11 loc) 414 B
"use strict"; import * as React from 'react'; import { GestureHandlerRefContext } from "./GestureHandlerRefContext.js"; export function useGestureHandlerRef() { const ref = React.useContext(GestureHandlerRefContext); if (ref === undefined) { throw new Error("Couldn't find a ref for gesture handler. Are you inside a screen in Stack?"); } return ref; } //# sourceMappingURL=useGestureHandlerRef.js.map