MCPcopy
hub / github.com/callstack/react-native-paper / isBrowser

Function isBrowser

src/components/Menu/Menu.tsx:133–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 typeof anchor?.y === 'number';
132
133const isBrowser = () => Platform.OS === 'web' && 'document' in global;
134
135/**
136 * Menus display a list of choices on temporary elevated surfaces. Their placement varies based on the element that opens them.

Callers 1

MenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…