1.0.5 • Published 1 year ago

expo-filesystem-storage v1.0.5

Weekly downloads
195
License
ISC
Repository
github
Last release
1 year ago

expo-filesystem-storage

Storage engine for Expo FileSystem API. Alternative of default AsyncStorage to get over storage size limitations in Android.

Install

npm install expo-filesystem-storage

Usage with redux-persist

import createExpoFileSystemStorage from 'expo-filesystem-storage'

...

const expoFsStorage = createExpoFileSystemStorage();

const persistConfig = {
  key: 'root',
  storage: expoFsStorage,
};

const persistedReducer = persistReducer(persistConfig, reducer);

const store = createStore(persistedReducer);
const persistor = persistStore(store);

...

Customized options

...

const customOptions = {
  storagePath: `${FileSystem.documentDirectory}persistStore`,
  debug: true,
}

const expoFsStorage = createExpoFileSystemStorage(customOptions);

...
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago