Skip to content

Commit bc73890

Browse files
Add rejected promise examle
1 parent f284478 commit bc73890

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

example/src/App.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,17 @@ export default function App() {
3030
<FlatList
3131
data={[
3232
{
33-
title: 'Throw example error',
33+
title: 'Throw error',
3434
action: () => {
3535
throw new Error(message);
3636
},
3737
},
38+
{
39+
title: 'Rejected promise',
40+
action: () => {
41+
Promise.reject(new Error(message));
42+
},
43+
},
3844
{
3945
title: 'console.error',
4046
action: () => console.error(new Error(message)),

0 commit comments

Comments
 (0)