From d31c4bafc81a1946622e7002ab898527e6b3c71f Mon Sep 17 00:00:00 2001 From: Stephen Kopylov Date: Wed, 18 Apr 2018 17:35:51 +0300 Subject: [PATCH 1/3] Podspec added --- RNKeyboardManager.podspec | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 RNKeyboardManager.podspec diff --git a/RNKeyboardManager.podspec b/RNKeyboardManager.podspec new file mode 100644 index 0000000..1246d29 --- /dev/null +++ b/RNKeyboardManager.podspec @@ -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 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 \ No newline at end of file From 14343b0d19904cfa2a3c956aa926949fd1fbaec9 Mon Sep 17 00:00:00 2001 From: Stephen Kopylov Date: Wed, 18 Apr 2018 18:21:45 +0300 Subject: [PATCH 2/3] Readme fixed --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b093ef..1835cea 100644 --- a/README.md +++ b/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. From 4ce6e367513cd821c79c7d5a32257acfe7bd925d Mon Sep 17 00:00:00 2001 From: Stephen Date: Wed, 18 Apr 2018 18:22:51 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1835cea..c3effac 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,11 @@ This is only for iOS, Android no needed. For Android just add `android:windowSof 1. Add this line to your Podfile: ```bash -pod 'RNKeyboardManager', :path => '../node_modules/react-native-keyboard-manager' + pod 'RNKeyboardManager', :path => '../node_modules/react-native-keyboard-manager' ``` 2. run ```bash -pod install + pod install ``` ## Use