Building a chat app with Socket.io and React Native
Creates a sign in screen where you can enter your name, create groups where people can join and show real-time messages between the people in the group. The message function contains subject and text parts.
- React Native Expo 🧩
- Node.js library - Socket.io 🧩
- Clone this project to your local machine
git clone https://github.com/SabaUrgup/Chat-App
- Installing the project dependencies
Run the command below
cd app
yarn install
cd server
npm install
- Start your node server
run the command below
npm start
- Start the application
run the command below
npx expo start
- Start your local connection
The connection of the server and the mobile application is a local connection. For this reason, you should write the ip address of the computer on which the backend is running, in the SOCKET_URL part of the config.js file under the app folder.
For the library and commands, the relevant medium article given in the assignment was referenced.