How to Download File, Pause, Resume and Save to File System for Expo React Native Apps

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • Hi everyone!
    Today I'm showing you how to download a file, pause, resume and save to your device's file system for Expo React Native Apps. We will use the following packages to achieve this:
    expo-file-system: for downloading, pausing, resuming and saving to the file system for Android devices, using StorageAccessFramework
    @react-native-async-storage/async-storage: for ensuring if we exit an app while a download is paused, we can resume the download from where we left off
    expo-sharing: for saving the download to the devices files on iOS
    My code for this is available on GitHub:
    github.com/che...
    And you can find full documentation here:
    Expo Filesystem: docs.expo.dev/...
    Expo Sharing: docs.expo.dev/...
    Async Storage: react-native-a...
    You’ve clearly come here to learn and a free audible trial allows you to increase your learning potential in situations where you may be hands free like at the gym or on your commute. It allows you to spend more time on theory when you aren’t able to watch a screen, so that you can maximise your screen time to pick up technical skills. Try it for free today:
    amzn.to/49NX6Xe
    // ABOUT ME
    My name is Chelsea and I started studying software engineering in 2010. I have been working commercially full time since 2014 and have been in various positions from graduate developer to tech lead to solution architect.
    I'm a full stack developer with a lot of experience in C# and Javascript but my passion is for mobile development; specifically native iOS development and cross platform using React Native.
    I always have many things on the go and am always trying out a new side hustle and failing at it; perhaps you can learn from my mistakes!
    Please like and subscribe if you enjoyed this video and want to see more like it!
    Have any suggestions on topics you would like to learn more about? Please suggest them in the comments... I would love to help you out while doing a bit of learning myself!
    // PRODUCTS USED
    I use the following products in the creation of my videos:
    Boya MM1 Microphone - amzn.to/3uupmOB
    A reasonable quality and reasonably sturdy but cost effective microphone that can be used by both DSLR cameras, mobile phones and laptops
    Canon 18-55mm Lens - amzn.to/3QYYdLk
    A kit lens but a decent quality lens for beginners getting used to a DSLR
    Canon EOS Rebel T7 with 18-55mm Lens - amzn.to/3GdRPuq
    This is the kit I started with it includes the lens linked above and is a great starter camera.
    I love Apple devices... These are the ones I use for my channel content creation:
    Apple iPhone 13 - amzn.to/3G8pHcl
    A good all round phone, good for Apple development and recording videos with enough high quality features but at a cheaper price point than the pro versions.
    Apple MacBook Pro - amzn.to/3MUuPV8
    A nice portable computer for working from anywhere and perfect for iOS development
    Apple iPad Air - amzn.to/49LvYrY
    Really easy to use for graphic design if required for logos as part of my app development or editing the videos on the go.
    DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting my channel so I can continue to provide you with free content each week!
    //CONTACT:
    Please contact me at: hello@tripwiretech.com
    //CRAVING MORE:
    You can find links to all my different sites and social media over on Linktree: linktr.ee/miss...

Комментарии • 11

  • @skywickgaming2193
    @skywickgaming2193 8 месяцев назад

    Thanks for this. Its way easier following your tutorials than using the Expo documentation

  • @minusmarigold98
    @minusmarigold98 3 месяца назад

    thanks to you very very , that android saving file in shared storage was very helpfull for me

  • @rajRaj-tc5gl
    @rajRaj-tc5gl 3 месяца назад

    thank you very very much!
    i want to pause automatically when app goes to inactive without pausing, is it possible
    what about when the app goes to background
    i tries using rn-fetch-blob, resulted files where currupted

  • @bigotes130
    @bigotes130 8 месяцев назад

    thank you, your video was really helpful.
    also noticed you changed the video link on your repo, i was having trouble with the one in the web you used in the video looks like it wasn't a me problem

  • @moonirKhan
    @moonirKhan Месяц назад

    Why need export file? is it possible to save direct local storage?

  • @missaklefa7692
    @missaklefa7692 8 месяцев назад

    Thank's 🎉🎉 for this tutorial. But how can i download a mp3 file then save on my devise and alose not allow other application access this mp3 file but give acccess only my application

    • @MissCoding
      @MissCoding  8 месяцев назад

      Hey, if you download then I believe it should be available to your application only unless you decide to export it. You would just need to access it using the file uri that you specify as an option when downloading. Effectively you can skip the export file aspect of the video!

    • @missaklefa7692
      @missaklefa7692 8 месяцев назад

      @@MissCoding ok thank's, i will try this solution

  • @VladimirJanjic-bp6cu
    @VladimirJanjic-bp6cu 4 месяца назад

    So you really waited 32nd min to add * 100 and remove mega super annoying percentage jumping text? 😮