React Native published an example repo that shows how to autolink libraries that contain interfaceOnly components. But the approach doesn't work when the library also has a TurboModule. This repository contains an example app built from npx react-native init
. The only thing I've added is a dependency to my navigation-react-native
library. My library has interfaceOnly
components and a TurboModule.
- cd to the
example
app - Run
npm install
- Run
npx react-native run-android
- See the TurboModule error
error: cannot find symbol public class Material3Module extends NativeMaterial3ModuleSpec {