O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating App.js with ProgressViewIOS

When planning this app in the last chapter, we wrote that this list should also prominently display the user's set budget for the month along with a progress indicator showing how close they are to hitting their budget.

Using ProgressViewIOS, we can depict our user's progress toward their monthly limit. The following props will be used in this project:

  • progress: This is a number between 0 and 1 that tracks the value of the progress bar
  • progressTintColor: This is a string that sets the color of the progress bar

You can render a ProgressViewIOS component like this:

<View>   <ProgressViewIOS     progress={ 0.75 }     progressTintColor={ '#86B2CA' }   /> </View> 

In this section, we should update Expenses to do ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required