UNPKG

1.19 kBSource Map (JSON)View Raw
1{"version":3,"sources":["constants.tsx"],"names":["NativeModules","Platform","estimatedStatusBarHeight","NativeUnimoduleProxy","modulesConstants","ExponentConstants","statusBarHeight","APPROX_STATUSBAR_HEIGHT","select","android","ios","Version"],"mappings":";;AAAA,SAASA,aAAT,EAAwBC,QAAxB,QAAwC,cAAxC,C,CAEA;AACA;AACA;;AACA,MAAMC,wBAAwB,sDAC5BF,aAAa,CAACG,oBADc,qFAC5B,uBAAoCC,gBADR,qFAC5B,uBAAsDC,iBAD1B,2DAC5B,uBACIC,eAFwB,yEAEL,CAFzB;AAIA,OAAO,MAAMC,uBAAuB,GAAGN,QAAQ,CAACO,MAAT,CAAgB;AACrDC,EAAAA,OAAO,EAAEP,wBAD4C;AAErDQ,EAAAA,GAAG,EAAET,QAAQ,CAACU,OAAT,GAAmB,EAAnB,GAAwBT,wBAAxB,GAAmD;AAFH,CAAhB,CAAhC","sourcesContent":["import { NativeModules, Platform } from 'react-native';\n\n// Use the existence of expo-constants as a heuristic for determining if the\n// status bar is translucent on Android. This should be replaced in the future\n// with react-native-safe-area-context.\nconst estimatedStatusBarHeight =\n NativeModules.NativeUnimoduleProxy?.modulesConstants?.ExponentConstants\n ?.statusBarHeight ?? 0;\n\nexport const APPROX_STATUSBAR_HEIGHT = Platform.select({\n android: estimatedStatusBarHeight,\n ios: Platform.Version < 11 ? estimatedStatusBarHeight : 0,\n});\n"]}
\No newline at end of file