Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions RCTContactsWrapper.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'json'
version = JSON.parse(File.read('package.json'))["version"]

Pod::Spec.new do |s|

s.name = "RCTContactsWrapper"
s.version = version
s.summary = "![alt tag](https://github.com/LynxITDigital/Screenshots/blob/master/RN%20Contacts%20Wrapper%20example.gif)."
s.homepage = "https://github.com/LynxITDigital/react-native-contacts-wrapper"
s.license = "MIT"
s.author = "LynxIT Digital"
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/LynxITDigital/react-native-contacts-wrapper.git", :tag => "v#{s.version}" }
s.source_files = 'RCTContactsWrapper/**/*.{h,m}'
s.preserve_paths = "**/*.js"
s.dependency 'React'

end
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Also add

#### iOS

##### Manual
1. Open your xCode project
2. Click project name in project navigator
3. Select the main target in the left hand menu
Expand All @@ -82,7 +83,17 @@ Also add
8. This will now appear in project explorer, drag in under the Libraries group.
9. In same screen, click + again, you should now see the .a file for you project, Add this
10. Clean and Rebuild your Xcode project
##### With [CocoaPods](https://cocoapods.org/)

Add the following to your `Podfile` and run `pod update`:

```
pod 'RCTContactsWrapper', :path => '../node_modules/react-native-contacts-wrapper'
```

Edit `Info.plist` as described above.

If you are using `use_frameworks!` in your `Podfile` you instead need to dynamically load the icon font by doing `Icon.loadFont()` when boostrapping your application.

##API

Expand Down