react native- JavaScript is everywhere

Being a JavaScript developer, making mobile apps was just a WebView with our site running.
But now, we have react native which takes a but different approach and makes the application feel like a truly native application. It's having components to make android and iOS like UI.

And the code actually resembles the react code.
That means that you can make native apps with a little knowledge of react native.

install

npm install -g create-react-native-app
# OR
yarn add -g create-react-native-app

initialize

create-react-native-app myReactiveApp

This will install and configure react-native in a directory.

the cli!

the cli comes pretty handy in react-native. Install it with:

npm install -g react-native-cli
# OR
yarn add -g react-native-cli

using the cli

use yarn run to see available commands for your project:

yarn run

basics

React-native is really easy if you know some react
You can quickly learn the basics here if you have a good knowledge of react.

why react native ?

  • open source
  • free
  • great community
  • easy to learn ( if you know react a lill )
  • lots of components!

any alternative ?

Yes!, See my next article for intro to android.js which ships your nodejs application to and Android app!

wrapping up

Always bet on JavaScript.

originally published here at my blog

Make sure you're subscribed to the high dose javascript newsletter

of course I can't make you, but it take me a considerable amount of time to write these..

tweet this if you like it.
thanks!

23