DRDD2016 / sparkn2

0 stars 1 forks source link

Accessing address book #39

Closed minaorangina closed 7 years ago

minaorangina commented 7 years ago

Running app on device

heron2014 commented 7 years ago

Our pick is:

minaorangina commented 7 years ago

Setting up React-Native-Contacts (ios)

  1. open xcode
  2. expand project (sparkn2)

screen shot 2016-12-15 at 11 50 37

  1. Right-click Libraries, select Add files to [sparkn2]

screen shot 2016-12-15 at 11 51 11

  1. Navigate to your project's folder > node_modules > react-native-contacts > ios > RCTContacts.xcodeproj
  2. Back in xcode, in the the left-hand navigator, select project folder
  3. In main screen to right, select Build Phases

screen shot 2016-12-15 at 11 53 07

  1. Select Link Binary With Libraries

screen shot 2016-12-15 at 11 53 56

  1. Select + icon

screen shot 2016-12-15 at 11 55 09

  1. select libRCTContacts.a

screen shot 2016-12-15 at 11 55 18

  1. run react-native link in terminal and restart react native server

Permissions

  1. In Xcode left-hand navigator, expand main project > [project folder name] > Info.plist

screen shot 2016-12-15 at 11 58 25

  1. Find the line starting with *Privacy - Location When....

screen shot 2016-12-15 at 11 57 55

  1. Select + icon
  2. Select Privacy - Contacts Usage Description. Value for key isn't required.

screen shot 2016-12-15 at 12 01 33

react-native link

heron2014 commented 7 years ago

Resolved by #45