Where does react native store assets?

(Narahan Chughtai) #1

I have an android app that has some locally stored videos in a assets/videos directory and am using the require syntax require(‘assets/videos/localvidefile.mp4’)and notice that the videos only work when the device is connected to the internet. Why is that?

Are the videos being moved from the assets folder to some hosting service? If so why? (I’m definitely not paying for hosting right now, so whose paying for the hosting of the videos)

Finally more of as a side topic - how can I get these videos to be local/work offline (I couldn’t find anything in the official docs)?