Skip to content

elizaOS/mobile

 
 

Repository files navigation

Privy Expo Starter

This demonstrates a minimal working installation of the privy sdk in a fresh expo app. We recommend reading the documentation for a more detailed guide.

Setup

  1. Install dependencies

    yarn
  2. Configure an app client in your Dashboard, and add your Privy app ID and app client ID in app.json

    ...
     "extra": {
       "privyAppId": "<your-app-id>",
       "privyClientId": "<your-client-id>"
     }
    ...

    If you are using Expo go, be sure to add host.exp.Exponent to Allowed app identifiers under app clients in your Dashboard

  3. Configure your application identifier in app.json. This should match the bundle identifier for your app in the app store.

    ...
     "ios": {
       "bundleIdentifier": "com.example.myapp"
     },
     "android": {
       "package": "com.example.myapp"
     }
    ...
  4. If you are making use of passkeys, ensure that you have an associated website for your application. Once you have this your app.json should be updated as follows:

    ...
    "associatedDomains": ["webcredentials:<your-associated-domain>"],
    ...
    "extra": {
       ...
       "passkeyAssociatedDomain": "https://<your-associated-domain>"
     },
    ...

Run the app

# expo go
yarn run start

# ios
yarn run ios

# android
yarn run android

About

ElizaOS Cloud app with privy react native starter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 90.8%
  • JavaScript 9.2%