ldn0x7dc / react-native-media-kit

Video(and audio) component for react-native apps, supporting both iOS and Android. A unified and elegant player controller is provided by default. The API is similar with HTML video.
200 stars 70 forks source link

Element type is invalid #29

Closed openGeeksLab closed 8 years ago

openGeeksLab commented 8 years ago

Hello. I have an error: <Video style={{width: 129, height: 120 / (16/9)}} src={'http://v.yoai.com/femme_tampon_tutorial.mp4'} autoplay={true} preload={'none'} loop={false} controls={true} muted={false} poster={'http://static.yoaicdn.com/shoppc/images/cover_img_e1e9e6b.jpg'}/>

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of Controls.

"react": "^0.14.7", "react-native": "^0.29.1" Thank you.

openGeeksLab commented 8 years ago

in Control.js replace <ActivityIndicator color={'#f2f2f2'} size={'large'}/>