GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing docs.nativebase.io — Progress | NativeBase | Universal Components for React and React Native

Progress | NativeBase | Universal Components for React and React Native

NativeBase
3.4.x
🎉 Prompt to React Native UI
→
Search
⌘
K
Hire us
NativeBase
Introduction
Getting Started
Installation
Setup NativeBase Provider
Migration
Upgrading to v3
Upgrading to 3.2.0 from 3.x
Upgrading to 3.4.0 from 3.3.x
Components Migration
ActionSheet
Badge
Button
Card
Checkbox
DatePicker
DeckSwiper
Drawer
FABs
FooterTab
Form
Header
Icon
Layout
Picker
Radio Button
Searchbar
Segment
Spinner
SwipeList
Tabs
Thumbnail
Toast
Typography
Resources
Contribution
Creating a Universal App with NativeBase and Solito
Core Concepts
Utility First
Utility Props Specificity
Design Tokens
Pseudo Props: Overview
Pseudo Props: Dos & Don'ts
Internal Pseudo Props
Responsive
Features
Utility Props
Color mode (Dark Mode)
NativeBase Factory
SafeAreaView Props
Strict Mode
Accessibility
Theme
Default Theme
Customizing Theme
Customizing Fonts
Customizing Components
Making components dark mode compatible
Breakpoints
Using Theme
TypeScript
Layout
AspectRatio
Box
Center
Container
Flex
HStack / Row
Stack
VStack / Column
ZStack
Forms
Button
Pressable
Checkbox
FormControl
IconButton
Input
Link
Radio
Select
Slider
Switch
TextArea
Data Display
Badge
Divider
Feedback
Alert
Progress
Skeleton
Spinner
Toast
Typography
Text
Heading
Overlay
AlertDialog
Menu
Modal
Popover
Tooltip
Disclosure
ActionSheet
Media and Icons
Avatar
Icon
Image
Transition
PresenceTransition
Slide
Stagger
Others
Fab
Hidden
ReactNative Components
ScrollView
View
KeyboardAvoidingView
StatusBar
FlatList
SectionList
Hooks
useDisclose
useBreakpointValue
useClipboard
useMediaQuery
useTheme
useToken
useColorMode
useColorModeValue
useContrastText
useAccessibleColors
Examples
Todo-List
Kitchen Sink
Recipes
Designs
AppBar
Card
Drawer Navigation
Tab View
Swipe List
Forms
Form with Validation
Login/Signup Forms
SearchBar
Layout
App Drawer
Footer
More
Changelog
Testing
FAQ's
More Props
If you are starting a new project, please try gluestack-ui for better performance and new design.
Progress
Progress helps show the progress status for a time-consuming task that consists of several steps.
Show Code
Playground
const Example = () => {
return <Box w="100%">
<Progress w="300" shadow={2} value={45} mx="4" />
</Box>;
};
Import
Copy
import { Progress } from 'native-base';
Examples
Basic
Playground
const Example = () => {
return <Center w="100%">
<Box w="90%" maxW="400">
<Progress value={45} mx="4" />
</Box>
</Center>;
};
Progress colorScheme
Playground
const Example = () => {
return <Center w="100%">
<Box w="90%" maxW="400">
<VStack space="md">
<VStack mx="4" space="md">
<Progress colorScheme="primary" value={35} />
<Progress colorScheme="secondary" value={45} />
<Progress colorScheme="emerald" value={55} />
<Progress colorScheme="warning" value={65} />
<Progress colorScheme="light" value={75} />
</VStack>
</VStack>
</Box>
</Center>;
};
Sizes
Playground
const Example = () => {
return <Center w="100%">
<Box w="90%" maxW="400">
<VStack space="md">
<VStack mx="4" space="md">
<Progress size="xs" mb={4} value={25} />
<Progress size="sm" mb={4} value={35} />
<Progress size="md" mb={4} value={45} />
<Progress size="lg" mb={4} value={55} />
<Progress size="xl" mb={4} value={65} />
<Progress size="2xl" mb={4} value={75} />
</VStack>
</VStack>
</Box>
</Center>;
};
Flat Progress
Playground
const Example = () => {
return <Center w="100%">
<Box w="90%" maxW="400">
<Progress rounded="0" value={65} mx="4" />
</Box>
</Center>;
};
Custom Track Color
Playground
const Example = () => {
return <Center w="100%">
<Box w="90%" maxW="400">
<Progress bg="coolGray.100" _filledTrack={{
bg: "lime.500"
}} value={75} mx="4" />
</Box>
</Center>;
};
Props
Progress implements
View
,
SafeAreaProps
,
PlatformProps
,
FlexProps
,
ColorProps
,
LayoutProps
,
BorderProps
,
TypographyProps
,
ShadowProps
,
PositionProps
value
Value of Progress.
Type: number
Default: 0
size
Defines height of Progress
Type: ThemeComponentSizeType<"Progress">
Default: sm
colorScheme
The color scheme of the progress. This should be one of the color keys in the theme (e.g."green", "red").
Type: ColorSchemeType
Default: primary
_filledTrack
Pseudo prop to give Prop to filled track
Type: InterfaceBoxProps<IProgressProps>
min
Min progress value
Type: number
Default: 0
max
Max progress value
Type: number
Default: 100
Styling
NativeBase ships with a default theme for each component. Check out the default theme of the progress
here
.
Info: We can easily extend the progress component theme using extendTheme function as described in the documentation
here
.
Accessibility
Adheres to the progressbar
role requirements.
On web, aria-valuenow, aria-valuemin and aria-valuemax is used to ensure the progress percent is visible to screen readers.
On mobile,
accessibilityValue
is used to ensure it is announced by Talkback and VoiceOver.
Previous
Alert
Next
Skeleton
Quick Nav
Import
Examples
Basic
Progress colorScheme
Sizes
Flat Progress
Custom Track Color
Props
Styling
Accessibility
MadeWithNativeBase
gluestack-ui
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.