Skip to content

InputAccessoryView stopped working with multiple Inputs using the same inputAccessoryViewID #47865

Description

@LubomirGocnikTechmates

Description

After upgrading the project to Expo 52 I discovered, that the InputAccessoryView stopped working, if there are multiple TextInputs, that share the same inputAccessoryViewID.

For clarity, I reproduced the issue in the snack.expo.dev directly in the example on InputAccessoryView.

If you run the example with Expo 51 (react-native v0.74.5) everything works as expected, it doesn't matter, if I focus the first or the second TextInput.
But if I change the Expo version to 52 (react-native v0.76.2), the InputAccessoryView shows only after focusing the first TextInput.

At first I reported the issue in the expo repository expo/expo#33069 .
But it looks like the issue is in the react-native library

Steps to reproduce

  1. Open https://snack.expo.dev/LrCtZwQpPEm0SswYOmSQn
  2. In bottom right corner select Expo v52.0.0 and enable Preview
  3. In upper right corner select iOS
  4. When the app starts running click on the first input -> The InputAccessoryView is there
  5. then click on the second input -> The InputAccessoryView dissapears

If you repeat these steps but with the Expo v51.0.0 the InputAccessoryView is visiblle for both Inputs.

React Native Version

0.76.2

Affected Platforms

Runtime - iOS

Output of npx react-native info

.

Stacktrace or Logs

.

Reproducer

https://snack.expo.dev/LrCtZwQpPEm0SswYOmSQn

Screenshots and Videos

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions