Skip to content

Instantly share code, notes, and snippets.

View RidaRidss's full-sized avatar
🎯
Focusing

Rida Sarwar RidaRidss

🎯
Focusing
View GitHub Profile
@RidaRidss
RidaRidss / React Native Build failed Solution On Ubuntu.md
Last active October 7, 2017 10:11
Error : "java.io.IOException: Cannot run program : /home/username/Android/Sdk/build-tools/23.0.1/aapt"

If you got an error throw from VS Code terminal "java.io.IOException: Cannot run program : /home/username/Android/Sdk/build-tools/23.0.1/aapt" while apk installation in your device :

open project's directory cmd and run below command

            sudo apt-get install lib32stdc++6 lib32z1
            
                            OR
                            
            Best way to install build-tools using android studio
@RidaRidss
RidaRidss / HAXM not found error solution on Ubuntu.md
Last active October 7, 2017 09:49
HAXM is not available after installation , try this process :

Change BIOS setting

restart PC and press F10
=> Security => System Security => Virtualization Technology => Enable 
=> Security => System Security => Virtualization Technology Direction => Enable

press F10 for save setting and restart PC

@RidaRidss
RidaRidss / Android_Home path set using terminal on ubuntu.md
Last active October 7, 2017 09:48
Set Android Studio path On Ubuntu

Set Android Home path in system

      First open .bashrc file which is exist in Home folder in your system

        1.  Open Home Folder , press Ctrl+h then .bashrc will be enable in the folder.


                                      OR

By using terminal , Run below command , you will be enable the file

1. Set path for Java Home using terminal

    1. export JAVA_HOME=/usr/lib/jvm/java-8-openjdk

    2. export PATH=$PATH:/usr/lib/jvm/java-8-openjdk/bin



2. check version
@RidaRidss
RidaRidss / Android Studio after installation got an error.md
Last active October 7, 2017 09:46
Error : Unable to run mksdcard SDK tool

Install Yum

        sudo apt-get install yum*

      2.  Run

        sudo yum install compat-libstdc++-296.i686 compat-libstdc++-33.i686 ncurses-libs.i686 compat-libstdc++-33.x86_64
  1. Finish
@RidaRidss
RidaRidss / React Native Commands.md
Last active October 10, 2017 11:09
Use command while working on React Native

Install React Native globally in system

npm install -g react-native-cli

sudo npm install -g create-react-app

Build New Project

react-native init new-app

Redux

it is an state container for ( Javascript app ) "React Native" ,This work flow will be followed where(On which view/screen) we need to retrieve data

Redux Actions

it is based on actions(states) for that particular view's data requirement 

Implementation (states), we will update these states(actions.js) later with our api {actions.js}

function getData() {

return {

Node.js

note :click on below link , install
https://nodejs.org/dist/v6.11.4/node-v6.11.4.pkg    
open terminal and run below commands
cd ~

npm update

@RidaRidss
RidaRidss / Error: "CFBundleIdentifier", Does Not Exist.md
Created October 20, 2017 09:27
Got an error? after run react-native run-ios ? ":CFBundleIdentifier", Does Not Exist
run below command :
react-native upgrade
@RidaRidss
RidaRidss / Solution for Apple Match-O Linker Error.md
Last active October 26, 2017 08:08
Got an Error : Apple Match-O Linker Error when react-native building on iOS