From 23a1535d90c315971b33e62691f8631c6b39fe6c Mon Sep 17 00:00:00 2001 From: "Andrew W. Hill" Date: Thu, 4 Apr 2019 11:49:53 -0700 Subject: [PATCH] fixes setup as a service3 (#1012) --- App/Containers/App.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/App/Containers/App.tsx b/App/Containers/App.tsx index 82f47ec16..793b97ad3 100644 --- a/App/Containers/App.tsx +++ b/App/Containers/App.tsx @@ -6,7 +6,6 @@ import { PersistGate } from 'redux-persist/integration/react' import RootContainer from './RootContainer' import configureStore from '../Redux/configureStore' import { useScreens } from 'react-native-screens' -import LocationEventHandler from '../Services/EventHandlers/LocationEventHandler' import TextileNodeEventHandler from '../Services/EventHandlers/TextileNodeEventHandler' import UploadEventHandler from '../Services/EventHandlers/UploadEventHandler' import DeepLinkEventHandler from '../Services/EventHandlers/DeepLinkEventHandler' @@ -27,7 +26,6 @@ class App extends Component { textileNodeEventHandler = new TextileNodeEventHandler(store) uploadEventHandler = new UploadEventHandler(store) deepLinkEventHandler = new DeepLinkEventHandler(store) - backgroundLocationEventHandler = new LocationEventHandler(store) textile = Textile render () { @@ -39,14 +37,6 @@ class App extends Component { ) } - - componentDidMount () { - // Allows restore of persisted data (preferences) before running location setup - setTimeout(() => { - this.backgroundLocationEventHandler.setup() - }, 10) - } - componentWillMount () { this.textile.setup( { @@ -69,7 +59,6 @@ class App extends Component { this.uploadEventHandler.tearDown() this.deepLinkEventHandler.tearDown() this.backgroundFetchEventHandler.tearDown() - this.backgroundLocationEventHandler.tearDown() this.textile.tearDown() }