Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Cannot read property 'getAll' of undefined #2

Closed
eyaleizenberg opened this issue Jul 9, 2015 · 3 comments
Closed

Cannot read property 'getAll' of undefined #2

eyaleizenberg opened this issue Jul 9, 2015 · 3 comments

Comments

@eyaleizenberg
Copy link

Hi,
I am faced with the same issue as this: facebook/react-native#1274

This is roughly my code:
var CookieManager = require('react-native-cookies');
CookieManager.getAll((err, res) => {
console.log('cookies!');
console.log(err);
console.log(res);
});

The cookie manager is defined, and so is the getAll method.

Someone suggested that maybe the files where not properly added to the xcode project. Do I need to "add files to.." the most top level name of the app (the one that states the sdk under it) or to the folder which has the same app name?

Thanks!

@joeferraro
Copy link
Owner

@eyaleizenberg the folder which has the same app name. Ensure Copy items if needed and Create groups are checked.

@eyaleizenberg
Copy link
Author

@joeferraro Cool that worked. You should really update the read me for this.

Thanks! 😄

@joeferraro
Copy link
Owner

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants