Starter template to build an onchain react native app with thirdweb and expo.
Install the template using thirdweb create
npx thirdweb create app --expo
yarn install
Rename the .env.example
file to .env
and paste in your thirdweb client id.
You can obtain a free client id from the thirdweb dashboard.
[!IMPORTANT]
The thirdweb SDK uses native modules, which means it cannot run on expo GO. You must build the ios and android apps to link the native modules.
npx expo prebuild
This will create the ios
and android
directories.
yarn ios
or
yarn android
To run this app, you'll need either:
If using xcode 16, you may encounter a OpenSSL error when trying to build the app. This is because xcode 16 requires a newer version of OpenSSL than the one specified in the current app.json.
To fix this, change the version of OpenSSL specified in the app.json
file to 3.3.2000
.
app.json
fileios
> extraPods
section"version": "3.3.2000"
for the OpenSSL-Universal
podThen run npx expo prebuild
to update the native modules with the new OpenSSL version and run the app again.
For help or feedback, please visit our support site