Skip to main content

ProgressBar

Show completion as a percentage. Use ActivityIndicator when the total is unknown.

ProgressBar in a native Kindle example

Usage​

Save this example as apps/Reader/App.js in the starter app.

import React from 'react';
import {ProgressBar, Text, View} from 'react-kindle';

export default function App() {
return (
<View style={{padding: 24}}>
<Text>65% complete</Text>
<ProgressBar value={65} style={{width: '100%'}} />
</View>
);
}

Props​

PropType / defaultDescription
valuenumber = 0Finite percentage, clamped to 0–100.
styleView styleDefaults to 278 × 28 with a one-unit border.