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.2 KiB

{"ast":null,"code":"import * as React from 'react';\nimport HeaderHeightContext from \"./HeaderHeightContext\";\nexport default function useHeaderHeight() {\n var height = React.useContext(HeaderHeightContext);\n if (height === undefined) {\n throw new Error(\"Couldn't find the header height. Are you inside a screen in a navigator with a header?\");\n }\n return height;\n}","map":{"version":3,"sources":["useHeaderHeight.tsx"],"names":["React","HeaderHeightContext","useHeaderHeight","height","useContext","undefined","Error"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAOC,mBAAmB;AAE1B,eAAe,SAASC,eAAe,GAAG;EACxC,IAAMC,MAAM,GAAGH,KAAK,CAACI,UAAU,CAACH,mBAAmB,CAAC;EAEpD,IAAIE,MAAM,KAAKE,SAAS,EAAE;IACxB,MAAM,IAAIC,KAAK,CACb,wFAAwF,CACzF;EACH;EAEA,OAAOH,MAAM;AACf","sourceRoot":"../../src","sourcesContent":["import * as React from 'react';\nimport HeaderHeightContext from './HeaderHeightContext';\nexport default function useHeaderHeight() {\n const height = React.useContext(HeaderHeightContext);\n if (height === undefined) {\n throw new Error(\"Couldn't find the header height. Are you inside a screen in a navigator with a header?\");\n }\n return height;\n}\n//# sourceMappingURL=useHeaderHeight.js.map"]},"metadata":{},"sourceType":"module"}