Unverified Commit d4d973ab authored by valentinewallace's avatar valentinewallace Committed by GitHub

Merge pull request #1108 from lightninglabs/dev/keep-screen-awake

Render KeepAwake when notification is flagged waiting
parents 2032a052 7457f0f4
import React from 'react';
import { StyleSheet, View, Platform, StatusBar } from 'react-native';
import { KeepAwake } from 'expo';
import { observer } from 'mobx-react';
import PropTypes from 'prop-types';
import DropdownAlert from 'react-native-dropdownalert';
......@@ -56,6 +57,7 @@ const NotificationWrapper = ({ store, notify, children }) => (
closeInterval={NOTIFICATION_DELAY}
replaceEnabled={false}
/>
{(store.lastNotification || {}).waiting ? <KeepAwake /> : null}
</View>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment