1.1.4 • Published 3 years ago

@react-modules/chat-list v1.1.4

Weekly downloads
161
License
MIT
Repository
github
Last release
3 years ago

TypeScript Example

npx create-react-native-app -t with-typescript

TypeScript is a superset of JavaScript which gives you static types and powerful tooling in Visual Studio Code including autocompletion and useful inline warnings for type errors.

🚀 How to use

Creating a new project

  • Install the CLI: npm i -g expo-cli
  • Create a project: expo init --template expo-template-blank-typescript
  • cd into the project

Adding TypeScript to existing projects

  • Copy the tsconfig.json from this repo, or new typescript template
  • Add typescript dependencies: yarn add --dev @types/react @types/react-native @types/react-dom typescript
  • Rename files to TypeScript, .tsx for React components and .ts for plain typescript files

📝 Notes