MCPcopy Create free account
hub / github.com/AppAndFlow/react-native-safe-area-context / getInset

Function getInset

src/NativeSafeAreaProvider.web.tsx:103–105  ·  view source on GitHub ↗
(side: string)

Source from the content-addressed store, hash-verified

101}
102
103function getInset(side: string): string {
104 return `${getSupportedEnv()}(safe-area-inset-${side})`;
105}
106
107function createContextElement(): HTMLElement {
108 const element = document.createElement('div');

Callers 1

createContextElementFunction · 0.85

Calls 1

getSupportedEnvFunction · 0.85

Tested by

no test coverage detected