futurepress / react-native-static-server

HTTP static file server for React Native
MIT License
360 stars 183 forks source link

{localOnly: true} option issue #37

Closed kanalasumant closed 6 years ago

kanalasumant commented 6 years ago

Removing {localOnly: true} option on an IPhone 6 - IOS 11.2 simulator or even on an android simulator/physical device doesn't seem to open the files I wanna serve in safari or chrome or any browser, but it can serve the files through a webview on the app itself. Correct me if I'm wrong but is this what removing this option expected. Any suggestions on how to proceed next is appreciated. Thanks!

fchasen commented 6 years ago

Not sure what issue you are running into, but yes if you don't have localOnly you should be able to access the files at the origin returned by server.start() in a browser.

kanalasumant commented 6 years ago

You're right. Had to test it using a real device. Didn't work on a simulator!