React-native-youtube: Example broken

Created on 15 Jun 2016  路  2Comments  路  Source: davidohayon669/react-native-youtube

Hi,

I just checked out the repo and tried to run through the example.
The first npm install finishes OK.
But when I open the Xcode project and try to run it webserver complains about missing dependencies.
So I tried npm install again and I got bunch of compilation errors the second time around.

Here are the first few errors:

CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:15:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {
^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
^

Any idea on how I can fix this?
Thank you.

Most helpful comment

Cannot build example!!
image
Please help

All 2 comments

Cannot build example!!
image
Please help

Should this still work with RN 0.28? I'm getting a render error when adding the YouTube component. It used to work fine.

"Element type is invalid expected a string (for built-in components) or a class/function. Check the render method of ..."

EDIT: Never mind, changing ...

var YouTube = require('react-native-youtube');

to ...

import YouTube from 'react-native-youtube';

... fixed it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RetroPronghorn picture RetroPronghorn  路  3Comments

nhcuong95 picture nhcuong95  路  5Comments

johnnykoo84 picture johnnykoo84  路  4Comments

berdof picture berdof  路  4Comments

jokopurnomoa picture jokopurnomoa  路  5Comments