Added note on Bare runtime + cross platform app example (#62)

* Added Bare ref, expanded examples

* Added cross platform mobile app

* Improved Bare

* mc

* mc

* mc
This commit is contained in:
Subash SN
2024-02-21 14:16:19 +01:00
committed by GitHub
parent 0858941ae1
commit 742a10090e
3 changed files with 15 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ References for utilizing the Pear runtime.
* [Application-Programming-Interface (API)](./reference/api.md) * [Application-Programming-Interface (API)](./reference/api.md)
* [Application Configuration](./reference/configuration.md) * [Application Configuration](./reference/configuration.md)
> The Pear runtime uses [Bare](https://github.com/holepunchto/bare) JavaScript runtime, which is a small and modular JavaScript runtime for desktop and mobile.
### Guides ### Guides
Guides on using the pear runtime to build and share P2P applications. Guides on using the pear runtime to build and share P2P applications.
@@ -84,9 +86,9 @@ Applications built using Pear.
### Examples ### Examples
Collection of example applications that can be used as reference during development. Collection of example applications that can be used as reference during development.
- [Cross-platform Pear App](./examples/cross-platform-pear-app.md): Cross-platform "Hello World" Pear application for Android and iOS.
- [Bare on Mobile](./examples/bare-on-mobile.md) - [Bare on Mobile](./examples/bare-on-mobile.md): Reference applications for using Bare runtime on Android and iOS.
- [React App using Pear](./examples/react-app-using-pear.md) - [React App using Pear](./examples/react-app-using-pear.md): Example application for building Pear applications using React framework.
## Stability indexing ## Stability indexing

View File

@@ -60,5 +60,6 @@
### Examples ### Examples
* [Cross-platform Pear App](examples/cross-platform-pear-app.md)
* [Bare on Mobile](examples/bare-on-mobile.md) * [Bare on Mobile](examples/bare-on-mobile.md)
* [React App using Pear](examples/react-app-using-pear.md) * [React App using Pear](examples/react-app-using-pear.md)

View File

@@ -0,0 +1,9 @@
# Cross-platform Pear App
A "Hello World" example of a cross-platform Pear application for Android and iOS using [Bare](https://github.com/holepunchto/bare) and [Expo SDK](https://expo.dev/).
- [Pear Expo Hello World](https://github.com/holepunchto/pear-expo-hello-world)
> This above example is still a work in progress, please expect further improvements.
Note that on mobile, the React Native UI runs on one thread and the Bare local backend runs on another thread and they both communicate via an IPC API.