{"id":21331146,"url":"https://github.com/netbeast/redux-persist-react-native-fs","last_synced_at":"2025-10-11T15:20:36.802Z","repository":{"id":57351264,"uuid":"92164966","full_name":"netbeast/redux-persist-react-native-fs","owner":"netbeast","description":"Storage implementation of a redux-persist storage around react-native-fs","archived":false,"fork":false,"pushed_at":"2017-10-05T09:50:56.000Z","size":4,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T08:04:10.055Z","etag":null,"topics":["react-native","react-native-fs","redux","redux-persist","storage"],"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/netbeast.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}},"created_at":"2017-05-23T11:25:37.000Z","updated_at":"2020-11-09T09:32:25.000Z","dependencies_parsed_at":"2022-08-31T06:01:34.447Z","dependency_job_id":null,"html_url":"https://github.com/netbeast/redux-persist-react-native-fs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Fredux-persist-react-native-fs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Fredux-persist-react-native-fs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Fredux-persist-react-native-fs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netbeast%2Fredux-persist-react-native-fs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netbeast","download_url":"https://codeload.github.com/netbeast/redux-persist-react-native-fs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225812277,"owners_count":17527963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["react-native","react-native-fs","redux","redux-persist","storage"],"created_at":"2024-11-21T22:29:35.827Z","updated_at":"2025-10-11T15:20:31.761Z","avatar_url":"https://github.com/netbeast.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-persist-react-native-fs\n\n[![npm version](https://img.shields.io/npm/v/redux-persist-react-native-fs.svg?style=flat-square)](https://www.npmjs.com/package/redux-persist-react-native-fs)\n[![npm downloads](https://img.shields.io/npm/dt/redux-persist-react-native-fs.svg?style=flat-square)](https://www.npmjs.com/package/redux-persist-react-native-fs)\n\n\n\nReact Native File System adapter for redux-persist storage.\n[Learn more](https://github.com/rt2zz/redux-persist).\n\n## Installation\n1. Install [react-native-fs and link it](https://github.com/itinance/react-native-fs) to native android, ios, etc.\n```\nnpm i --save react-native-fs\nreact-native link react-native-fs\n```\n2. Install this library\n```\nnpm i --save redux-persist\n```\n\n## Usage\n```javascript\nimport { NativeStorage } from 'redux-persist-react-native-fs'\n\n/**\n* For redux-persist\n*/\nconst persistConfig = {\n  storage: NativeStorage,\n  // ...other config\n}\n\nexport const persistor = persistStore(store, persistConfig)\n\n/**\n* Stand alone or for testing\n*/\nawait NativeStorage.setItem('first', { test: 'common' })\nawait NativeStorage.setItem('nest', { of: { course: { is: 'nested' } }})\nawait NativeStorage.setItem('second', { of: { course: { is: 'nested' } }})\nconsole.log({ keys: await NativeStorage.getAllKeys() })\nNativeStorage.removeItem('second')\nconsole.log({ tree: await NativeStorage.getFullTree() })\nconsole.log({ first: await NativeStorage.getItem('first') })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbeast%2Fredux-persist-react-native-fs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetbeast%2Fredux-persist-react-native-fs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbeast%2Fredux-persist-react-native-fs/lists"}