Skip to content

Instantly share code, notes, and snippets.

Alexey Boklin bapjiws

Block or report user

Report or block bapjiws

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bapjiws /
Last active Aug 12, 2018
Remote debugging for Android and iOS

Add alias ios-simulator="open /Applications/" to ~/.bash_profile (in my case ~/.zshrc). Restart the shell or run source ~/.zshrc.

Install iOS Simulator: Xcode > Preferences > Components

Gotcha: iOS Simulator refused to connect to localhost with VPN enabled.

See this article for more detail.

Remote debugging for Android devices via Chrome + chrome://inspect/#devices, also see port forwarding to access locahost from the Android device.

View React antipatterns in our

1. Asynchronous setState. Here's the problem:

// Various async stuff should reside here
componentDidMount() {
    this._timer = setInterval(() => this._fetchCitiesAsync(), 5000);
You can’t perform that action at this time.