React Native's bridge is great for most UI logic, but every crossing adds serialization overhead. JavaScript Interface (JSI) and TurboModules let you expose native functionality directly to JavaScript, eliminating the bridge for high‑frequency calls such as cryptography, image processing, or sensor polling. Use them when you need sub‑millisecond latency or when a pure‑JS solution would drain battery.
// MyTurboModule.ts
import { TurboModule, TurboModuleRegistry } from 'react-native';
export interface Spec extends TurboModule {
getDeviceId(): Promise<string>;
}