Skip to content

Latest commit

History

History
43 lines (32 loc) 路 1.67 KB

File metadata and controls

43 lines (32 loc) 路 1.67 KB

Supports Expo iOS Supports Expo Android Supports Expo Web

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

  • Create a blank TypeScript config: touch tsconfig.json

  • Run expo start to automatically configure TypeScript

  • Rename files to TypeScript, .tsx for React components and .ts for plain typescript files

  • Expo TypeScript guide

馃摑 TODO

  • Login and Register Screens
  • Redux
  • Posts and Profile Screens
  • Logout
  • Fetch an Make Posts
  • Admin perspective > assign admin role to a user, set status...
  • Add the comment count on the post
  • Fix the input box for adding a comment