Im coding an app for Android using React Native in Expo, and I think I have found an impossible task.
I have succesfully removed/hidden the “Bottom Navigationbar” for Android devices and even set a custom color. BUT, everytime on every single MODAL Component in the app it overrides my design and the Bottom Navigationbar reappears and also to the default THEME of the user.
I have sat with this for a week and I see many people with the same problem on Stack Overflow, Reddit and other forums.
TRY IT YOURSELF and see if you can come up with a solution!
Here you can see an example of my settings, as you can see we do not have a navbar at the bottom UNTIL a Modal appears and overrides our app.js
If you want an example of the Modal:
<Modal
animationType="fade"
transparent={true}
visible={showDisableNotificationsModal}
onRequestClose={() => setShowDisableNotificationsModal(false)}
>
<View style={styles.modalOverlay}>
<View style={styles.modalContent}>
<Text style={styles.modalTitle}>Disable Notifications</Text>
<Text style={styles.modalMessage}>
Are you sure you want to disable notifications?
</Text>
<View style={styles.modalDivider} />
<View style={styles.modalButtonContainer}>
<TouchableOpacity
style={styles.modalButton}
onPress={() => setShowDisableNotificationsModal(false)}
>
<Text style={styles.modalButtonText}>Cancel</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.modalButton}
onPress={() => {
toggleNotifications(); // Actually disable
disableNotifications();
setShowDisableNotificationsModal(false); // Close modal
}}
>
<Text style={[styles.modalButtonText, { color: "#F53769" }]}>
Disable
</Text>
</TouchableOpacity>
</View>
</View>
</View>
</Modal>


