Skip to main content

Divider

Separate adjacent sections with a line.

Divider in a native Kindle example

Usage​

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

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

export default function App() {
return (
<View style={{padding: 24}}>
<Text>Library</Text>
<Divider style={{marginVertical: 16}} />
<Text>Settings</Text>
</View>
);
}

Props​

PropType / defaultDescription
verticalboolean = falseDraw vertically.
thicknesspositive number = 1Line thickness.
lengthnumber or percentage = 100%Line length.
colorstring = #AAAAAALine color.
patternstring = noneNative drawing pattern.
styleView stylePlacement.