react-native-pdf-view icon indicating copy to clipboard operation
react-native-pdf-view copied to clipboard

Cannot read property 'string' of undefined

Open davidcantonnoteges opened this issue 8 years ago • 4 comments
trafficstars

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 ?

davidcantonnoteges avatar Nov 22 '17 12:11 davidcantonnoteges

same problem

P-u-r-i-a avatar Dec 26 '17 20:12 P-u-r-i-a

import React,{ Component, PropTypes } from 'react'; =====> import React,{ Component } from 'react'; import PropTypes from 'prop-types';

WheelerLee avatar Jan 26 '18 06:01 WheelerLee

@WheelerLee's solution fixed it for me. File is sitting in /node_modules/react-native-pdf-view/PDFView.android.js

dotCLL avatar Apr 10 '18 07:04 dotCLL

@WheelerLee Thanks, it solved my problem.

keith527 avatar May 11 '18 06:05 keith527