![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@connected-home/redux-persist-fs-storage
Advanced tools
Redux-Persist storage engine for React Native file system
Redux Persist storage engine for React Native file system
Inspired by redux-persist-filesystem-storage, this module works as adapter between react-native-fs and redux-persist.
yarn add react-native-fs redux-persist-fs-storage
This will install react-native-fs
as dependency. So make sure to link it natively:
react-native link react-native-fs
See react-native-fs
's documentation for details.
Both Redux Persist v4 and v5 are supported.
Redux Persist v5:
import { persistStore, persistReducer } from 'redux-persist';
import FSStorage from 'redux-persist-fs-storage';
const persistConfig = {
key: 'root',
keyPrefix: '', // the redux-persist default is `persist:` which doesn't work with some file systems
storage: FSStorage(),
};
const persistedReducer = persistReducer(persistConfig, reducer);
const store = createStore(persistedReducer);
const persistor = persistStore(store);
Redux Persist v4:
import { persistStore } from 'redux-persist';
import FSStorage from 'redux-persist-fs-storage';
const persistor = persistStore(store, { storage: FSStorage() });
The default storage location is a folder called reduxPersist
in the document directory for your app on the device. You can specify folder for persistor:
import { persistStore } from 'redux-persist';
import FSStorage, { CacheDir } from 'redux-persist-fs-storage';
const cachePersistor = persistStore(store, {
storage: FSStorage(CacheDir, 'myApp'),
});
This will create myApp
folder in cache storage for iOS and Android devices. You may create multiple persistors on different directories.
FAQs
Redux-Persist storage engine for React Native file system
The npm package @connected-home/redux-persist-fs-storage receives a total of 12 weekly downloads. As such, @connected-home/redux-persist-fs-storage popularity was classified as not popular.
We found that @connected-home/redux-persist-fs-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.