Responsive Navigation Cache Component

I am new to ReactNative and a bit confused about the following. I installed StackNavigator as shown

const MyProjectNavigator = StackNavigator({
  home: {screen: Other},
  latest_news: {screen: LatestNews}
}

When I want to switch to another screen, navigation, I do the following:

navigate(
      latest_news, {
        otherParams : param1
      }
    ); 

It works well so far.

Now suppose that the last_news component requests a large amount of data from the server when it is installed, then it performs many operations on this data, sorting by date, author, yadda yadda. It will take some time.

, ? , iOS ViewController , , . () , , .

* TL; DR

, , . , .

, .

+4

Source: https://habr.com/ru/post/1681261/


All Articles