Git Product home page Git Product logo

Comments (6)

amingsc avatar amingsc commented on August 28, 2024 5

meet the same error. version 4.1.0
my fix:
1.remove redux-persist-filesystem-storage
2.manual add dependency: react-native-blob-util
3.add redux-persist-filesystem-storage again

from redux-persist-filesystem-storage.

zabojad avatar zabojad commented on August 28, 2024 1

Fixed by PR #65

from redux-persist-filesystem-storage.

scrapecoder avatar scrapecoder commented on August 28, 2024

@Metourni did you find any solution? facing same issue

from redux-persist-filesystem-storage.

Metourni avatar Metourni commented on August 28, 2024

@scrapecoder I did change the storage library:

Package.json:

`
"dependencies": {
...

"@bankify/redux-persist-realm": "^0.1.3",
"redux-persist": "^6.0.0",
"realm": "^10.11.0",

...
`

`
import { createStore, applyMiddleware } from 'redux';
import { createLogger } from 'redux-logger';
import createSagaMiddleware from 'redux-saga';
import { persistStore, persistReducer } from 'redux-persist';
import { createRealmPersistStorage } from '@bankify/redux-persist-realm';

import rootReducer from './reducers';
import rootSaga from './sagas';

// config the persist
const persistConfig = {
key: '@key',
storage: createRealmPersistStorage(),
whitelist: ['profile', ...],
};
// Persist the reducers
const persistedReducer = persistReducer(persistConfig, rootReducer);

// Middleware: Redux Saga
const sagaMiddleware = createSagaMiddleware();

// Redux: Store
export const store = createStore( // mount it on the Store
persistedReducer,
applyMiddleware(
sagaMiddleware,
createLogger(),
),
);

// Persist store
export const persistor = persistStore(store);

// Middleware: Redux Saga
sagaMiddleware.run(rootSaga);

export default { store, persistor };

`

and also I had to close the emulator, clear the build and reinstall all the packages.

from redux-persist-filesystem-storage.

zabojad avatar zabojad commented on August 28, 2024

I'l facing the same issue on RN 0.71 with new architecture but @amingsc 's solution doesn't seem to help...

from redux-persist-filesystem-storage.

robwalkerco avatar robwalkerco commented on August 28, 2024

Thanks @zabojad for the PR

It's been merged and published as version 4.2.0

from redux-persist-filesystem-storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.