You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.3 KiB
1 line
1.3 KiB
{"ast":null,"code":"import * as React from 'react';\nimport StackGestureRefContext from \"./GestureHandlerRefContext\";\nexport default function useGestureHandlerRef() {\n var ref = React.useContext(StackGestureRefContext);\n if (ref === undefined) {\n throw new Error(\"Couldn't find a ref for gesture handler. Are you inside a screen in Stack?\");\n }\n return ref;\n}","map":{"version":3,"sources":["useGestureHandlerRef.tsx"],"names":["React","StackGestureRefContext","useGestureHandlerRef","ref","useContext","undefined","Error"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAOC,sBAAsB;AAE7B,eAAe,SAASC,oBAAoB,GAAG;EAC7C,IAAMC,GAAG,GAAGH,KAAK,CAACI,UAAU,CAACH,sBAAsB,CAAC;EAEpD,IAAIE,GAAG,KAAKE,SAAS,EAAE;IACrB,MAAM,IAAIC,KAAK,CACb,4EAA4E,CAC7E;EACH;EAEA,OAAOH,GAAG;AACZ","sourceRoot":"../../src","sourcesContent":["import * as React from 'react';\nimport StackGestureRefContext from './GestureHandlerRefContext';\nexport default function useGestureHandlerRef() {\n const ref = React.useContext(StackGestureRefContext);\n if (ref === undefined) {\n throw new Error(\"Couldn't find a ref for gesture handler. Are you inside a screen in Stack?\");\n }\n return ref;\n}\n//# sourceMappingURL=useGestureHandlerRef.js.map"]},"metadata":{},"sourceType":"module"} |