Giter Site home page Giter Site logo

Comments (7)

0is1 avatar 0is1 commented on June 12, 2024 1

Yeah, well that works but it feels kind of stupid to copy 20+ files from assets to ExternalStorageDirectoryPath/something :)

from react-native-static-server.

0is1 avatar 0is1 commented on June 12, 2024 1

@Noitidart yeah well I guess that example mentioned above was working (it's long time ago so I don't remember exactly anymore).

Here's some code I tested back then:

from react-native-static-server.

merby04 avatar merby04 commented on June 12, 2024

hi guys, u can do it...
lets make folder in your storage and do that

let path = RNFS.ExternalStorageDirectoryPath + '/www';

it worked for me

from react-native-static-server.

Noitidart avatar Noitidart commented on June 12, 2024

@0is1 did you find solution for this? I also want to server from assets folder. What was your solution on iOS by the way?

from react-native-static-server.

Noitidart avatar Noitidart commented on June 12, 2024

Thanks @0is1 I moved away from trying to use this, had too many issues. Will report back letting you know if I get that to work if i get back to using this.

from react-native-static-server.

merby04 avatar merby04 commented on June 12, 2024

this not best practice guys, i moved to native android now and all work fine...

from react-native-static-server.

Noitidart avatar Noitidart commented on June 12, 2024

@x5c do you mean you have another native module for react-native? Or you ditched react-native?

from react-native-static-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.