웹인스토리

  • 홈
  • 태그
  • 방명록

netinfo 1

REACT-NATIVE 인터넷 연결 확인

어떤 경우에는 앱에서 작업을 시작하기 전에 장치가 인터넷에 연결되어 있는지 확인할 필요가 있을때 Netinfo 라이브러리를 사용하여 확인할 수 있으며 애플리케이션의 React Native 버전에 따라 다릅니다. RN : 버전> = 0.60 import NetInfo from "@react-native-community/netinfo"; NetInfo.fetch().then(state => { console.log("Connection type", state.type); console.log("Is connected?", state.isConnected); }); isConnected: boolean, Type: none, wifi, bluetooth, cellular. RN : 버전 { console.l..

React Native 2020.11.09
이전
1
다음
더보기
프로필사진

웹인스토리

PHP, MOBILE, WINDOWS, HYML, CSS, JAVASCRIPT, SERVER, MYSQL, APP, PROGRAM, IT 정보

  • 분류 전체보기 (81)
    • Web (37)
      • Html (2)
      • CSS (5)
      • JavaScript (7)
      • PHP (17)
      • AJAX (0)
    • DataBase (9)
      • Mysql (7)
      • MSSQL (0)
      • Oracle (0)
    • React Native (22)
    • Mobile (2)
      • Android (0)
    • Os (6)
      • Linux (4)
      • Windows (1)
    • Etc (5)

Tag

API, 네이버맵, react-native, Mac, react, 폴리곤, react native, 구글, mysql, 사이트맵, WebView, nginx, NPM, 워드프레스, CSS, rn, 좌표, PHP, Apache, node,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/04   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바