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

Commit 7457f0f

Browse files
committed
Render KeepAwake when notification is flagged waiting
1 parent 2032a05 commit 7457f0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/component/notification-wrapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import { StyleSheet, View, Platform, StatusBar } from 'react-native';
3+
import { KeepAwake } from 'expo';
34
import { observer } from 'mobx-react';
45
import PropTypes from 'prop-types';
56
import DropdownAlert from 'react-native-dropdownalert';
@@ -56,6 +57,7 @@ const NotificationWrapper = ({ store, notify, children }) => (
5657
closeInterval={NOTIFICATION_DELAY}
5758
replaceEnabled={false}
5859
/>
60+
{(store.lastNotification || {}).waiting ? <KeepAwake /> : null}
5961
</View>
6062
);
6163

0 commit comments

Comments
 (0)