An offline banner

Your task In .catch((e) => { ... }), write: if (e instanceof TypeError) setOffline(true); else setError("The kitchen had a problem.");. At the top of the screen, add the banner: {offline && <View style={styles.banner}><Text style={styles.bannerText}>You're offline. Check your connection.</Text></View>}

Getting the editor ready