Asyncstorage React Native | Async Storage Tutorial

Поделиться
HTML-код
  • Опубликовано: 21 сен 2024
  • Asyncstorage React Native tutorial lets you save data in your application for when it's restarted. If you require to get up and running with async storage in your application for ios or android, this video will use the react-native-community/async-storage package, we will take a look at setting up asyncstorage react native and see how we can store tokens, objects and even an array. In this react native asyncstorage example we will see what is required to get the package installed and running and go through a few examples. The example we will use is from react-native-community for the async-storage package but this tutorial is not just a guide on how to use async storage for apps, it's a good way to learn while building our mobile app on ios and android. Offline data is kept inside Async Storage with react native until the application is uninstalled.
    Storing keys and values, parsing objects and arrays, as well as retrieving them are all important things to be able to do for any application as each time you reload the application, parts of your store may be lost or recycled with the application constructor method. Logins are usually the most important aspect in ensuring that you can save your data in your application
    #asyncstorage #reactnative #adriantwarog
    Design for Developers - Enhance UI
    A book I've created to help you improve the look of your apps and websites.
    📘 Enhance UI: www.enhanceui....
    Follow and support me:
    🐦 Twitter: / adrian_twarog
    💬 Discord: / discord
    💸 Patreon: / adriantwarog
    🖥️ Dev.to: dev.to/adriant...

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

  • @AdrianTwarog
    @AdrianTwarog  4 года назад +24

    I am trying to grow my channel, so if you find this video useful, #subscribe & hitting the #bell :) Thanks for watching and hope you liked and learnt something new!

    • @norhankhaled707
      @norhankhaled707 4 года назад

      can you upload video about how to use Asyncstorage in flatlist

  • @makariyu69
    @makariyu69 4 года назад +3

    Learning react native. This channel will be a great resource for sure. Thanks adrian!

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +5

      Mac O. Thanks. Planning to do a future video on all of react native from start to end but that’s going to take a bit more time. For now trying to cover fundamentals and interesting topics :)

  • @rajeev7842
    @rajeev7842 2 года назад +4

    Where exactly does AsyncStorage stores this data? How it is getting persisted? It would have been great if these information were in the video.

  • @tommyleong8328
    @tommyleong8328 4 года назад +4

    As usual, great content with simple explanation on guiding all our react native developer onboard! (Y)

  • @vaibhavkumarpatel6863
    @vaibhavkumarpatel6863 4 года назад +1

    On which technology you are working in companies.
    React native?
    If so please make one full series of react native app development from beginnier to advance.
    You are explaining well...
    Please answer my above questions...

  • @veermetri05
    @veermetri05 4 года назад +1

    Awesome tutorial for even absolute begineer! Thank you so much

  • @spang1e858
    @spang1e858 4 года назад +2

    Thanks for this, made it easy to understand and implement into my project.

  • @Programphile
    @Programphile 4 года назад +4

    Excellent content! Subscribed. Keep it up!

  • @Holdsy10
    @Holdsy10 4 года назад +2

    Very good video mate! I was able to understand it easily :)

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      Holdsy10 that’s great, that was the goal!

  • @divyanshusoni4341
    @divyanshusoni4341 Год назад

    I have two questions:
    1. Will it work even after uninstalling the application
    2. What can be the alternative if we use Xamarin instead of React Native

  • @NicolasSilvaVasault
    @NicolasSilvaVasault 4 года назад +2

    how about with react hooks? how is the approach with react native hooks?

  • @nooch815
    @nooch815 4 года назад +1

    Great video Adrian - thank you!

  • @lukehatcher98
    @lukehatcher98 3 года назад

    Thank you for this great tutorial!

  • @mohammadrasel1271
    @mohammadrasel1271 4 года назад +3

    can you upload a video on implementing onboarding or walkthrough screens using react native? it would be very helpful

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +5

      Hey that’s a great idea, will do

  • @emilrasmussen7429
    @emilrasmussen7429 3 года назад +12

    Am I the only one triggered by the way he pronounced "Deprecated" 😅

  • @Слава-э8ю
    @Слава-э8ю 3 месяца назад

    Thank you!

  • @sntlln93
    @sntlln93 4 года назад +1

    Hi! How i can add AsyncStorage with npm? I tried with [npm i @react-native-community/async-storage] but it doesn't seems to work. I dont want to use yarn because i'm already using npm.

  • @sherifsamir6888
    @sherifsamir6888 2 года назад

    Thanks for the amazing content !

  • @umairali2360
    @umairali2360 3 года назад +1

    Where is AsyncStorage Data Physically Located on Android devices?????

  • @purringlobster
    @purringlobster 4 года назад

    Love the great works man =))

  • @Dheerajsonali
    @Dheerajsonali 4 года назад +2

    Getting error. Sqlitefullexception: Error storing data error: Database or disk is full (code 13).

  • @gofudgeyourselves9024
    @gofudgeyourselves9024 4 года назад +2

    Please do a video on sqlite or watermelon db

  • @sumukhakb2701
    @sumukhakb2701 3 года назад

    Rare and nice video, please do some more videos on react native

  • @damjanosemini796
    @damjanosemini796 Год назад +1

    '@react-native-community/async-storage' is no longer available and the new version of 'react-native-async-storage/async-storage' show some errors after install

  • @michawattenberg4665
    @michawattenberg4665 4 года назад +2

    I just have a problem with the linking. Im using Expo and if I install the package there is always the error: "[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null." . Ive tried to link Async Storage but it doesn't work. Do you have a solution for this? Thanks

    • @jakediaz9282
      @jakediaz9282 4 года назад +1

      I'm getting the same error. Still haven't found a fix...

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      Maybe check github doco?

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      I'd suggest checking doco as my example is RN

    • @ginicholas4322
      @ginicholas4322 4 года назад

      If you go to the expo docs it shows that AsyncStorage is automatically installed within the 'react-native' library as of SDK 36+. Import { AsyncStorage } from 'react-native'; Though, you'd still need to look at the docs just to make sure nothing has changed.

  • @shrikantjha5630
    @shrikantjha5630 4 года назад +1

    Worked !

  • @carmiaca
    @carmiaca 3 года назад

    Can't setState on a component that is not yet mounted error when running getData.

  • @salemouail627
    @salemouail627 4 года назад

    thanks for the video

  • @practicacodigo9119
    @practicacodigo9119 2 года назад

    Hello, thank your jajajajaj I like your style jaja

  • @romainplantureux2125
    @romainplantureux2125 2 года назад

    Hello thanks a lot ! Do you have some link to documentation or anything else for use this with nodejs/mysql ? thank you :-)

  • @yuriiberezynets6102
    @yuriiberezynets6102 3 года назад

    thx! 🔥

  • @abdremo
    @abdremo 3 года назад

    Cool One

  • @jakediaz9282
    @jakediaz9282 4 года назад +1

    I am getting an Error:[@RNC/AsyncStorage]: NativeModule: AsyncStorage is Null.
    Is anyone else getting this error and if so lemme know if you've fixed it.
    Thanks guys

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      May need to check github on that one

  • @ishara8375
    @ishara8375 4 года назад +1

    Sir, can you make a video about setting up FCM in ejected expo app. Pls

  • @AbdulRehman-ux8uj
    @AbdulRehman-ux8uj 3 года назад

    awesome

  • @mednour496
    @mednour496 3 года назад

    how Loading data with AsyncStorage in new Tab Screen

  • @LuizFernando-ew4te
    @LuizFernando-ew4te Год назад

    Where i find this react full example code ?

  • @saidinusah
    @saidinusah 4 года назад +2

    how do i get the stored data when my app opens for the first time. Let's say i store the user name so when theres a username data, i navigate to the landing screen instead of the sign up

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      get it from local storage ideally

    • @NicolasSilvaVasault
      @NicolasSilvaVasault 4 года назад

      you can use keychain and store both username and password, and on componentdidmount (or useEffect on hooks) ask if the credentials exist, then you can log the user and navigate to home, otherwise just go back to login

  • @alvin_lal
    @alvin_lal 4 года назад

    which vs code theme do you use?

  • @vitormazuco5410
    @vitormazuco5410 4 года назад +2

    where is the your code?

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +3

      Vitor Mazuco I’ll try put it up for reference. Code pen?

  • @santi_cendra_music
    @santi_cendra_music 3 года назад

    how to save a video?

  • @sameralsudani7323
    @sameralsudani7323 4 года назад +1

    Can you share the source code via Github please?

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      In future videos I will try to do this!

  • @ManojSatishkumar
    @ManojSatishkumar 4 года назад

    try ... catch is not a loop. Its a block.

  • @DarkMooN-uh1ih
    @DarkMooN-uh1ih Год назад +1

    Async Storage has moved to new organization => react-native-async-storage/async-storage

  • @NikolajLepka
    @NikolajLepka Год назад

    de-pre-ca-ted
    not de-pre-ci-a-ted

  • @henporchaing4794
    @henporchaing4794 2 года назад

    c ey jes mis bro

  • @DilanBuddhikawijerathne
    @DilanBuddhikawijerathne 3 года назад

    background music is too much than your voice

  • @michael_ibeh
    @michael_ibeh 7 месяцев назад

    AsyncStorage is slow.

  • @Hu3sosik
    @Hu3sosik Год назад

    Pashol Nahuy

  • @earnverneditor2897
    @earnverneditor2897 4 года назад

    Awesome tutorial for even absolute begineer! Thank you so much