Skip to main content

ActivityIndicator

Show that work is in progress when you do not have a completion percentage.

ActivityIndicator in a native Kindle example

Usage​

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

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

export default function App() {
return (
<View style={{padding: 24}}>
<ActivityIndicator label="Loading books" />
</View>
);
}

Props​

PropType / defaultDescription
animatingboolean = trueFalse removes the indicator.
sizepositive number = 116Width and height.
labelstringText below the spinner.
smoothboolean = falseNative smooth animation mode.
frameIntervalpositive number = 250Milliseconds between frames; smooth mode has a 450 ms minimum.
styleView styleOuter layout.

Unmounting stops the native animation. The screenshot shows one frame.