react-native-audio-streaming icon indicating copy to clipboard operation
react-native-audio-streaming copied to clipboard

[Android] Import not working

Open browncj opened this issue 9 years ago • 1 comments

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?

browncj avatar Nov 24 '17 07:11 browncj

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 };

marinsokol avatar Dec 02 '17 16:12 marinsokol