https://github.com/marc-aurele-besner/expo-test
https://github.com/marc-aurele-besner/expo-test
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marc-aurele-besner/expo-test
- Owner: marc-aurele-besner
- Created: 2024-01-13T20:09:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T13:30:06.000Z (over 1 year ago)
- Last Synced: 2025-02-07T09:19:15.068Z (3 months ago)
- Language: TypeScript
- Size: 200 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Expo-Test
This is a simple Expo app test to reproduce and test web3 behavior on React Native.
## How to run
Install dependencies:
```bash
yarn
```Copy the `.env.example` file to `.env` and fill in the values:
```bash
cp .env.example .env
```### Environment variables
| Variable | Description |
| --- | --- |
| `EXPO_PUBLIC_RPC_URL` | RPC URL of the EVM Blockchain |
| `EXPO_PUBLIC_COUNTER_CONTRACT_ADDRESS` | Counter contract address |
| `EXPO_PUBLIC_PRIVATE_KEY` | Signer private key to send transaction |
| `EXPO_PUBLIC_NUMBER_TO_SET` | Number that will be use by the Set Counter button |Run the app:
```bash
yarn ios
```## How to reproduce
Use the Set Counter button to set the counter, you will see the tx hash as soon as the transaction is sent.
Use the Get Counter button to get the counter value, you will see the counter value as soon as the transaction is mined.