UNPKG

@sfenton/react-native-readium-with-cfi

Version:

A react-native wrapper for https://readium.org/ with CFI support

8 lines (7 loc) 316 B
import { requireNativeComponent, UIManager } from 'react-native'; import { COMPONENT_NAME, LINKING_ERROR } from '../utils'; export const BaseReadiumView = UIManager.getViewManagerConfig(COMPONENT_NAME) != null ? requireNativeComponent(COMPONENT_NAME) : () => { throw new Error(LINKING_ERROR); };