concept loading state in category react native

appears as: loading state, loading state
React Native in Action

This is an excerpt from Manning's book React Native in Action.

Now, use interpolation to create the loading indicator. You’ll show the indicator when the application loads; in componentDidMount, you’ll call setTimeout, which cancels the loading state after 2,000 milliseconds (see figure 7.3). The icon used here is located at https://github.com/dabit3/react-native-in-action/blob/chapter7/assets/35633-200.png; feel free to use it or any other image you want.

With all the methods set up, the last thing to do is implement the UI in the render method. In People.js, you’ll introduce a new component called the ActivityIndicator: a cross-platform circular loading indicator that will indicate the loading state (you can see a list of properties in table 12.1). After the filter method, add the render method as shown next.