Giter VIP home page Giter VIP logo

Comments (3)

ajaxjiang96 avatar ajaxjiang96 commented on June 29, 2024

reachabilityUrl: 'https://clients3.google.com/generate_204',

确认一下您的网络环境是在墙内吗?代码默认用的请求接口是'https://clients3.google.com/generate_204',你可以手动传入自定义的reachabilityUrl

from react-native-netinfo.

luckyGTL avatar luckyGTL commented on June 29, 2024

跟这个无关吧,当单独使用蜂窝网络或者wifi时,然后切换网络状态通过useNetInfo获取到的状态是正常的。只有当蜂窝和wifi同时开启时然后关掉wifi,才会出现上面那种异常情况(获取的网络状态全是false)

from react-native-netinfo.

eagleonefight avatar eagleonefight commented on June 29, 2024

你如果不能访问这个 reachabilityUrl: 'https://clients3.google.com/generate_204' 链接,永远都是false

from react-native-netinfo.

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.