rn-theming
rn-theming copied to clipboard
TypeScript Example
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 cdinto the project
Adding TypeScript to existing projects
- Copy the
tsconfig.jsonfrom this repo, or new typescript template - Add typescript dependencies:
yarn add --dev @types/react @types/react-native typescript - Rename files tpo TypeScript,
.tsxfor React components and.tsfor plain typescript files