[iOS/TextInput] Impossibility to use `inputAccessoryView`
See original GitHub issueIs this a bug report?
It is a incorrect behavior introduced in version 0.47.0
, commit https://github.com/facebook/react-native/commit/2b1795c5add2e1442878a884d6dcd8f0ec5c1572
This commit brought a problem to those who use a custom ToolBar in TextInput, like IQKeyboardManager. And there is no option to disable this behavior.
Environment
Environment: OS: macOS Sierra 10.12.6 Node: 6.11.0 Yarn: 1.0.2 npm: 5.4.2 Watchman: 4.9.0 Xcode: Xcode 9.0 Build version 9A235 Android Studio: EAP AI-171.4316950 AI-171.4316950
Packages: (wanted => installed) react: 16.0.0-alpha.12 => 16.0.0-alpha.12 react-native: 0.48.2 => 0.48.2
Steps to Reproduce
$ clone https://github.com/douglasjunior/react-native-inputAccessoryView.git
$ cd react-native-inputAccessoryView
$ yarn install
$ react-native run-ios
Expected Behavior
It is expected that when typing, the Toolbar will not disappear. As in react-native 0.46.4
.
Actual Behavior
When typing, the Toolbar disappears, because the inputAccessoryView
is set to null
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:11 (4 by maintainers)
Top GitHub Comments
Okay, I will fix that, I think I know how to do it. I am doing it because:
inputAccessoryView
;@douglasjunior bf3698323d81508fc77174df2b1ffe5fb03224e7 should fix your problem.