شريط عدم الاتصال
مهمتك في .catch((e) => { ... })، اكتب: if (e instanceof TypeError) setOffline(true); else setError("The kitchen had a problem.");. وفي أعلى الشاشة، أضف الشريط: {offline && <View style={styles.banner}><Text style={styles.bannerText}>You're offline. Check your connection.</Text></View>}
جارٍ تجهيز المحرّر