'How to cast local files with React Native

I am working on an app that cast local files to chromecast devices using react-native-google-cast but as the google cast library only supports http so how can I host my local files on a local server in my react native project. I have came across tinydroidhttpd but I have no idea how to use it in my project. Please help me out.



Sources

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

Source: Stack Overflow

Solution Source