forked from mrzachnugent/react-native-reusables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalert.tsx
26 lines (25 loc) · 787 Bytes
/
alert.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { View } from 'react-native';
import {
Alert,
AlertDescription,
AlertTitle,
} from '~/components/universal-ui/alert';
export default function AlertScreen() {
return (
<View className='flex-1 justify-center p-6 items-center gap-6'>
<Alert icon='Terminal' className='max-w-xl'>
<AlertTitle>Heads up!</AlertTitle>
<AlertDescription>
You can use a terminal to run commands on your computer.
</AlertDescription>
</Alert>
<Alert icon='AlertTriangle' variant='destructive' className='max-w-xl'>
<AlertTitle>Danger!</AlertTitle>
<AlertDescription>
High voltage. Do not touch. Risk of electric shock. Keep away from
children.
</AlertDescription>
</Alert>
</View>
);
}