Commit 49099607 authored by Martin Santangelo's avatar Martin Santangelo

(feat) add react native exit app again

1 merge request!377WIP: Udpate app to react native 0.61.1 and jitsi 2.4.0
......@@ -34,7 +34,7 @@ import NavigationStack from './src/navigation/NavigationStack';
import stores from './AppStores';
import './AppErrors';
import './src/common/services/socket.service';
import pushService from './src/common/services/push.service'; //TODO: fix for 0.61
import pushService from './src/common/services/push.service';
import mindsService from './src/common/services/minds.service';
import featureService from './src/common/services/features.service';
import receiveShare from './src/common/services/receive-share.service';
......@@ -63,7 +63,7 @@ import apiService from './src/common/services/api.service';
let deepLinkUrl = '';
// init push service
pushService.init(); //TODO: fix for 0.61
pushService.init();
// fire sqlite init
sqliteStorageProviderService.get();
......
......@@ -20,8 +20,7 @@ import {
inject
} from 'mobx-react/native'
//TODO: fix for 0.61
// import RNExitApp from 'react-native-exit-app';
import RNExitApp from 'react-native-exit-app';
import {
MINDS_URI,
......@@ -145,15 +144,14 @@ export default class MoreScreen extends Component {
});
}
//TODO: fix for 0.61
// list.push({
// name: i18n.t('moreScreen.exit'),
// hideChevron: true,
// icon: (<Icon name='close' size={ICON_SIZE} style={ styles.icon } />),
// onPress: () => {
// RNExitApp.exitApp();
// }
// });
list.push({
name: i18n.t('moreScreen.exit'),
hideChevron: true,
icon: (<Icon name='close' size={ICON_SIZE} style={ styles.icon } />),
onPress: () => {
RNExitApp.exitApp();
}
});
return (
<ScrollView style={styles.scrollView}>
......
......@@ -7431,6 +7431,10 @@ react-native-exception-handler@^2.10.8:
resolved "https://registry.yarnpkg.com/react-native-exception-handler/-/react-native-exception-handler-2.10.8.tgz#1a7f846592d888d23adaf797e31802585f1d9ff0"
integrity sha512-ZN+jwpADRkCUNdad/50k0mZdMoICGrGdtaxgvRU+pNcWRRBAXJhuo4+jY0eQaoVpx1ghycGE6tBu9ka8gL2NOQ==
react-native-exit-app@wumke/react-native-exit-app:
version "1.1.0"
resolved "https://codeload.github.com/wumke/react-native-exit-app/tar.gz/f38d15dfa07f8e8799622b2d05d400bb40683edf"
react-native-fast-image@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/react-native-fast-image/-/react-native-fast-image-7.0.2.tgz#e06b21f42f4a9786eaa86f3db35d919070fb8403"
......
Please register or to comment