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.expoand.expo-shareddirectories contain configuration files for Expo.assetsdirectory is used for storing images, fonts, and other static assets.srcdirectory contains the main source code of the application.containersdirectory stores container components which encapsulate an entire page component.componentsdirectory stores reusable UI components.hooksdirectory contains reusable logic.navigatorsdirectory stores imports all screens and implements navigation.screensdirectory contains the application's screens.servicescontains api class which is responsible for calling the external coin cap apistoredirectory contains Redux Toolkit-related files, including actions, reducers, and the store configuration.utilsdirectory holds utility functions and helper classes.App.tsxis the entry point of the application.package.jsoncontains the project's dependencies and scripts.tsconfig.jsonis the TypeScript configuration file.
- Define your screens in the
screensdirectory. - Create reusable components in the
componentsdirectory. - Page/Screen components in the
containerdirectory. - Add Redux actions in the
store/coins/actionsdirectory. - Reusable component logic in the
hooksdirectory. - Implement the corresponding reducers in the
store/coins/reducersdirectory. - Use the Redux Toolkit store located in
store/index.tsto manage application state. - Utilize the
utilsdirectory for any utility functions or helper classes. - Modify the
App.tsxfile to define your app's navigation and layout.
