GithubHelp home page GithubHelp logo

Comments (8)

prakashw3expert avatar prakashw3expert commented on September 28, 2024 14

In file CachedImage.js
remove import of NetInfo from react native to.

import NetInfo from "@react-native-community/netinfo";

from react-native-cached-image.

hueyAtFetchly avatar hueyAtFetchly commented on September 28, 2024 1

Denifer please use @prakashw3expert 's answer.

Ideally you can use https://github.com/ds300/patch-package to create a patch that will be reapplied after each reinstall of react-native-cached-image

from react-native-cached-image.

prakashw3expert avatar prakashw3expert commented on September 28, 2024 1

@DeniferSantiago Open react-native-cached-image from node modules
You need To change manually into this library
Open CachedImage.js
Remove Netinfo from react native
You need to import NetInfo from “@react-native-community/netinfo”; from this
and one more you have to do in it
open utils folder and change const RNFetchBlob = require(‘react-native-fetch-blob’).default; to
import RNFetchBlob from ‘rn-fetch-blob’;
This is only solution of this issue

from react-native-cached-image.

cyberdude avatar cyberdude commented on September 28, 2024

This one is important

from react-native-cached-image.

hardikramoliya avatar hardikramoliya commented on September 28, 2024

Facing same issue when add react-native-cached-image
Invariant Violation: NetInfo has been removed from React Native. It can now be installed and imported from 'react-native-netinfo' instead of 'react-native'.

from react-native-cached-image.

ilibilibom avatar ilibilibom commented on September 28, 2024

@hardikramoliya - sadly this library didn't work for me.
This one did:
https://github.com/DylanVann/react-native-fast-image

from react-native-cached-image.

hueyAtFetchly avatar hueyAtFetchly commented on September 28, 2024

In file CachedImage.js
remove import of NetInfo from react native to.

import NetInfo from "@react-native-community/netinfo";

Is there a PR in? Can you please reference if so?

Right now using https://github.com/ds300/patch-package to remedy

from react-native-cached-image.

DeniferSantiago avatar DeniferSantiago commented on September 28, 2024

I am still waiting for a solution for this 😕

from react-native-cached-image.

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.