Created
December 27, 2017 14:45
-
-
Save ridingwolf/f8cd885c31bdef4a9be29ae8f27461a9 to your computer and use it in GitHub Desktop.
React native helpers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function shake -d "shake connected mobile device" | |
| # android, add ios at some point if possible | |
| for deviceInfo in (adb devices -l) | |
| set device (string split " " $deviceInfo)[1] | |
| if [ $device ]; and not string match -a -i -q "list" $device | |
| echo "shaking: $deviceInfo" | |
| adb -s $device shell input keyevent 82 | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment