In this tutorial, we will be discussing about how to use activity indicator in React Native.
As we had already have HomeContainer.js, we use it as a container component.
Let us create a new file withinsrc/components/home/ folder. We will name it ActivityIndicatorExample.js and this will be our presentational component.
We can use this.state.animating to control activity indicator.
Activity Indicator will close three seconds after component is mounted. This is done using closeActivityIndicator function.
We passed animating property from container and we are using it as a prop of the ActivityIndicator.
On executing the app,a loader will be displayed on screen. This will get disappeared after three seconds.
React Native Related Interview Questions
|Agile Testing Interview Questions||Android Interview Questions|
|IOS Interview Questions||Scrum Interview Questions|
|ReactJS Interview Questions||Agile Scrum Master Interview Questions|
|Agile Ux Designer Interview Questions||Agile Methodology Interview Questions|
|iOS Development with Swift 2 Interview Questions||UI Designer Interview Questions|
React Native Tutorial
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.