All of the principles you learned about in the Displaying a success confirmation section are applicable when you need the user to acknowledge an error. If you need more control of the display, use a modal. For example, you might want the modal to be red and scary looking:
Here are the styles that were used to create this look. Maybe you want something a little more subtle, but the point is that you can make this look however you want:
import { StyleSheet } from "react-native";
export default StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "ghostwhite"
},
text: {
color: "slategrey"
},
modalContainer: {
flex: 1,
justifyContent: "center",
alignItems: "center"
},
modalInner: {
backgroundColor: "azure",
padding: 20,
borderWidth: 1,
borderColor: "lightsteelblue",
...