How could I add typescript support ?
I would like to add typescript support but I don't really understand how crnwa works.
Could you explain to me in details what happens when I run npx crnwa myapp ?
I would love to add support myself, just not sure how people use react native web with typescript support
Please check out Ben Awad's tutorial
@johannb75 thanks for the resource.
I'm doing a bit of digging to figure out the current convention as the video tutorial a bit outdated and @types/react-native doesn't exactly fit the same types as RNW
for some reference of what I'm looking at: https://github.com/necolas/react-native-web/issues/1684 https://github.com/necolas/react-native-web/issues/832
If you are trying to set up a project today there's a nice template I read good opinions on: https://github.com/ethanneff/react-native-web-typescript
Have you found a way to implement it ? I can help you if you want
I'm sorry to say i didn't. There isn't proper type support for RNW (react native web) ATM from what I understand.
The solution of Ben Awad uses an old RNW version and separated versions as a result. At that time RNW didn't support hooks so you had to do that.
Any other ideas? Would love a start example if you have a solution.. like a code example or even a PR or a react native template that we could use instead of the current template that we use in 'cli.js' file of this repo