Is it possible to save multiple items with same key with AsyncStorage? I have a ListView with multiple item that can be added to favorites, when the user presses the 'add to favs' button it executes this code:   AsyncStorage.setItem("key&...
I'm learning react-native and trying to use AsyncStorage.  I'm using this code to store the data:  _storeData = async (token) => {     console.log("store token");     console.log(token);     try {       await AsyncStorage.setItem(&...
I'm trying to make an auth process so my App.js:  import React, { Component } from "react"; import { AsyncStorage } from "react-native"; import Router from "./Router"; import ScanForm from "./components/ScanForm";...
I would like to know how much is the remaining memory of a react native application using async storage.  I know in general is about 6 MB the total consumption, but I did not see in any of the methods of async storage "expo" from react native...
I'm trying to fetch some data, filter it, build an object array and then stringify it. i put in some console.logs to figure out whats happening to no avail!  log 1: [7] // array with 7 objects in it  log 2: "[]" // this is the stringified...
I have a component that looks like this:  export default class Class1 extends Component {   render = async () => {     await AsyncStorage.getItem('someValue', (error, someValue) => {       return(         <Class2 prop1={someValue}/&g...
im here with an issue regarding react native, i started a project about 2 weeks ago and its the first time im trying this framework and never worked with javascript ever so its being hard...  What i would like to know is why my function called 'c...
I want to make a singleton that will collect all the data that I need around the app. Maybe this approach is wrong, then please correct me.  Right now my Singleton class has simple code:  import { AsyncStorage } from 'react-native'  export de...
I am unable to save username with AsyncStorage in my app.  I am using Switch component, if the value is true, username is saved and on logout the username should persist.   AsyncStorage returns undefined   // function for user to toggle if username s...
I'm working on a React Native app which uses jwt tokens to access my backend API. I'm trying to save the token in AsyncStorage but looks like I'm not using async correctly.  I have a utility that helps me set my fetch options and this is...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.