Conversation
Gabry848
commented
Mar 16, 2026
- Rimuove android:screenOrientation="PORTRAIT" (cambia orientation da "portrait" a "default" in app.json) per supportare schermi grandi su Android 16+
- Aggiorna react-native-edge-to-edge da 1.6.0 a 1.8.1 per ridurre le API deprecate della libreria
- Sostituisce SafeAreaView da react-native con react-native-safe-area-context in tutti i file (32 file)
- Sostituisce StatusBar da react-native con expo-status-bar in tutti i file, rimuovendo la prop backgroundColor che invocava la deprecated setStatusBarColor API
- Rimuove StatusBar.currentHeight sostituendolo con useSafeAreaInsets in ChatHeader e VoiceChatModal
- Rimuove android:screenOrientation="PORTRAIT" (cambia orientation da "portrait" a "default" in app.json) per supportare schermi grandi su Android 16+ - Aggiorna react-native-edge-to-edge da 1.6.0 a 1.8.1 per ridurre le API deprecate della libreria - Sostituisce SafeAreaView da react-native con react-native-safe-area-context in tutti i file (32 file) - Sostituisce StatusBar da react-native con expo-status-bar in tutti i file, rimuovendo la prop backgroundColor che invocava la deprecated setStatusBarColor API - Rimuove StatusBar.currentHeight sostituendolo con useSafeAreaInsets in ChatHeader e VoiceChatModal Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Code Review:
|
| Severity | Issue | Location |
|---|---|---|
| Medium | No landscape layout validation after orientation: "default" |
app.json + all 32 screens |
| Low | Dead paddingTop: 15 in stylesheet |
src/components/BotChat/ChatHeader.tsx |
| Low | Dead paddingTop: 52 in stylesheet |
src/components/BotChat/VoiceChatModal.tsx |
| Low | Missing StatusBar — verify intentional |
src/navigation/screens/Notes.tsx |
| Low | StatusBar inside Modal with statusBarTranslucent — validate on Android |
VoiceChatModal.tsx, VoiceCalendarModal.tsx |
| Info | No tests added | All files |
Overall
The migration is technically correct and well-executed. The main open risk is the orientation: "default" change enabling landscape mode across the entire app without corresponding layout adaptations. Recommend a follow-up issue to audit landscape behavior on Android 16+ devices and clean up the dead stylesheet entries identified above.
🤖 Reviewed with Claude Code