Skip to content

Commit

Permalink
Downgrade to IQKeyboardManager 6.5.16 due to problems with version 7.…
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-genie committed May 6, 2024
1 parent d555440 commit 62b4666
Show file tree
Hide file tree
Showing 35 changed files with 7,303 additions and 6,835 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
extends: '@react-native',
};
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
36 changes: 15 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,36 @@ This is only for iOS, Android no needed. For Android just add `android:windowSof

## NOTES:

- for RN 0.60.0 or later use `react-native-keyboard-manager@latest`
- for RN 0.72.0 or later use `react-native-keyboard-manager@latest`
- for RN 0.60.0 ... 0.71.X, use `react-native-keyboard-manager@6.5.11-2`
- for RN 0.53.0 ... 0.59.10, use `react-native-keyboard-manager@4.0.13-12`
- 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

```bash
1. Install the JavaScript dependency:

```sh
yarn add react-native-keyboard-manager
```
Or
```bash
```sh
npm i -S react-native-keyboard-manager
```

## Auto linking

If you are using `React Native 0.60.+` go to the folder **your-project/ios** and run `pod install`, and you're done.

If not, use one of the following methods to link.
2. Add the CocoaPods dependency to your `ios/Podfile`:

## Link with `react-native link`:

React native link is no longer supported due to cocoapods dependency. To avoid cocoapods you can use the version `4.0.13-X`.
```ruby
pod 'IQKeyboardManagerSwift', :git => 'https://github.com/douglasjunior/IQKeyboardManager.git', :branch => 'react-native-keyboard-manager'
```

## Link manual with cocoapods:
3. Run the CocoaPods installation:

1. Add this line to your Podfile
```bash
pod 'ReactNativeKeyboardManager', :path => '../node_modules/react-native-keyboard-manager'
```

2. run
```bash
pod install
```
```sh
cd ios
pod install
```

## Post install

Expand Down
4 changes: 2 additions & 2 deletions ReactNativeKeyboardManager.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'json'
packageJson = JSON.parse(File.read('package.json'))
version = packageJson["version"]
repository = packageJson["repository"]["url"]
iqVersion = version.split('-').first
# iqVersion = version.split('-').first

Pod::Spec.new do |s|
s.name = "ReactNativeKeyboardManager"
Expand All @@ -20,5 +20,5 @@ Pod::Spec.new do |s|

s.dependency 'React-Core'
s.dependency 'React-RCTText'
s.dependency 'IQKeyboardManagerSwift', iqVersion
# s.dependency 'IQKeyboardManagerSwift', iqVersion
end
6 changes: 0 additions & 6 deletions Sample/.buckconfig

This file was deleted.

14 changes: 1 addition & 13 deletions Sample/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
},
},
],
extends: '@react-native',
};
33 changes: 23 additions & 10 deletions Sample/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
**/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -29,33 +30,45 @@ build/
local.properties
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
**/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# testing
/coverage

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 1 addition & 1 deletion Sample/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
198 changes: 0 additions & 198 deletions Sample/App.tsx

This file was deleted.

Loading

0 comments on commit 62b4666

Please sign in to comment.