Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 2cf347c

Browse files
committed
Revert "Don’t display error handler in notification bar"
This reverts commit 0c7141e.
1 parent e57c4d4 commit 2cf347c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/component/notification.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Platform,
99
} from 'react-native';
1010
import PropTypes from 'prop-types';
11+
import { SmallPillButton } from './button';
1112
import { Text, H4Text } from './text';
1213
import ToastCheckmarkIcon from '../asset/icon/toast-checkmark';
1314
import { SmallSpinner } from './spinner';
@@ -53,6 +54,12 @@ export const NotificationBar = ({ notification, display, style }) =>
5354
<Alert type={notification.type} style={barStyles.alert} />
5455
<Text style={barStyles.text}>{notification.message}</Text>
5556
</View>
57+
{notification.handler ? (
58+
<SmallPillButton
59+
text={notification.handlerLbl}
60+
onPress={notification.handler}
61+
/>
62+
) : null}
5663
{notification.waiting ? <SmallSpinner /> : null}
5764
</View>
5865
</SafeAreaView>

0 commit comments

Comments
 (0)