create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
12 lines (10 loc) • 398 B
JavaScript
import * as React from 'react';
import StackGestureRefContext from './GestureHandlerRefContext';
export default function useGestureHandlerRef() {
const ref = React.useContext(StackGestureRefContext);
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