Skip to main content

Posts

Showing posts with the label linux

Writing a Hello World Android/iOS Native Application in React Native

Assuming that you have installed the React Native as per instruction given in the post - Installing React Native in Ubuntu Linux / Mac OS Step 1: Open the Terminal Press CTRL+T to open the terminal in Linux or Find Terminal by searching it in Mac Step 2: Create a new react native project $react-native init AwesomeProject This will create a new AwesomeProject Folder and copy all necessary files and folders. This will install all the dependencies for your project. Step 3: Type Hello World String Go inside the AwesomeProject folder you will see index.android.js and index.ios.js. If you are developing for Android edit index.android.js or if you are developing for IOS edit index.ios.js. Now open any of them type hello world by replacing the default text in the following way.       <Text>Hello world!</Text> You whole index file should look like this import React, { Component } from 'react'; import { AppRegistry, Text } from 'react-nativ...

Installing React Native Latest Version in Ubuntu 16.04 LTS

1) Setup Node.JS Start the terminal and run the following commands to install nodeJS: curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - sudo apt-get install nodejs If node command is unavailable sudo ln -s /usr/bin/nodejs /usr/bin/node Alternatives NodeJS instalations: curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs   or curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y nodejs check if you have the current version node -v Run the npm to install the react-native sudo npm install -g react-native-cli 2) Setup Java sudo apt-get install lib32stdc++6 lib32z1 openjdk-7-jdk 3) Setup Android Studio: Android SDK or Android Studio http://developer.android.com/sdk/index.html Android SDK e ENV export ANDROID_HOME=/YOUR/LOCAL/ANDROID/SDK export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools 4) Setup emulator: On the terminal run the command a...

Find, Move, Search, Replace, Copy and Do everything using a single command ncdu in Linux/Unix

It is very efficient to use command line in Linux/Unix for many operations like Copying, Moving, Removing and Searching in Linux. NCDU stands for ncdu (NCurses Disk Usage) Its utility is as follows ncdu <options> <directory>   -h                         This help message   -q                         Quiet mode, refresh interval 2 seconds   -v                         Print version   -x                         Same filesystem   -r       ...