Skip to content

An Expo template to start building easily a React Native mobile app powered by Orbis.

Notifications You must be signed in to change notification settings

OrbisWeb3/expo-template

Repository files navigation

Template to use Orbis on mobile with Expo and React Native

To start using download this repository and install the required packages with yarn install. To get it to work we had to force some specific versions of Ceramic packages which can be viewed in the resolutions object in package.json as well as modified the babel.config.js and metro.config.jswhile also using the polyfills provided by the Orbis SDK.

Orbis SDK

To get it to work, you will notice that we are initializing the Orbis object with some parameters:

let orbis = new Orbis({
  useLit: false,
  store: AsyncStorage,
  storeAsync: true
});

This is used to avoid using Lit which isn't fully working in this template right now as well as to use an Async storage instead of the browser based localStorage.

Connecting

The connection to the Orbis account is managed with a QR code scanning from app.orbis.club (but this can be replicated on any website) which simply passes the ceramic-session object from localStorage to the mobile app. It's then being read by the isConnected function to automatically connect the user.

Tailwind RN

This project is using tailwind-rn for the styles. The documentation can be access here.

About

An Expo template to start building easily a React Native mobile app powered by Orbis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published