https://github.com/asteriskzuo/test-expo-demo-0617
https://github.com/asteriskzuo/test-expo-demo-0617
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/asteriskzuo/test-expo-demo-0617
- Owner: AsteriskZuo
- Created: 2024-06-17T11:57:44.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-09-11T10:00:21.000Z (9 months ago)
- Last Synced: 2025-04-14T19:17:26.907Z (about 2 months ago)
- Language: Kotlin
- Size: 391 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript Example
![]()
![]()
![]()
```sh
npx create-expo --example 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
- Create a project: `npx create-expo --example with-typescript`
- `cd` into the project### Adding TypeScript to existing projects
- Create a blank TypeScript config: `touch tsconfig.json`
- Run `yarn start` or `npm run start` to automatically configure TypeScript
- Rename files to TypeScript, `.tsx` for React components and `.ts` for plain typescript files> 💡 You can disable the TypeScript setup in Expo CLI with the environment variable `EXPO_NO_TYPESCRIPT_SETUP=1 expo start`
## 📝 Notes
- [Expo TypeScript guide](https://docs.expo.dev/versions/latest/guides/typescript/)