Skip to content

Codegen and different component props between iOS and Android #76

Answered by cortinico
gispada asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your investigation @gispada
This is currently not easily doable out of the box. The current solution is either to:

  • Have a spec which is a superset of the capabilities of the two platforms, and stub the implementation for platform specific APIs
  • Use excludedPlatforms: ['...'] as you suggest. You'll be effectively not generating spec for one of the two platform.
  • Use the module filename suffixes as you suggest. This is however not documented and we're probably going to revist this.

Ideally, the codegen should be able to handle .android.js and .ios.js file extensions.

One thing that's not entirely clear is why C++ files in android/build/generated/source/codegen/jni/react/renderer…

Replies: 2 comments

Comment options

gispada
Sep 18, 2022
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cortinico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants