Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added capability to use CocoaPods #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ If you have pro-guard enabled and are having trouble with your build, apply this
```

## iOS

### Option: Manually
In Xcode, drag both `RCTCustomInputController.xcodeproj` and `KeyboardTrackingView.xcodeproj` from your `node_modules` to the Libraries folder in the Project Navigator, then add `libRCTCustomInputController.a` and `libKeyboardTrackingView.a` to your app target "Linked Frameworks and Libraries".

#### Covering the whold keyboard in predictive mode
Expand All @@ -65,6 +67,15 @@ From Xcode menu:

If necessary, you can take a look at how it is set-up in the demo project.

### Option: With [CocoaPods](https://cocoapods.org/)

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

```
pod 'react-native-keyboard-input', :path => '../node_modules/react-native-keyboard-input'
pod 'react-native-keyboard-tracking-view', :path => '../node_modules/react-native-keyboard-tracking-view'
```


# Usage

Expand Down
18 changes: 18 additions & 0 deletions react-native-keyboard-input.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 = "react-native-keyboard-input"
s.version = version
s.summary = "Keyboard Input for React Native."
s.homepage = "https://github.com/wix/react-native-keyboard-input"
s.license = 'MIT'
s.source = { path: '.' }
s.ios.deployment_target = '9.0'
s.authors = { 'Leo Natan' => '[email protected]' }
s.source_files = 'lib/ios/{LNInterpolation/*,RCTCustomInputController/*}.{h,m,mm}'
s.dependency 'React'
s.dependency 'react-native-keyboard-tracking-view'

end