Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'string' of undefined #91

Open
davidcantonnoteges opened this issue Nov 22, 2017 · 4 comments
Open

Cannot read property 'string' of undefined #91

davidcantonnoteges opened this issue Nov 22, 2017 · 4 comments

Comments

@davidcantonnoteges
Copy link

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 ?

@P-u-r-i-a
Copy link

same problem

@WheelerLee
Copy link

WheelerLee commented Jan 26, 2018

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

@dotCLL
Copy link

dotCLL commented Apr 10, 2018

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

@keith527
Copy link

@WheelerLee Thanks, it solved my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants