GT2/Ejectable/node_modules/@react-navigation/bottom-tabs/lib/commonjs/utils/useBottomTabBarHeight.js.map

1 line
832 B
Plaintext
Raw Normal View History

2021-08-16 00:14:59 +00:00
{"version":3,"sources":["useBottomTabBarHeight.tsx"],"names":["useFloatingBottomTabBarHeight","height","React","useContext","BottomTabBarHeightContext","undefined","Error"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;AAEe,SAASA,6BAAT,GAAyC;AACtD,QAAMC,MAAM,GAAGC,KAAK,CAACC,UAAN,CAAiBC,kCAAjB,CAAf;;AAEA,MAAIH,MAAM,KAAKI,SAAf,EAA0B;AACxB,UAAM,IAAIC,KAAJ,CACJ,2FADI,CAAN;AAGD;;AAED,SAAOL,MAAP;AACD","sourcesContent":["import * as React from 'react';\nimport BottomTabBarHeightContext from './BottomTabBarHeightContext';\n\nexport default function useFloatingBottomTabBarHeight() {\n const height = React.useContext(BottomTabBarHeightContext);\n\n if (height === undefined) {\n throw new Error(\n \"Couldn't find the bottom tab bar height. Are you inside a screen in Bottom Tab Navigator?\"\n );\n }\n\n return height;\n}\n"]}