Skip to main content

KindleProvider

Provide firmware styling, window metrics, and capability checks to a component tree. The generated app entry installs this provider automatically.

Usage​

This example wraps content inside an existing KPP application. Generated apps already have a provider.

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

export default function App() {
return (
<KindleProvider firmware="5.19.6" applicationId="com.lab126.Reader" fontScale={1}>
<View style={{padding: 24}}><Text>Reader</Text></View>
</KindleProvider>
);
}

Props​

PropType / defaultDescription
firmwarestringTarget firmware release.
applicationIdstringLauncher application identity.
presentationclassic / unifiedOverride the firmware styling profile.
fontScalepositive numberOverride the runtime window font scale.
windowMetricsobjectOverride runtime window metrics.
chromeobjectChrome controller supplied by registration.
childrenReact nodesComponent subtree.

Use a manual provider only when embedding components in an existing KPP application. It does not register an app or create a native window. For standalone apps, use the generated entry or registerApplication. This provider has no visible surface.