This basic messaging app has an intentionally unopinionated UI to help make it easier for you to build with.
Follow the React Native guide to set up a CLI environment.
yarn
cd example
yarn
npx pod-install
yarn run [ios or android]
yarn run upload:up
If running on andoid also run:
adb reverse tcp:8443 tcp:8443
To clean up after testing you can run:
yarn run upload:down
Note - The connect wallet button will still work without adding a client id, you just may see some extra network errors when viewing account info in the Thirdweb button after connecting.
First create a free account and download your client id from https://thirdweb.com/dashboard/settings/api-keys. Next create your .env file in the example directory
cd example
cp EXAMPLE.env .env
Finally, insert your Thirdweb client id in specified location of example/.env
file:
THIRD_WEB_CLIENT_ID=INSERT_CLIENT_ID_HERE
If your app doesn't appear to be picking up changes in the .env file, you can try editing the TypeScript file you're reading the env variable from (App.tsx
) or building the app with the --no-build-cache
flag added.
Running tests locally is useful when updating GitHub actions, or locally testing between changes.
-
Start a local XMTP server
git clone https://github.com/xmtp/libxmtp.git cd libxmtp dev/up
-
Verify the XMTP server is running
docker-compose ls NAME STATUS CONFIG FILES libxmtp running(9) <REPO_DIRECTORY>/libxmtp/dev/docker/docker-compose.yml
-
You can now run unit tests on your local emulators
-
You can stop the XMTP server with the following command:
dev/down