This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
2. cd GoogleMapPlayground
| #!/bin/bash | |
| while true | |
| do | |
| wget -q --tries=10 --timeout=20 -O - http://google.com > /dev/null | |
| if [[ $? -eq 0 ]]; then | |
| echo $(date) "1" | tee -a log.csv | |
| else | |
| echo $(date) "0" | tee -a log.csv | |
| fi |
| #!/bin/bash | |
| # GUI-related packages | |
| pkgs=" | |
| xserver-xorg-video-fbdev | |
| xserver-xorg xinit | |
| gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base | |
| gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa | |
| gstreamer1.0-libav | |
| epiphany-browser |
| static boolean isPrime(<T> num) { | |
| if (num == 1 || num == 2 || num == 3 || num == 5 || num == 7) { | |
| return true; | |
| }else if (num % 2 == 0 || num % 5 == 0 || num % 3 == 0) { | |
| return false; | |
| }else{ | |
| return true; | |
| } | |
| } |
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
2. cd GoogleMapPlayground