Skip to content

jitenderchand1/RNChatApp

Repository files navigation

RNChatApp

Simple socket based chat application

Getting started

  • Make sure nodejs is installed
  • React Native CLI is needed, do npm install -g react-native-cli
  • clone the repo git clone https://github.com/jitenderchand1/RNChatApp.git
  • move into the project directory cd RNChatApp
  • Run npm install to install the dependencies

We also need to update the codebase with current IP of the system. (you can find out by doing ifconfig).

The IP needs to be updated inside the src/component/input.component.js (line 15)

It needs to be like this let url ='http://{your ip here}:3000';

Running in the simlulator

  • Make sure you have a simulator running, or
  • from your terminal run react-native run-ios

Running on Device

  • Open up XCode, open up th .xcodeproj file from the ios directory
  • Select the device from the run menu and hot the run button

Running the Server for socket communication

  • In a new terminal window, run node server/server.js (this will start up a node server which will communicate with our app)

Note: Currently there is a known issue where while typing with the native device keyboard, the input hides behind the keyboard, This can be bypassed by using the machine's keyboard instead.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published