Skip to content

[iOS] [Text] text component doesn't show it's text to value attribute #17836

Description

@pgajeshwar-coupa

Is this a bug report?

Yes, The value attribute is 'nil' while checking text component field with accessibility inspector.

Have you read the Contributing Guidelines?

Yes.

Environment

Environment:
OS: macOS High Sierra 10.13.2
Node: 4.8.0
Yarn: Not Found
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.0 => 0.52.0

Steps to Reproduce

  1. Create one text component field and check in iOS app client
  2. Open Accessibility Inspector from xcode developer tools
  3. Highlight text component in Accessibility inspector
  4. Verify Value attribute in Accessibility inspector window

Expected Behavior

Accessibility inspector should show actual text assigned to that Text component field.

Actual Behavior

Accessibility inspector is showing value to all Text component fields.

This is really required while doing automated testing to validate correct text is being shown or not in that specific text field.

nil_value_of_text_component

Reproducible Demo

Can't connect accessibility inspector in provided site to show value attribute.

Activity

  1. changed the title [-]text component doesn't show it's text to value attribute[/-] [+][iOS] text component doesn't show it's text to value attribute[/+] on Feb 2, 2018
  2. changed the title [-][iOS] text component doesn't show it's text to value attribute[/-] [+][iOS] [Text] text component doesn't show it's text to value attribute[/+] on Feb 2, 2018
  3. react-native-bot commented on Feb 24, 2018

    @react-native-bot
    Collaborator

    Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

    I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

    How to Contribute • What to Expect from Maintainers

  4. added
    Ran CommandsOne of our bots successfully processed a command.
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Feb 24, 2018
  5. removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Feb 24, 2018
  6. salmanwaheed commented on Feb 24, 2018

    @salmanwaheed
  7. locked as resolved and limited conversation to collaborators on Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions