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

Function isCoordinate

src/components/Menu/Menu.tsx:128–131  ·  view source on GitHub ↗
(anchor: any)

Source from the content-addressed store, hash-verified

126};
127
128const isCoordinate = (anchor: any): anchor is { x: number; y: number } =>
129 !React.isValidElement(anchor) &&
130 typeof anchor?.x === 'number' &&
131 typeof anchor?.y === 'number';
132
133const isBrowser = () => Platform.OS === 'web' && 'document' in global;
134

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…