https://github.com/nitaking/sample-expo-next
https://github.com/nitaking/sample-expo-next
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nitaking/sample-expo-next
- Owner: nitaking
- Created: 2020-07-30T12:55:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T20:01:22.000Z (over 3 years ago)
- Last Synced: 2025-03-11T04:38:00.384Z (about 1 year ago)
- Language: TypeScript
- Size: 3.39 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sample-expo-next
```shell script
$ yarn install
$ yarn next dev
```
## How to create this repo
### Setup
```shell script
# https://docs.expo.io/guides/using-nextjs/
$ npx create-react-native-app -t with-nextjs
$ yarn add --dev typescript @types/react @types/react-native @types/react-dom @types/next
$ tsc init
$ mv App.js App.tsx
$ mv pages/index.js pages/index.tsx
$ mv pages/_document.js pages/_document.tsx
```
### Media Query
```shell script
# https://blog.expo.io/media-queries-with-react-native-for-ios-android-and-web-e0b73ed5777b
$ yarn add @expo/match-media react-responsive @types/react-responsive
```