https://github.com/unboxed-software/solana-steps-counter
https://github.com/unboxed-software/solana-steps-counter
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unboxed-software/solana-steps-counter
- Owner: Unboxed-Software
- Created: 2023-06-16T05:26:07.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-16T05:49:30.000Z (about 3 years ago)
- Last Synced: 2025-03-23T15:33:48.270Z (about 1 year ago)
- Language: TypeScript
- Size: 241 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Getting Started
## Setting up development environment
If you are using emulator, go through [android development environment](https://reactnative.dev/docs/environment-setup?platform=android&os=windows#target-os-1) and [iOS development environment setup](https://reactnative.dev/docs/environment-setup?platform=ios&os=macos#installing-dependencies) before proceeding.
## Creating new project
Create a new React Native project by running the following command
```shell
npx create-expo-app --template expo-template-blank-typescript
```
### Installing dependencies
Navigate to your project directory and install the necessary dependencies
```shell
npm install @solana-mobile/mobile-wallet-adapter-protocol @solana-mobile/mobile-wallet-adapter-protocol-web3js @solana/wallet-adapter-react @solana/web3.js @project-serum/anchor expo-sensors js-base64 assert buffer metro-core react-native-get-random-values uuid
```
## Verify Installation
Before we can run our app on devices, here are a couple of necessary steps:
> App.tsx
import 'react-native-get-random-values'
import { v4 as uuidv4 } from 'uuid'
...other imports
global.Buffer = require('buffer').Buffer
LogBox.ignoreAllLogs()
export default function App()...
> For the solana mobile wallet adapter to work with expo, we need to run the app using eas build. Follow this [link](https://docs.expo.dev/build/setup/) for the eas cli setup and checkout this [repo](https://github.com/solana-mobile/expo-react-native-mwa-proof-of-concept.git) for more info.
> Follow this [link](https://docs.expo.dev/build/setup/#run-a-build) to see how to run a eas build on devices.