Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
fixes setup as a service3 (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewxhill authored Apr 4, 2019
1 parent b1c67d8 commit 23a1535
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions App/Containers/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 () {
Expand All @@ -39,14 +37,6 @@ class App extends Component {
</Provider>
)
}

componentDidMount () {
// Allows restore of persisted data (preferences) before running location setup
setTimeout(() => {
this.backgroundLocationEventHandler.setup()
}, 10)
}

componentWillMount () {
this.textile.setup(
{
Expand All @@ -69,7 +59,6 @@ class App extends Component {
this.uploadEventHandler.tearDown()
this.deepLinkEventHandler.tearDown()
this.backgroundFetchEventHandler.tearDown()
this.backgroundLocationEventHandler.tearDown()
this.textile.tearDown()
}

Expand Down

0 comments on commit 23a1535

Please sign in to comment.