fabric-library-with-custom-cpp-example icon indicating copy to clipboard operation
fabric-library-with-custom-cpp-example copied to clipboard

Redefinition of the EventEmitters

Open troZee opened this issue 3 years ago • 0 comments

Original issue: https://github.com/troZee/react-native-cpp-autolinking/issues/2

I followed this example with an interfaceOnly component and ended up with a redefinition of EventEmitters error.

The solution that worked for me came from react native screens. They managed to reuse the codegen'ed types without copying them locally. This avoids the redefinition error and is easier to maintain.

I think you should update this repo to use the react native screens solution.

cc @grahammendick

troZee avatar Sep 20 '22 19:09 troZee