Skip to content

Instantly share code, notes, and snippets.

View milankamilya's full-sized avatar
👋
open to work

Milan Kamilya milankamilya

👋
open to work
View GitHub Profile
@milankamilya
milankamilya / moduleDoesntExist.sh
Created August 9, 2018 11:13
Module Doesn't Exists Issue in NPM , React-Native
watchman watch-del-all
rm -rf node_modules && npm install
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-map-react-native-packager-*
react-native link
@milankamilya
milankamilya / buildAndroid.sh
Created August 9, 2018 11:12
Build Android Bundle in React Native
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
cd android && ./gradlew assembleDebug
@milankamilya
milankamilya / buildiOS.sh
Last active August 9, 2018 11:10
Build iOS Bundle for React Native
react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
//SOURCE: https://developers.google.com/maps/documentation/ios-sdk/urlscheme
func startNavigation(dropLocation: CLLocation, startLocation: CLLocation?) {
let dCoordinate = dropLocation.coordinate
let dLatitude = dCoordinate.latitude
let dLogitude = dCoordinate.longitude
let baseURL = "comgooglemaps-x-callback://"
var navigationURL: String?