Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusz1913/tauri-and-expo-research
https://github.com/mateusz1913/tauri-and-expo-research
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mateusz1913/tauri-and-expo-research
- Owner: mateusz1913
- Created: 2022-08-02T07:16:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T13:09:13.000Z (over 2 years ago)
- Last Synced: 2023-03-03T22:48:27.255Z (almost 2 years ago)
- Language: Java
- Size: 1.92 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tauri & Expo research
This a monorepo showcasing how to share code between React Native mobile & web app with Tauri desktop app.
## Packages
- `my-expo-app`
This is React Native mobile (and web) app is bootstrapped with `create-expo-app` and native `android` & `ios` folders are generated with `expo prebuild` command.
It has customized metro and webpack configuration to link shared modules with the root project. Webpack configuration has also customization for parsing typescript shared modules with babel.- `my-shared-bl`
This is a package with shared business logic. It contains platform specific modules for sending in-app notifications, getting OS information and fetching data with http client.
- `my-shared-ui`
This is a package with shared UI. It contains shared `` component rendering labels, buttons and a list populated with API data.
- `my-tauri-app`
This is Tauri desktop app created with `npx create-tauri-app`
As well as React Native app, it has customized webpack configuration to link shared modules with the root project and parse typescript shared modules with babel. It also customizes webpack resolver to take `.tauri.[ext]` files, so that we can have different implementations depending on the platform (similar to `.android.[ext], .ios.[ext], .web.[ext]` concept known from React Native).