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

Error throwing on Answers call #4

Closed
kevando opened this issue Jan 31, 2016 · 8 comments
Closed

Error throwing on Answers call #4

kevando opened this issue Jan 31, 2016 · 8 comments

Comments

@kevando
Copy link

kevando commented Jan 31, 2016

I'm very excited to get this module working in my project.

However, I load in the Answers code exactly as you have:

var Fabric = require('react-native-fabric');
var { Answers } = Fabric;
Answers.logCustom('Performed a custom event', { bigData: true });

And I am getting this error

I have only js experience, so not sure where to begin debugging this. Any help is appreciated. thanks!

@corymsmith
Copy link
Owner

Are you certain that you have the native files added to your project? Unfortunately I broke my arm just below the shoulder a few days ago so I'm fairly useless at the moment and can't help too much

@twalling
Copy link

I'm getting the same error, even after having dragged over the ReactNativeFabric folder to my libraries group.

@corymsmith
Copy link
Owner

Strange, wondering if its picking up the native module correctly.

Can you test this and see what it prints out?

var { NativeModules, Platform } = require('react-native');
var SMXAnswers = NativeModules.SMXAnswers;
console.log('SMXAnswers');
console.log(SMXAnswers);
console.log('-----------------');
`

@twalling
Copy link

I'll give it a try and report back.

@twalling
Copy link

I get undefined, which is what I was expecting. I dragged in the ReactNativeFabric folder as shown here in a screenshot.
library panel

@twalling
Copy link

That seemed to do the job, thanks.

On Sat, Feb 20, 2016 at 11:46 AM, Sercan Demircan notifications@github.com
wrote:

@twalling https://github.com/twalling can you please try with select
the contents of ReactNativeFabric folder and drag them into [PROJECT_NAME]
folder? They should be in the same directory with AppDelegate. It worked
for me.


Reply to this email directly or view it on GitHub
#4 (comment)
.

@corymsmith
Copy link
Owner

I'm guessing those files weren't properly added to the Compile Sources build phase when they were first included

@corymsmith
Copy link
Owner

@kevando This still an issue? If so can you try making sure that the .m files are in the Compile Sources build phase, and if not add them?

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

3 participants