Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.25 KB

File metadata and controls

67 lines (46 loc) · 1.25 KB

Pera Mobile App

The React Native application for Pera Wallet.

Quick Start

# From apps/mobile directory
pnpm install
# Generate native folders (first time or after clean)
pnpm expo:prebuild
# Start dev server
pnpm start
# Run on device/simulator
pnpm ios      # or: pnpm android

Key Concepts

Business Logic

All business logic lives in packages/*. Import from there, don't implement in the app:

import { useAllAccounts } from '@perawallet/wallet-core-accounts'

Shared Components

Use PW prefix for shared components in src/components/:

import PWButton from '@components/button/PWButton'

Testing

pnpm test                   # All tests
pnpm test -- --watch        # Watch mode

Troubleshooting

Native Project Issues (iOS/Android)

If you're having issues with native code or dependencies:

# Regenerate native folders
pnpm expo:prebuild

# For a completely fresh start
pnpm expo:prebuild:clean

Metro Issues

pnpm start -- --reset-cache

Learn More