-
I like the idea of the codegen. To use a typescript spec to generate bindings on the native side, and then have type safety through native and ts code, it sounds great.
On android it's better only 3 files: And we need 2 files for the spec:
While I think on expo modules I could do that in a single file per platform. https://docs.expo.dev/modules/module-api/. The only reason I don't use expo-modules is because it requires the app itself to use I also understand that this setup will improve once the migration to new arch is complete, but it will take a while until we can remove old arch files, also with swift C++ interop we can remove some more files. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yup we're aware that asking lib authors to pick between expomodules and turbomodules is not ideal. We summarised our recommendation in the RFC here: |
Beta Was this translation helpful? Give feedback.
Yup we're aware that asking lib authors to pick between expomodules and turbomodules is not ideal.
We summarised our recommendation in the RFC here:
https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0759-react-native-frameworks.md#what-do-we-recommend-to-react-native-library-developers