Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zhangwei900808/myreactnativeproject

expo react native react navigation element
https://github.com/zhangwei900808/myreactnativeproject

Last synced: about 1 month ago
JSON representation

expo react native react navigation element

Awesome Lists containing this project

README

        

# [TypeScript Example](https://www.typescriptlang.org/)



Supports Expo iOS

Supports Expo Android

Supports Expo Web

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 typescript`
- Rename files tpo TypeScript, `.tsx` for React components and `.ts` for plain typescript files

## 📝 Notes

- [Expo TypeScript guide](https://docs.expo.io/versions/latest/guides/typescript/)