Brownfield Navigation
@callstack/brownfield-navigation lets React Native code call into your host app navigation.
You define a TypeScript contract once, generate native bridge files, and implement that contract in Android/iOS delegates.
How It Works
- You create a
brownfield.navigation.tsspec in your React Native app. - You run
brownfield-navigation-codegento generate native bridge/delegate files. - Native host code implements
BrownfieldNavigationDelegate. - You register the delegate at startup.
- JavaScript calls
BrownfieldNavigation.<method>().
Guides
Example Projects
Use these apps as end-to-end references:
apps/RNAppfor the spec file and JavaScript callsapps/AndroidAppfor Android delegate implementationapps/AppleAppfor iOS delegate implementation
