Skip to content

TextInput not reflecting the correct text value #4444

@khetanashita

Description

@khetanashita

Steps to Reproduce

(Write your steps here:)
When the text prop update happens back to back quickly and programmatically (not via user interaction), the latest update request is ignored.

Basic Triage

(Write what you thought would happen.)
The Js side gets updated as expected and an update is triggered to the native side as well, but I think it's ignored in the TextInputViewManager because of this condition:

else if (propertyName == "text") {
 if (m_mostRecentEventCount == m_nativeEventCount) {
   .
   .
   .
  }
} 

The event counts for native and javascript are out of sync. If I manipulate those values it updates correctly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions