TurboModule Spec Codegen Naming
A TurboModule spec compiles in TypeScript but Codegen silently skips it — spot why the native binding never generates.
Codetypescript
// NativeCalculator.ts
import type { TurboModule } from 'react-native';
import { TurboModuleRegistry } from 'react-native';
export interface Calculator extends TurboModule {
add(a: number, b: number): number;
getConstants(): { version: string };
}
export default TurboModuleRegistry.getEnforcing<Calculator>('Calculator');This file type-checks fine, but Codegen never produces the native spec and the app crashes with 'module not found'. What is the bug?