UNPKG

1.15 kBSource Map (JSON)View Raw
1{"version":3,"sources":["constants.tsx"],"names":["estimatedStatusBarHeight","NativeModules","NativeUnimoduleProxy","modulesConstants","ExponentConstants","statusBarHeight","APPROX_STATUSBAR_HEIGHT","Platform","select","android","ios","Version"],"mappings":";;;;;;;AAAA;;;;AAEA;AACA;AACA;AACA,MAAMA,wBAAwB,sDAC5BC,2BAAcC,oBADc,qFAC5B,uBAAoCC,gBADR,qFAC5B,uBAAsDC,iBAD1B,2DAC5B,uBACIC,eAFwB,yEAEL,CAFzB;;AAIO,MAAMC,uBAAuB,GAAGC,sBAASC,MAAT,CAAgB;AACrDC,EAAAA,OAAO,EAAET,wBAD4C;AAErDU,EAAAA,GAAG,EAAEH,sBAASI,OAAT,GAAmB,EAAnB,GAAwBX,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