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

Function native

__tests__/sync-memo-lifetime.test.ts:236–243  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

234
235 it('Expo: a value is bound to another native module', async () => {
236 const native = (name: string): string => `import ExpoModulesCore
237public class ${name}Module: Module {
238 public func definition() -> ModuleDefinition {
239 Name("${name}")
240 AsyncFunction("ping") { in /* … */ }
241 }
242}
243`;
244 const caller = (module: string): string => `import { requireNativeModule } from 'expo-modules-core';
245const Native = requireNativeModule('${module}');
246export async function go() {

Calls

no outgoing calls

Tested by

no test coverage detected