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 / gist:f7c6e5aa7b0f73860a41c9b6bc3eeee6
Created April 27, 2018 18:03
Error : 'gradle' is not recognized as an internal or external command, operable program or batch file.
Output :
C:\Users\Rida\start_app\android>./gradlew clean
'.' is not recognized as an internal or external command, operable program or batch file.
Solution :
==========
How to Configure Gradle?
1. Download the zipped file of Gradle from https://services.gradle.org/distributions/gradle-2.8-all.zip.
@RidaRidss
RidaRidss / Java Environment Variable Setup For Window 10
Created April 27, 2018 06:15
Setup It Up : JAVA_HOME Environment Variable Setup For Window 10
1. Advanced System Settings
Type advanced system settings in the search box (beside the Windows start button), clicks View advanced system settings.
2. Environment Variables
Select Advance tab, clicks Environment Variables
3. Add JAVA_HOME
In System variables, add a new JAVA_HOME variable and point it to the JDK installed folder.
Note
@RidaRidss
RidaRidss / BIOS setting in windows.md
Created November 5, 2017 06:02
Error : if you got an error of HAXM , setup your system BIOS setting (window 10)

Restart your PC press F-10 while your ist screen comes up System Configuration > Virtualization Technology > Change > OK System Configuration > Virtualization Technology For Directed > Change > OK Click top back arrow and save changes press Exit Save Changes > OK

Step 1: Node Js :

1. download and install node.js from below link

https://nodejs.org/dist/v8.9.0/node-v8.9.0-x64.msi

note :

Open terminal and follow commands 
  1. npm -g update
@RidaRidss
RidaRidss / iterator_adaptor.hpp file not found xcode.md
Created October 26, 2017 08:02
Got an Error : boost/iterator/iterator_adaptor.hpp file not found
@RidaRidss
RidaRidss / How to add react-native phone number field on android & IOS.md
Created October 26, 2017 07:46
How to add react-native phone number field on android & IOS

Follow Steps

yarn install react-native-text-input-mask
react-native link react-native-text-input-mask

import TextInputMask from 'react-native-text-input-mask';
// For IOS
@RidaRidss
RidaRidss / How to show hidden libraries in your project on MAC.md
Created October 26, 2017 07:31
How to show hidden libraries in your project on MAC
open the directory , where your hidden libraries/files exists , open terminal run the below scripts
$ defaults write com.apple.Finder AppleShowAllFiles true
$ killall Finder
If you want to switch it back just change the true to false.
@RidaRidss
RidaRidss / Solution for Linking SDK with IOS.md
Last active October 26, 2017 07:28
Got an Error : " Linking SDK with IOS " : while Building react-native On IOS
This error means you are missing some library while rebuilding react-native ios , show below link
https://github.com/facebook/react-native/blob/master/.github/ISSUE_TEMPLATE.md
this an reproduction error , check comparasion of your links and your package.json by using below command
react-native link
Remove unwanted library from package.json and unlink it using below command
@RidaRidss
RidaRidss / Solution for No bundle url present. Make sure you’re running a packager server or have included a .jsbundle file in your application bundle.md
Created October 26, 2017 07:09
Got an Error : No bundle url present. Make sure you’re running a packager server or have included a .jsbundle file in your application bundle

Follow these commands

watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf build/ios
yarn cache clean
lsof -i :8081
kill -9 9771
kill $(lsof -t -i:8081)

yarn start --reset-cache

@RidaRidss
RidaRidss / Solution for undefined is not an object evaluating regeneratorRuntime.mark.md
Created October 26, 2017 06:51
Got an Error : undefined is not an object evaluating regeneratorRuntime.mark when building react-native on IOS

1. Be sure you have this dependency (regenerator-runtime) in your package.json

yarn add regenerator-runtime
yarn intsall regenerator-runtime

2. Make sure react-native is upgraded

react-native upgrade

3. All hidden files included in your project are exists