-
Notifications
You must be signed in to change notification settings - Fork 76
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
Unable to load native module #37
Comments
Hi @blargity Thank you for using the repo 😄 and for the very comprehensive bug description. I made the .xcodeproj file around 2 years ago and until this commit (16def72) 19 days ago, the readme instructions were different. I was not aware of the new instructions demanded an update to .xcodeproj If you want to make a PR, it would be amazing! Thank you again. |
@doefler what is the fix needed here? We're stuck with a broken share in our app because of this. |
@blargity is this PR happening? Just tried this thing out but can't get it to work. :) |
@dwilt I managed to get it to work by
then open xCode and
After that, this example should work
|
@blargity do you still have this problem? |
We ended up shipping without using |
How would you do this if you used the create-react-native-app and expo? It doesn't have a xcode project file. |
@candytrickster you probably have to eject. |
This is on iOS, React Native v0.41.2, using react-native-social-share v1.0.0.
I'm trying to use this module to share directly to Twitter. I keep getting, "undefined is not an object (evaluating 'KDSocialShare.tweet')
I dug into it a bit more, and it looks like react-native-social-share.js is assuming it's able to load the native module. So I was curious why the native module wasn't loading.
I looked in the .xcodeproj file that came down with the module, and it doesn't have a library target like the other react native modules that I'm using have:
Which means in the Link Library with Binaries phase, there's no .a file to link to, which would mean that the class never gets built into the app.
I can create this target and add it to the project then PR it back in, but I'm wondering why it's not there to begin with and how everyone else is getting this to work.
I installed this by following the instructions in the readme (e.g.
react-native link
)Can anyone shed some light?
The text was updated successfully, but these errors were encountered: