@sfenton/react-native-readium-with-cfi
Version:
A react-native wrapper for https://readium.org/ with CFI support
17 lines (15 loc) • 499 B
text/typescript
import type { ViewStyle } from 'react-native';
import type { Link } from './Link';
import type { Locator } from './Locator';
import type { File } from './File';
export type BaseReadiumViewProps = {
file: File;
location?: Locator | Link;
preferences?: string; // JSON between native and JS, which we deserialise later
style?: ViewStyle;
onLocationChange?: (locator: Locator) => void;
onTableOfContents?: (toc: Link[] | null) => void;
ref?: any;
height?: number;
width?: number;
};