UNPKG

rnr-starter

Version:

A comprehensive React Native Expo boilerplate with 50+ modern UI components, dark/light themes, i18n, state management, and production-ready architecture

58 lines (51 loc) 914 B
// Common API response types export interface ApiResponse<T> { data: T; message: string; success: boolean; } export interface ApiError { message: string; code?: string; details?: unknown; } // User types export interface User { id: string; email: string; name: string; avatar?: string; role: 'user' | 'admin'; createdAt: string; lastLoginAt?: string; } export interface AuthCredentials { email: string; password: string; } export interface AuthResponse { user: User; token: string; refreshToken: string; expiresIn: number; } // Demo data types export interface Post { id: string; title: string; content: string; author: string; createdAt: string; likes: number; tags: string[]; } export interface UserProfile { id: string; name: string; email: string; bio?: string; avatar?: string; location?: string; website?: string; joinedAt: string; }