DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to trace React Native calls into native Swift, Kotlin or Objective-C with BGTS Context Engine

Find the native method behind a NativeModules call in a React Native or Expo app.

Short answer: docker compose -f deploy/docker-compose.yml up -d; then pip install bgts-context-engine; bce migrate. All steps.

Who it is forA developer on a React Native or Expo app who needs to find the native implementation behind a TypeScript call.

The problemNo single parser can see a call that crosses from TypeScript into Objective-C, Swift or Kotlin, so the native side is easy to miss.

The outcomeThe context answer links the NativeModules call in TypeScript to the native method it reaches.

What you need first

  • Docker with Docker Compose, to run PostgreSQL 16 with Apache AGE and pgvector
  • Python with pip
  • A local repository to index
  • A coding agent that can call MCP tools, or the bce command line

Steps

  1. docker compose -f deploy/docker-compose.yml up -d
  2. pip install bgts-context-engine
  3. bce migrate
  4. bce index --repo /path/to/your/react-native-app --name my-app (inferred, check the README)
  5. bce context --task "where does NativeModules.Foo.bar() end up on the native side" (inferred, check the README)

Prompt for your agent

Using the bgts-context-engine repository, index the React Native app at <target repo path>, then run bce context with the task <question about a NativeModules call>. Expected output: a ranked answer that includes the native Objective-C, Swift or Kotlin method. Verify that the native method is linked from the TypeScript call site.

Caveat. The README describes these bridges for React Native and Expo only, so other cross-language calls may not be linked.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for bgts-ai-org/bgts-context-engine and "Trace React Native calls into native Swift, Kotlin or Objective-C"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer