{"id":26499096,"url":"https://github.com/pradeep1991singh/react-native-asyncstorage","last_synced_at":"2026-04-13T18:31:18.361Z","repository":{"id":119807206,"uuid":"86487821","full_name":"pradeep1991singh/react-native-AsyncStorage","owner":"pradeep1991singh","description":"React native AsyncStorage example","archived":false,"fork":false,"pushed_at":"2017-03-28T17:32:22.000Z","size":127,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T14:56:09.936Z","etag":null,"topics":["asyncstorage","react-native"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pradeep1991singh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-28T17:25:08.000Z","updated_at":"2018-10-21T18:23:01.000Z","dependencies_parsed_at":"2023-06-03T05:30:15.091Z","dependency_job_id":null,"html_url":"https://github.com/pradeep1991singh/react-native-AsyncStorage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pradeep1991singh/react-native-AsyncStorage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep1991singh%2Freact-native-AsyncStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep1991singh%2Freact-native-AsyncStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep1991singh%2Freact-native-AsyncStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep1991singh%2Freact-native-AsyncStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradeep1991singh","download_url":"https://codeload.github.com/pradeep1991singh/react-native-AsyncStorage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradeep1991singh%2Freact-native-AsyncStorage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31766293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncstorage","react-native"],"created_at":"2025-03-20T14:51:51.605Z","updated_at":"2026-04-13T18:31:18.357Z","avatar_url":"https://github.com/pradeep1991singh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-AsyncStorage\nReact native AsyncStorage example\n\n## Installation\nClone repo\n\n```sh\n$ git clone https://github.com/pradeep1991singh/react-native-AsyncStorage.git\n```\n\n## Run\n\n```sh\n$ cd react-native-AsyncStorage\n\n# run ios app\n$ react-native run-ios\n\n# run android app\n$ react-native run-android\n```\n\n## Saving/Retrieving Data\n\nAs AsyncStorage name suggests its an asynchronous storage which returns `Promise` object.\n\n### Persisting data\n\nFor persisting data in react app there is `AsyncStorage.setItem` method as we have localStorage.setItem in localStorage.\n`setItem` takes two parameters as key-value pair. e.g. -\n\n```js\ntry {\n  await AsyncStorage.setItem('@MySuperStore:key', 'hi there');\n} catch (error) {\n  // Error saving data\n  console.log(error);\n}\n```\n\n### Retrieving data\n\nFor getting saved data back there is `AsyncStorage.getItem` method which takes one parameter(key-name). e.g. - \n\n```js\ntry {\n  const value = await AsyncStorage.getItem('@MySuperStore:key');\n  console.log(value); // hi there\n} catch (error) {\n  console.log(error);\n}\n```\n\n### Remove saved key\n\nFor removing Item for a key there is `AsyncStorage.removeItem` method which takes one parameter(key-name). e.g. -\n\n```js\ntry {\n  await AsyncStorage.removeItem('@MySuperStore:key');\n} catch (error) {\n  console.log(error);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradeep1991singh%2Freact-native-asyncstorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradeep1991singh%2Freact-native-asyncstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradeep1991singh%2Freact-native-asyncstorage/lists"}