Simple socket based chat application
- 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 doingifconfig
).
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';
- Make sure you have a simulator running, or
- from your terminal run
react-native run-ios
- Open up
XCode
, open up th.xcodeproj
file from theios
directory - Select the device from the run menu and hot the
run
button
- 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.