skip to Main Content

I initially created my project using react-native init but checking on App.tsx there has several error

enter image description here

can you guys tell me why i am having this issue?

the tsconfig.json only use this

{
  "extends": "@tsconfig/react-native/tsconfig.json"
}

do i forget something to setup?

2

Answers


  1. Chosen as BEST ANSWER

    I fixed the issue by adding item into file: Association on vscode settings

    enter image description here


  2. You need to start the project with:
    npx react-native@latest init AwesomeProject

    Look:
    https://reactnative.dev/docs/environment-setup

    From version 0.71 the typescript is already coming by default:
    https://reactnative.dev/blog/2023/01/12/version-071

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search