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

NativeProps on iOs #58

Closed
zaynyatyi opened this issue Jun 15, 2016 · 7 comments
Closed

NativeProps on iOs #58

zaynyatyi opened this issue Jun 15, 2016 · 7 comments

Comments

@zaynyatyi
Copy link

Trying to run it on ios and getting undefined is not an object
img_0016

Tried to use same createNativeComponent as for android but got only red borders there, without content.

@magicismight
Copy link
Collaborator

Please make sure the library has linked into your project.

@magicismight
Copy link
Collaborator

It seems like you didnt run rnpm link react-native-svg`

@zaynyatyi
Copy link
Author

I ran it, but there were no libRNSVG.a and i removed it. Could that be a reason? Where should i get that lib?

@magicismight
Copy link
Collaborator

That is the reason.
You can add libRNSVG.a and try again.

@zaynyatyi
Copy link
Author

zaynyatyi commented Jun 16, 2016

It's weird, i can see lib in Product, but when i'm linking into my project there is no tree in there. Do you know what can cause it?
2016-06-16 10 08 35

@magicismight
Copy link
Collaborator

Try to reinstall it

rm -rf node_modules/
npm i react-native-svg --save
rnpm link react-native-svg

@zaynyatyi
Copy link
Author

That worked, thanks

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