Skip to content

The React Native example for linking custom cpp files in RN 70 doesn't work with TurboModules

Notifications You must be signed in to change notification settings

grahammendick/interface-only-and-turbo-module-build-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

interfaceOnly and TurboMoule build on Android

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.

Steps to recreate the problem

  1. cd to the example app
  2. Run npm install
  3. Run npx react-native run-android
  4. See the TurboModule error error: cannot find symbol public class Material3Module extends NativeMaterial3ModuleSpec {

About

The React Native example for linking custom cpp files in RN 70 doesn't work with TurboModules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published