Skip to content

Instantly share code, notes, and snippets.

View MKS-01's full-sized avatar
👽

MKS MKS-01

👽
View GitHub Profile
@MKS-01
MKS-01 / AdbCommands
Created April 5, 2022 19:17 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@MKS-01
MKS-01 / index.js
Last active September 19, 2020 11:14
Network Error Complete Implementation Code
import React from 'react';
import {View, Text, SafeAreaView, StyleSheet, Image} from 'react-native';
import CheckConnection from './utils/CheckConnetion';
const ErrorCard = () => {
return (
<View style={styles.errorContainer}>
{/*check github repo for design*/}
</View>
);
@MKS-01
MKS-01 / ConnectionCheck.js
Last active September 7, 2020 18:49
Network Error Connection Check hook
import {useState, useEffect} from 'react';
import NetInfo from '@react-native-community/netinfo';
let currentNetwork;
NetInfo.fetch().then((state) => {
currentNetwork = state.isConnected;
});
const CheckConnection = () => {