'Change the physical location of the device (React Native)

I am planning to make an application where the user can input a address and the location of the device would change. I saw a lots of people changing the location of the simulator but I would like to change the location of the actual device. An example: If I am living in California, I would like to show my device is in New York even the device is still in California but in the GPS it would show as new york.

How could I achieve this functionality using React Native or NodeJS.

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source