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

[Android] Import not working #127

Open
browncj opened this issue Nov 24, 2017 · 1 comment
Open

[Android] Import not working #127

browncj opened this issue Nov 24, 2017 · 1 comment

Comments

@browncj
Copy link

browncj commented Nov 24, 2017

Hi,

I managed to get the library saved and installed, as well as built. But I get the error "Cannot read property 'string' of undefined" whenever I add the line

import {Player} from 'react-native-audio-streaming';

to my source file.

android

Any idea what the issue may be?

@marinsokol
Copy link

I think that problem is version of PropTypes used by this repo. This repo is using PropTypes from React, but PropTypes are moved to prop-types npm package. You can see it by going to index.js of repo and you will find this:
Player.propTypes = { url: React.PropTypes.string.isRequired };

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

2 participants