I am building a sample react native application. Currently i am running it using the node server.Node server is serving the js file. You can see this in following screenshot:
I want to shift to the option2, for this, if there is any change in the js file, i need to run the curl command manually.
Is there any alternative for this?
AFAIK there's nothing in place and this is work in progress. See:
https://github.com/facebook/react-native/issues/12
There's another bit of discussion here.
At the moment I think you're stuck with the curl option.