mirror of
https://github.com/zhigang1992/react-native-keyboard-manager.git
synced 2026-01-12 17:42:34 +08:00
13
README.md
13
README.md
@@ -30,7 +30,7 @@ This is only for iOS, Android no needed. For Android just add `android:windowSof
|
||||
- for RN 0.47.0 ... 0.52.2, use `react-native-keyboard-manager@4.0.13-5`
|
||||
- for RN 0.40.0 ... 0.46.4, use `react-native-keyboard-manager@4.0.13-1`
|
||||
|
||||
## Install
|
||||
## Install manually
|
||||
|
||||
1. Install dependency package
|
||||
```bash
|
||||
@@ -61,6 +61,17 @@ This is only for iOS, Android no needed. For Android just add `android:windowSof
|
||||
4. In your `index.ios.js` just call `KeyboardManager.setToolbarPreviousNextButtonEnable(true);`.
|
||||
|
||||
|
||||
## Install with cocoapods:
|
||||
|
||||
1. Add this line to your Podfile:
|
||||
```bash
|
||||
pod 'RNKeyboardManager', :path => '../node_modules/react-native-keyboard-manager'
|
||||
```
|
||||
2. run
|
||||
```bash
|
||||
pod install
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
It does not need any library setup to work, just [install](#install) and go.
|
||||
|
||||
20
RNKeyboardManager.podspec
Normal file
20
RNKeyboardManager.podspec
Normal file
@@ -0,0 +1,20 @@
|
||||
require 'json'
|
||||
version = JSON.parse(File.read('package.json'))["version"]
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "RNKeyboardManager"
|
||||
s.version = version
|
||||
s.description = <<-DESC
|
||||
This library allows to prevent issues of keyboard sliding up and cover on React-Native iOS projects
|
||||
DESC
|
||||
s.homepage = "https://github.com/douglasjunior/react-native-keyboard-manager"
|
||||
s.summary = "A <ReactNativeKeyboardManager /> component for react-native"
|
||||
s.license = "MIT"
|
||||
s.authors = "Douglas Nassif Roma Junior"
|
||||
s.source = { :git => "https://github.com/douglasjunior/react-native-keyboard-manager.git", :tag => "v#{s.version}" }
|
||||
s.platform = :ios, "8.0"
|
||||
s.preserve_paths = 'README.md', 'package.json', '*.js'
|
||||
s.source_files = 'ios/ReactNativeKeyboardManager/**/*.{h,m}'
|
||||
s.dependency 'React'
|
||||
s.dependency 'IQKeyboardManager'
|
||||
end
|
||||
Reference in New Issue
Block a user