Sunday, July 16, 2017

Master Your Apple Mac - 10 Top Essential Tips and Tricks - Udemy

https://www.udemy.com/10-top-yosemite-tips-and-tricks

1. Screenshots

Cmd+Shift+3 - Take Screenshot
Cmd+Shift+4 - Take Screenshot of selected portion
Cmd+Shift+4 then Space - Take Screenshot of application

2. Hot Corners - Mission Control

3. Batch Renaming

4. LaunchPad

5. Airdrop

Cmd + Shift + R

6. Trackpad Gestures

7. Mail Markup

8. Full Web Address - Safari

9. Screensaver Password

10. Best Anti-virus - AVG

Wednesday, June 07, 2017

Running React Native Packager and Android Emulator on a Different Port

React Native Packager and the Android Emulator uses port 8081 by default. To use a different port (let's say 8082):

1. Add "--port=8082" to the react-native start command, like this:

react-native start --port=8082

2. With your application open in the Android Emulator (and has an error because it can't read from port 8081), trigger the developer menu using the following on the command line:

adb shell input keyevent 82 

3. Navigate to Dev Settings > Debug server host & port for device, and enter your host and port, use this Stackoverflow comment as guide: https://stackoverflow.com/questions/37900078/react-native-could-not-connect-to-development-server/38117960#38117960