Posts

Showing posts from December, 2017

React Native – Setup

There are a couple of things you need to install to set up the environment for React Native.We will use OSX as our building platform. Install NodeJS and NPM  on UNIX/Linux/Mac OS X, and SunOS : $ cd /tmp $ wget http://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-x64.tar.gz $ tar xvfz node-v6.3.1-linux-x64.tar.gz $ mkdir -p /usr/local/nodejs $ mv node-v6.3.1-linux-x64/* /usr/local/nodejs Add /usr/local/nodejs/bin to the PATH environment variable. Linux : export PATH=$PATH:/usr/local/nodejs/bin Mac   : export PATH=$PATH:/usr/local/nodejs/bin Step 1 – Install Homebrew Open your terminal and run the following code to install Homebrew − /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Step 2 – Install Watchman Run the following code to install Watchman. brew install watchman Step 3 – Install React Native Now, run the following code to install React Native. npm install -g react-native-cli Step 4.1 An

React Native in Android

React Native lets you build mobile apps using only JavaScript. It uses the same design as React, letting you compose a rich mobile UI from declarative components. With React Native, you don't build a mobile web app, an HTML5 app, or a hybrid app. you build a real mobile app that's indistinguishable from an app built using Objective-C or Java.React Native uses the same fundamental UI building blocks as regular iOS and Android apps. You just put those building blocks together using JavaScript and React. React Native Features React - This is a Framework for building web and mobile apps using JavaScript. Native − You can use native components controlled by JavaScript. Platforms – React Native supports IOS and Android platform. React Native Advantages JavaScript − You can use the existing JavaScript knowledge to build native mobile apps. Code sharing − You can share most of your code on different platforms. Community – The community around React and React Native is