Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
23 lines
914 B
TypeScript
23 lines
914 B
TypeScript
// Module ID: 1613
|
|
// Function ID: 1614
|
|
// Name: useSafeAreaInsets
|
|
// Dependencies: [1482, 1614, 2]
|
|
// Exports: default, getSafeAreaInsets
|
|
|
|
// Module 1613 (useSafeAreaInsets)
|
|
import AppEntryKeyContext from "AppEntryKeyContext" /* 1482 */;
|
|
import SafeAreaStoreDefault from "SafeAreaStore" /* 1614 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/safe_area/useSafeAreaInsets.native.tsx");
|
|
|
|
export default function useSafeAreaInsets() {
|
|
closure_0 = AppEntryKeyContext.useAppEntryKey();
|
|
return SafeAreaStoreDefault((arg0) => arg0.byAppEntry[closure_0].safeAreaInsets);
|
|
};
|
|
export const getSafeAreaInsets = function getSafeAreaInsets(DEFAULT_APP_ENTRY_KEY) {
|
|
if (DEFAULT_APP_ENTRY_KEY === undefined) {
|
|
DEFAULT_APP_ENTRY_KEY = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY;
|
|
}
|
|
return SafeAreaStoreDefault.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY].safeAreaInsets;
|
|
};
|