React NativeScript

React NativeScript

  • Docs

›ELEMENTS: COMPONENTS

INTRODUCTION

  • Introduction

GETTING STARTED

  • Quick Start
  • Environment Setup
  • Using React Devtools

CORE CONCEPTS

  • Native Access
  • Navigation
  • Node Roles
  • Modals
  • Plugins
  • Styling

SAMPLES

  • Apps

ELEMENTS: LAYOUT

  • AbsoluteLayout
  • DockLayout
  • FlexboxLayout
  • GridLayout
  • StackLayout
  • WrapLayout

ELEMENTS: COMPONENTS

  • ActivityIndicator
  • ActionBar
  • ActionItem
  • Button
  • DatePicker
  • Frame
  • HtmlView
  • Image
  • Label
  • ListView
  • ListPicker
  • NavigationButton
  • Page
  • Placeholder
  • Progress
  • ScrollView
  • SearchBar
  • SegmentedBar
  • Slider
  • Switch
  • TabView
  • TabViewItem
  • TextField
  • TextView
  • TimePicker
  • WebView

LICENCES

  • Licences
Edit

Progress

<progress> is a UI component that shows a bar to indicate the progress of a task.

See also:

  • Official top-level documentation
  • Detailed API specification
  • <activityIndicator>

import * as React from "react";

function getTaskCompletionPercent(){
    // Just a stub method to illustrate the concept.
    return 10;
}

<progress value={getTaskCompletionPercent()} maxValue={100} />

Props

NameTypeDescription
valuenumberSets the current value of the progress bar. Must be within the range of 0 to maxValue.
maxValuenumberSets the maximum value of the progress bar.
Default value: 100.

Native Component

AndroidiOS
android.widget.ProgressBar (indeterminate = false)UIProgressView
Last updated by Jamie Birch
← PlaceholderScrollView →
  • Props
  • Native Component
React NativeScript
Docs
Getting StartedUI Components Reference
Community
Stack OverflowChat on Slack in #reactTwitter
More
GitHub – React NativeScriptGitHub – Docs Site
Copyright © 2021 Jamie Birch