N
Novu2mo ago
AndreMaz

Export TS types in @novu/react-native

Can you export the TS types in @novu/react-native just as you do in @novu/react? Here's what @novu/react-native@3.7.0 exports at the moment
No description
6 Replies
Pawan Jain
Pawan Jain2mo ago
Could you please check if @novu/js is helpful in this case? You will need to install @novu/js with @novu/react-native
AndreMaz
AndreMazOP2mo ago
Yep yep. @novu/js does have the necessary types. Still, would be nice to have the types directly in the @novu/react-native just as we have in @novu/react Or do it the other way around, ie, don't export the types in the @novu/react and "force" the user to use the @novu/js. Essentially, what I'm saying is that the use of types should be consistent in both cases
Pawan Jain
Pawan Jain4w ago
Thanks @AndreMaz I am sharing the feedback with team
AndreMaz
AndreMazOP2w ago
@Pawan Jain tried the v3.8.1 I still need to use types (e.g, Preference) and enums (e.g PreferenceLevel) from @novu/js and when I do it I get the following error in the app and in the terminal
No description
No description
Novu_Bot
Novu_Bot2w ago
@AndreMaz, you just advanced to level 2!
AndreMaz
AndreMazOP2w ago
Ok. Found a GH Issue that mentions the same error: https://github.com/novuhq/novu/issues/8886
GitHub
🐛 Bug Report: Expo: Unable to resolve "@novu/js/internal" from "...
📜 Description Hey, I'm trying to integrate Novu into an Expo application, but receiving this error: Unable to resolve "@novu/js/internal" from "node_modules/@novu/react/dist/cjs/...

Did you find this page helpful?