Skip to main content

BTDeviceInstruction

BTDeviceInstruction wraps PDFViewer and selects a manual from the SDK's DEVICE_INSTRUCTION_PDFS table using an IntegratedDevices key.

import { IntegratedDevices } from "@ovok/native/bt-management";
import { BTDeviceInstruction } from "@ovok/native/bt-device-instructions";

<BTDeviceInstruction
deviceType={IntegratedDevices.BP2}
style={{ flex: 1 }}
onError={(error) => console.warn("manual unavailable", error)}
/>

Props​

type BTDeviceInstructionProps = Omit<PDFViewerProps, "sourceURI"> & {
deviceType: IntegratedDevices;
};

All PDFViewerProps other than sourceURI are forwarded. If no URL is configured for the enum member, the component calls onError with an error whose message starts with Device instruction pdf not found for and passes an empty string to the viewer. The PDF viewer can remain loading, so the app should render its own fallback or link to a manufacturer manual for a custom declaration.

DEVICE_INSTRUCTION_PDFS is a package constant intended for the SDK's built-in mapping. It is not a configuration hook for replacing a custom app's manuals.