Skip to content

[iOS/TextInput] Impossibility to use inputAccessoryView #16071

@douglasjunior

Description

@douglasjunior

Is this a bug report?

It is a incorrect behavior introduced in version 0.47.0, commit 2b1795c

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

  1. $ clone https://github.com/douglasjunior/react-native-inputAccessoryView.git
  2. $ cd react-native-inputAccessoryView
  3. $ yarn install
  4. $ react-native run-ios

Expected Behavior

It is expected that when typing, the Toolbar will not disappear. As in react-native 0.46.4.

correct

Actual Behavior

When typing, the Toolbar disappears, because the inputAccessoryView is set to null.

incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions