how to solve Type annotations can only be used in TypeScript

preview_player
Показать описание
This video is a solution for a problem caused in react native and react TypeScript. This problem generally occurs while creating react-native for the first time.
1. The first solution is to remove the TypeScript code from the .js file
2. Disable JavaScript validation
Рекомендации по теме