# redux-persist-realmpackage

> Interface for persist store in reducer

Latest version **1.0.3** (published 2018-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-persist-realmpackage
pnpm add redux-persist-realmpackage
yarn add redux-persist-realmpackage
bun add redux-persist-realmpackage
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-09-20 |
| First published | 2018-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 41.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tassio Marcos |
| Maintainers | tassio.rocha |
| Keywords | realm, redux-persist, react-native, persistor, realmjs |

## Links

- npm: https://www.npmjs.com/package/redux-persist-realmpackage
- Repository: https://github.com/tassiomr/redux-persist-realmpackage
- Homepage: https://github.com/tassiomr/redux-persist-realmpackage#readme
- Issues: https://github.com/tassiomr/redux-persist-realmpackage/issues
- npm.io page: https://npm.io/package/redux-persist-realmpackage

## Recent versions

- 1.0.3 (latest) — 2018-09-20
- 1.0.2 — 2018-09-20
- 1.0.1 — 2018-09-20
- 1.0.0 — 2018-09-20

## README

- HOW TO USE

#IN STORE.JS

import { compose, createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import reducer from '../reducers';
import { persistReducer, persistStore } from  'redux-persist';
import realmPersistInstance from 'redux-persist-realm';

const persistConfig = {
  key: 'root',
  storage: realmPersistInstance
}

const persistedReducer = persistReducer(persistConfig, reducer);

const store = createStore(persistedReducer, applyMiddleware(thunk));
const persistor = persistStore(store);


export { store, persistor }


#USE


import { store, persistor } from './src/redux/store';

import { PersistGate } from 'redux-persist/integration/react';


const renderAppWithRedux = () => (
  <Provider store={store}>
   <PersistGate loading={null} persistor={persistor}>
      <App />
    </PersistGate>
  </Provider>
);

AppRegistry.registerComponent('root', () => renderAppWithRedux);

---
_Source: https://npm.io/package/redux-persist-realmpackage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
