This repository contains a React Native Expo project built with TypeScript, Redux Toolkit. It serves as a starting point for developing mobile applications with real-time communication capabilities using WebSockets.
Before getting started, ensure that you have the following software installed:
- Node.js (version 14 or later)
- npm (Node Package Manager)
- Clone this repository to your local machine:
git clone https://github.com/illegalcall/crypto-price-ticker.git
- Navigate to the project's root directory:
cd crypto-price-ticker
- Install the dependencies using npm:
npm install
- Start the development server:
npm start
- Expo DevTools will open in a browser. You can either use the provided QR code to open the app in the Expo Go app on your mobile device or run the app in an emulator/simulator.
├── .expo
├── .expo-shared
├── assets
├── src
│ ├── components
│ ├── containers
│ ├── hooks
│ ├── navigators
│ ├── screens
│ ├── services
│ ├── store
│ │ ├── actions
│ │ ├── reducers
│ │ └── store.ts
│ ├── utils
│ └── App.tsx
├── App.tsx
├── package.json
└── tsconfig.json
.expo
and.expo-shared
directories contain configuration files for Expo.assets
directory is used for storing images, fonts, and other static assets.src
directory contains the main source code of the application.containers
directory stores container components which encapsulate an entire page component.components
directory stores reusable UI components.hooks
directory contains reusable logic.navigators
directory stores imports all screens and implements navigation.screens
directory contains the application's screens.services
contains api class which is responsible for calling the external coin cap apistore
directory contains Redux Toolkit-related files, including actions, reducers, and the store configuration.utils
directory holds utility functions and helper classes.App.tsx
is the entry point of the application.package.json
contains the project's dependencies and scripts.tsconfig.json
is the TypeScript configuration file.
- Define your screens in the
screens
directory. - Create reusable components in the
components
directory. - Page/Screen components in the
container
directory. - Add Redux actions in the
store/coins/actions
directory. - Reusable component logic in the
hooks
directory. - Implement the corresponding reducers in the
store/coins/reducers
directory. - Use the Redux Toolkit store located in
store/index.ts
to manage application state. - Utilize the
utils
directory for any utility functions or helper classes. - Modify the
App.tsx
file to define your app's navigation and layout.