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.js
while also using the polyfills provided by the 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
.
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.
This project is using tailwind-rn
for the styles. The documentation can be access here.