react-native-pdf-view
react-native-pdf-view copied to clipboard
Cannot read property 'string' of undefined
Hi, i get an error on line 30 of PDFView.android.js:
in the code:
PDFView.propTypes = { ...View.propTypes, asset: PropTypes.string, src: PropTypes.string, pageNumber: PropTypes.number, path: PropTypes.string, zoom: PropTypes.number, onLoadComplete: PropTypes.func };
Line 30 is asset: PropTypes.string
Another people with this issue ?
same problem
import React,{ Component, PropTypes } from 'react';
=====>
import React,{ Component } from 'react'; import PropTypes from 'prop-types';
@WheelerLee's solution fixed it for me. File is sitting in /node_modules/react-native-pdf-view/PDFView.android.js
@WheelerLee Thanks, it solved my problem.