MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / pick

Function pick

src/resolution/frameworks/react-native.ts:604–607  ·  view source on GitHub ↗
(list: NativeMethod[])

Source from the content-addressed store, hash-verified

602 // iOS first — the conventional first-class platform for RN library docs
603 // and most graph queries; one edge is recorded either way.
604 const pick = (list: NativeMethod[]): NativeMethod | undefined =>
605 list.find((e) => e.node.language === 'objc') ??
606 list.find((e) => e.node.language === 'swift') ??
607 list[0];
608
609 // Receiver evidence: `NativeModules.Mod.method`, or an alias the project
610 // bound to `NativeModules.Mod`. The module is named, so the match is to

Callers 1

resolveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected