React Native TypeScript Error | Type {} is not assignable to ReactNode FIX

preview_player
Показать описание
In this video extract we fix the react native typescript error: Type {} is not assignable to ReactNode.

🟡 Publish Expo React Native App to Play Store

FOLLOW US:

📑 CHAPTERS

00:00 Why this happens
00:17 Temporary Solution
00:33 Better Solution
#tothepointcode #typescript #reactnative
Рекомендации по теме
Комментарии
Автор

i'm using react 18 but still getting the error, wrapping in fragment did solve it though, but as you said it's not clean to do that

solaaar
Автор

thank you very much bro for the solution

yaserkapo
Автор

worked first variant
thanks you a lot

knuckless__
Автор

Hmm, I have no idea why mine says to fix dependency issues for typescript after running the android emulator again. It would not proceed without me accepting dependency fix and this reverts the version back to 17.

joyayitey