https://github.com/gasolin/pear-expo
basic setup for react native web (expo) run in pear desktop
https://github.com/gasolin/pear-expo
Last synced: 2 months ago
JSON representation
basic setup for react native web (expo) run in pear desktop
- Host: GitHub
- URL: https://github.com/gasolin/pear-expo
- Owner: gasolin
- Created: 2024-03-06T09:31:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T15:35:44.000Z (8 months ago)
- Last Synced: 2024-09-18T07:09:47.883Z (8 months ago)
- Language: JavaScript
- Size: 87.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-pears - pear-expo - React Native web (Expo) setup for pear desktop (**Awesome Pears π** / Pears)
- awesome-pears - pear-expo - React Native web (Expo) setup for pear desktop (**Awesome Pears π** / Pears)
README
# Pear-Expo
React Native web (Expo) setup for pear desktop
> [!Note]
> in current stage its not include hypercore related example> [!Note]
> android/ios integration through react-native-bare-kit## structure
- app/ - [expo](https://docs.expo.dev/) folder, host the main code and can export web UI as `dist/` folder for pear use
- pear/ - [pear](https://docs.pears.com/guides/starting-a-pear-desktop-project) folder## Setup
1. `cd app && yarn` (or `cd app && npm install`)
## Run on Android or iOS App π±
(Same as expo)
1. from root, run `cd app && npx expo start`
1. press `a` (Android) or `i` (iOS)----
## Run on Web πΈοΈ
(Same as expo)
1. from root, run `cd app && npx expo start`
1. press `w`> [!Note]
> `worklet` related code might not work in web mode> [!Note]
> Can turn the app as [progressive web app](https://docs.expo.dev/guides/progressive-web-apps/) (PWA) for more advanced usage----
## Run on Pear Desktop App π»
See [pear/README.md](pear/README.md)
## What's next π€οΈ
Can follow [Making a Pear Desktop Application](https://docs.pears.com/guides/making-a-pear-desktop-app) to continue the journey.