Skip to content

mantu-bit/React-Native-Tflite-Demo-Blazepose-and-Movenet

Repository files navigation

ExpoTemplate

A modern, customizable React Native template app built with Expo, React Navigation, Redux Toolkit, Unistyles theming, and localization support. This template provides a solid foundation for building cross-platform mobile applications for Android, iOS, and Web.

Features

  • Authentication Flow: Login, logout, and user state management with Redux Toolkit.
  • Navigation: Bottom tab navigation with Home and Profile screens using React Navigation.
  • Custom Theming: Light and dark themes powered by Unistyles.
  • Localization: Built-in support for English and Spanish (i18n-js, expo-localization).
  • Reusable Components: Button, TextField, FullScreenLoader, Toast notifications, and more.
  • API Integration: Axios-based API client with RTK Query for authentication and user endpoints.
  • Persistent State: Redux state persistence using redux-persist and MMKV storage.
  • Custom Fonts: Open Sans font family included and pre-configured.
  • Responsive Design: Breakpoints and scaling utilities for adaptive layouts.
  • Expo EAS Ready: Pre-configured for EAS build and deployment.

Project Structure

reactnativetemplateapp/
  ├── android/           # Native Android project
  ├── ios/               # Native iOS project
  ├── src/
  │   ├── assets/        # Fonts and images
  │   ├── components/    # Reusable UI components
  │   ├── constants/     # App-wide constants
  │   ├── localization/  # i18n setup and translations
  │   ├── navigation/    # Navigation stacks and tabs
  │   ├── redux/         # Redux store, slices, services
  │   ├── screens/       # App screens (Home, Login, Profile)
  │   ├── storage/       # Storage utilities
  │   ├── styles/        # Theming and breakpoints
  │   ├── theme/         # Font and text styles
  │   └── utils/         # Helper functions
  ├── App.js             # App entry point
  ├── app.json           # Expo app config
  ├── package.json       # Project dependencies and scripts
  └── ...

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone <your-repo-url>
    cd reactnativetemplateapp
  2. Install dependencies:
    yarn install
    # or
    npm install
  3. Start the development server:
    yarn start
    # or
    npm run start

Running on Devices

  • Android:
    yarn android
  • iOS:
    yarn ios
  • Web:
    yarn web

Build Scripts

  • yarn build:android:staging / yarn build:android:development / yarn build:android:production
  • yarn build:ios:staging / yarn build:ios:development / yarn build:ios:production

See package.json for all available scripts.

Theming & Customization

  • Uses react-native-unistyles for adaptive theming (light/dark).
  • Edit src/styles/themes.ts to customize colors.
  • Responsive breakpoints in src/styles/breakpoints.ts.

Localization

  • English and Spanish translations in src/localization/translations/.
  • Add more languages by extending the translation files and updating src/localization/i18n.js.

API & State Management

  • API base URL is set via environment variables (EXPO_PUBLIC_BASE_URL).
  • Authentication endpoints: /auth/login, /auth/register, /auth/logout.
  • Redux Toolkit Query for API calls, with persistent state using MMKV.

Custom Components

  • Button: Primary, secondary, and disabled styles, loading state, icons.
  • TextField: Customizable input with optional icons.
  • FullScreenLoader: Modal loading indicator.
  • ToastAlert: Success and error toast notifications.
  • ScreenWrapper: Handles safe area, scroll, and loading overlay.

Fonts

  • Open Sans font family included in src/assets/fonts/ and loaded via src/theme/fonts.js.

Technologies Used

Environment Variables

  • Configure API endpoints in .env.* files (see eas.json for examples):
    • EXPO_PUBLIC_BASE_URL
    • EXPO_PUBLIC_SOCKET_URL

EAS Build

License

This project is provided as a template and does not include a license by default. Add your own license as needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published