skleest
skleest

Reputation: 737

React native how to force reload the app or the root view

We're building a production react native application but listview memory issues are preventing us from releasing it. Is there a way to force reload the whole app using TimerMixin or onPushReceived? We're using TabbarIOS and Navigator, if those can be taken advantage of to release all views from listview by reloading the whole app. Thank you.

Upvotes: 0

Views: 2409

Answers (2)

Chris Geirman
Chris Geirman

Reputation: 9684

I believe you can this.forceUpdate() within the component

Upvotes: 1

skleest
skleest

Reputation: 737

Temporarily solution for us: Set listview to empty array then re-fetch data upon 1. AppState change to 'background' with timer for 10 minutes 2. Receiving push while AppState is 'background'

Upvotes: 0

Related Questions