So, when I use react-native Alert.alert() function on Android, it shows a default-styled android alert. I want an alert styled depending on device manufacturer, such as OneUI on Samsung (examples: 1 and 2). Is this possible with react-native?
My example code:
import {Alert, Button} from "react-native";
export default function Test() {
return (
<>
<Button title={'show alert'} onPress={() => {
Alert.alert("Hello", "This is three option alert.", [
{
text: "May be",
},
{
text: "Yes",
},
{
text: "No",
},
])
}}/>
</>
)
}
I tried asking gpt and searching the solution on the Google, but no result.
New contributor
artemsnite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.