rt2zz / react-native-addressbook

React Native AddressBook
82 stars 13 forks source link

Not able to add Contact #5

Closed yogesh-patel closed 9 years ago

yogesh-patel commented 9 years ago

I tried to add contact (as mentioned in example) by using AddressBook.addContact(newPerson, (err) => { console.log("error::::::"+err)}); I am getting error each time. I checked permission , its 'authorized' and 'err' coming in callback is null.

rt2zz commented 9 years ago

woops, should be fixed now in v1.2.0

yogesh-patel commented 9 years ago

Just tried with v1.2.0, still same error I am getting.

rt2zz commented 9 years ago

check out the demo project: https://github.com/rt2zz/react-native-addressbook/blob/master/examples/AddressbookDemo/index.ios.js

there was an error before, but I fixed it, and it is definitely working for me in 1.2.0

yogesh-patel commented 9 years ago

Yes!!! its working.. Thank You :)