|
43 | 43 | npm i -S react-native-keyboard-manager |
44 | 44 | ``` |
45 | 45 |
|
46 | | -## Auto linking |
47 | | - |
48 | | -If you are using `React Native 0.60.+` go to the folder **your-project/ios** and run `pod install`, and you're done. |
49 | | - |
50 | | -If not, use one of the following methods to link. |
51 | | - |
52 | | -## Link with `react-native link`: |
53 | | - |
54 | | -React native link is no longer supported due to cocoapods dependency. To avoid cocoapods you can use the version `4.0.13-X`. |
55 | | - |
56 | | -## Link manual with cocoapods: |
57 | | - |
58 | | -1. Add this line to your Podfile |
59 | | - ```bash |
60 | | - pod 'ReactNativeKeyboardManager', :path => '../node_modules/react-native-keyboard-manager' |
61 | | - ``` |
62 | | - |
63 | | -2. run |
64 | | - ```bash |
65 | | - pod install |
66 | | - ``` |
| 46 | +Go to the folder **your-project/ios** and run `pod install`, and you're done. |
67 | 47 |
|
68 | 48 | ## Post install |
69 | 49 |
|
@@ -91,25 +71,23 @@ if (Platform.OS === 'ios') { |
91 | 71 | KeyboardManager.setKeyboardDistanceFromTextField(10); |
92 | 72 | KeyboardManager.setLayoutIfNeededOnUpdate(true); |
93 | 73 | KeyboardManager.setEnableAutoToolbar(true); |
| 74 | + KeyboardManager.setToolbarUseTextFieldTintColor('#FF00FF'); |
94 | 75 | KeyboardManager.setToolbarDoneBarButtonItemText("Done"); |
95 | | - KeyboardManager.setToolbarManageBehaviourBy("subviews"); // "subviews" | "tag" | "position" |
| 76 | + KeyboardManager.setToolbarManageBehavior("subviews"); // "subviews" | "tag" | "position" |
96 | 77 | KeyboardManager.setToolbarPreviousNextButtonEnable(false); |
97 | 78 | KeyboardManager.setToolbarTintColor('#0000FF'); // Only #000000 format is supported |
98 | 79 | KeyboardManager.setToolbarBarTintColor('#FFFFFF'); // Only #000000 format is supported |
99 | | - KeyboardManager.setShouldShowToolbarPlaceholder(true); |
100 | | - KeyboardManager.setOverrideKeyboardAppearance(false); |
| 80 | + KeyboardManager.setToolbarShowPlaceholder(true); |
| 81 | + KeyboardManager.setKeyboardOverrideAppearance(false); |
101 | 82 | KeyboardManager.setKeyboardAppearance("default"); // "default" | "light" | "dark" |
102 | | - KeyboardManager.setShouldResignOnTouchOutside(true); |
| 83 | + KeyboardManager.setResignOnTouchOutside(true); |
103 | 84 | KeyboardManager.setShouldPlayInputClicks(true); |
104 | 85 | KeyboardManager.resignFirstResponder(); |
105 | | - KeyboardManager.isKeyboardShowing() |
106 | | - .then((isShowing) => { |
107 | | - // ... |
108 | | - }); |
| 86 | + KeyboardManager.reloadLayoutIfNeeded(); |
109 | 87 | } |
110 | 88 | ``` |
111 | 89 |
|
112 | | -For more details, see the [Sample Project](https://github.com/douglasjunior/react-native-keyboard-manager/blob/master/Sample/App.tsx) and the official [IQKeyboardManager documentation](https://github.com/hackiftekhar/IQKeyboardManager/tree/v6.5.4). |
| 90 | +For more details, see the [Sample Project](https://github.com/douglasjunior/react-native-keyboard-manager/blob/master/Sample/App.tsx) and the official [IQKeyboardManager documentation](https://github.com/hackiftekhar/IQKeyboardManager/). |
113 | 91 |
|
114 | 92 | ### Enable Next/Previous buttons |
115 | 93 |
|
|
0 commit comments