How to open a HTTP server in react native
<p>I want to be able to send music to sonos using its API. Unfortunately the only way I know is to send an <code>URI</code> to the device so it can download it.</p>

<p>I have visited already the package <a href="https://www.npmjs.com/package/react-native-httpserver" rel="nofollow noreferrer">react-native-httpserver</a>. This one has not been tested in Android. So I had a look over Android's <a href="https://stackoverflow.com/questions/19359304/how-to-serve-a-file-on-sdcard-using-nanohttpd-inside-android">nanoHTTPD</a> and other similar packages in iOS as <a href="https://github.com/robbiehanson/CocoaHTTPServer" rel="nofollow noreferrer">CocoaHTTPServer</a> is.</p>

<p>It should not very difficult to create a wrapper over those packages to build something cross-platform but I wonder if there is another solution in Javascript or some work developing over <a href="https://github.com/PeelTechnologies/react-native-tcp" rel="nofollow noreferrer">react-native-tcp</a></p>