-1

is there any way we can restart the device from react-native application?. I have done a research whether any npm module available to implement the same logic but unfortunately every npm modules is only to restart the application not the devices.

Anyone please help me to restart the device from react-native application? is there any npm module available for using?? or can we make use of native components??

A help would be really appreciable!! thanks in advance.

Thomas James
  • 187
  • 2
  • 16

1 Answers1

0

Dont you mean killing the port, and starting metro and running android again? i think its restarting.. like

npx kill-port thenumberWhichIsthePort
npx react-native start
npx react-native run-android