Open birdofpreyru opened 1 year ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Yes, that is a currently known limitation of codegen. The (very ugly) workaround is to copy-and-paste the types you need in the module definition.
We are currently working on solving this, so it will be hopefully available soon.
cc. @dmytrorykun
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Description
It seems codegen currently chokes on types imported from a different module, i.e. consider this example:
When running the build (for Android on Ubuntu system) the codegen chokes on the method definition saying
UnsupportedGenericParserError: Module NativeReactNativeMyModule: Unrecognized generic type 'MyType' in NativeModule spec.
This equivalent code works fine though:
React Native Version
v0.72.3
Output of
npx react-native info
N/A
Steps to reproduce
N/A
Snack, code example, screenshot, or link to a repository
N/A