-
Book Overview & Buying
-
Table Of Contents
React and React Native - Sixth Edition
By :
The downside of just indicating that progress is being made is that there's no end in sight for the user. This leads to a feeling of unease, like when you're waiting for food to cook in a microwave with no timer. When you know how much progress has been made and how much is left to go, you feel better. That is why it's always better to use a deterministic progress bar whenever possible.
Unlike the ActivityIndicator component, there's no platform-agnostic component in React Native for progress bars. So, we'll use the react-native-paper library for rendering progress bars.
In the past, react-native included ProgressViewIOS and ProgressBarAndroid, but they were removed from the core library as part of size optimization efforts. They were moved to community packages (@react-native-community/progress-view and @react-native-community/progress-bar-android), but those packages are no longer actively maintained. A popular third-party alternative was...