-
Hello community! I've been using Expo v45, React Native v0.68 and React v17 since May 2022. Today we are planning to upgrade our app to newer versions, it seems the typing has become broken after running the So before I say "This is an issue!", I'd say "Maybe you know this already and you can help me to solve it!". Is there anything I can do to fix it ? I can push an example on GitHub if required. I need help please 😢 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi again! after doing some tries, I've came to a very good solution, I guess. I've removed "compilerOptions": {
"types": [
"react"
], And all typing errors are gone 🎉! I'm still waiting to some people here to listen to their thoughts about this approach or maybe other ones. So I don't consider this discussion closed yet. thanks |
Beta Was this translation helpful? Give feedback.
Hi again! after doing some tries, I've came to a very good solution, I guess. I've removed
@types/react
dependency from my package.json file and used the TS built-in typing module for react apps.And all typing errors are gone 🎉!
I'm still waiting to some people here to listen to their thoughts about this approach or maybe other ones. So I don't consider this discussion closed yet.
thanks