INNER CODE UNIT · JavaScript

PdfPageView

wonday/react-native-pdf · PdfPageView.js:17

export default class PdfPageView extends PureComponent {
    _getStylePropsProps = () => {
        const {width, height} = this.props;
        if (width || height) {
            return {width, height};
        }
        return {};
    };

    render() {
        const {
            style,
            ...restProps
        } = this.props;
        return (
            <PdfPageViewCustom
                {...restProps}
                style={[style, this._getStylePropsProps()]}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…