Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.
Merged
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: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For more information about **CallKit**, please see [Official CallKit Framework D

Use version >= **1.1.0** if you're using react native >= 0.40

## Installation
## Installation (without CocoaPods)

### NPM module

Expand All @@ -27,6 +27,22 @@ npm install --save react-native-callkit
rnpm link react-native-callkit
```

## Installation (with CocoaPods)

### NPM module

```bash
npm install --save react-native-callkit
```

### CocaPods
```bash
cd ios
pod install
```

## Installation common steps

### Add Frameworks

In `Xcode` -> `Build Phases` -> `Link Binary With Libraries`, add `CallKit.framework` and `Intents.framework` with `Optional` status
Expand Down
18 changes: 18 additions & 0 deletions RNCallKit.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = "RNCallKit"
s.version = package['version']
s.summary = package['description']
s.homepage = package['homepage]
s.license = package['license']
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => "v#{s.version}" }
s.requires_arc = true
s.platform = :ios, "8.0"
s.source_files = "ios/RNCallKit/*.{h,m}"
s.dependency 'React/Core'
end