Skip to content

Commit

Permalink
Updated example/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Jan 18, 2024
1 parent 5abd653 commit 4fbdb8e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This basic messaging app has an intentionally unopinionated UI to help make it e
## Run the example app
Follow the [React Native guide](https://reactnative.dev/docs/environment-setup) to set up a CLI environment.

To use the example app, run:
### To use the example app, run:

```bash
yarn
Expand All @@ -15,6 +15,24 @@ npx pod-install
yarn run [ios or android]
```

### Configure ThirdWeb Client API

> 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 yout 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.


## Run example app unit tests on local emulators
Running tests locally is useful when updating GitHub actions, or locally testing between changes.

Expand Down

0 comments on commit 4fbdb8e

Please sign in to comment.