React Native can be weird sometimes.

You want to debug your RN app locally in a simulator and your bundler is running locally, but you might see this error:

Quick Fix

Here’s the quick fix if you are in a hurry and don’t want to clean things.

Find your ipaddress of your local machine:

$ ipconfig getifaddr en0

Search for `RCTBundleURLProvider.m` file in XCode and modify the following method:

- (NSString *)guessPackagerHost{ //Add this line - replace IP Address with your IP Address

This should unblock you. We’ll talk about how RN handles this in another post.

If you’re investing in foreign equity, you’ll need to file ITR-2 irrespective of your income.

How to activate Schedule FA

Go to Part B- TTI, see section number 19. Once you mark this as Yes , schedule FA will be enabled.

Activate Schedule-FA

How to fill Schedule FA

Assumption: There are no other financial assets outside India except foreign equity.

You can download Java Utility from this page


Instructions on using Java utility

After you download the zip file, extract the file containing the utilities. You’ll see multiple files inside the folder


How to run the JAR file:

If you already have java installed, you’ll most likely see the following error when you…

You might have encountered a use case where you want to hide a view but don’t want to remove it from the view hierarchy.

You can achieve this simply by making the view transparent by toggling opacity .

opacity: 0 //Fully transparent
opacity: 1 //Fully Opaque

But there’s a catch. This transparent or hidden view can still be target of touch events which is not ideal.

Here’s a handy trick to disable all touch events on this transparent view. You can utilize pointerEvents prop of the view to enable/disable touch events.

//Hidden view
.box-hidden {
opacity: 0;
pointer-events: none;
//Visible view
.box-visible {
opacity: 1;
pointer-events: auto;



Install this plugin and you won’t ever have to worry about formatting issues. You might have experienced formatting inconsistencies, merge conflicts and non-intentional code changes while working in a team. Sharing a common config file for prettier across your team helps mitigate all those issues.


If you like to take all your vim bindings to your IDE, this vim plugin just works.

GitLens — Git supercharged

This is a really helpful git plugin when you are working on a changing codebase with multiple collaborators. The best thing about this plugin is it doesn’t get in your way, it’s just there to help you.

Getting character at a specific position

let str = "Swift"//from start
var posFromStart = 1
var index = str.index(str.startIndex, offsetBy:posFromStart)
var c = str[index] // "w"
//from end
var posFromEnd = 1
index = str.index(str.startIndex, offsetBy:posFromStart)
c = str[index] // "f"

Iterate over a string

Option 1: If you only need to iterate over the characters

let str =…

Dushyant Bansal

Mobile @Thoughtspot. Previously @ Facebook, GoGoVan. Founder of Read more about me:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store