Skip to content

Module '"react-native"' has no exported member 'AccessibilityStates' #413

Closed
@shettayyy

Description

@shettayyy

Describe the bug

Typescript linter throws the below-given error:

node_modules/react-native-testing-library/typings/index.d.ts(4,3): error TS2724: Module '"react-native"' has no exported member 'AccessibilityStates'. Did you mean 'AccessibilityState'?

Expected behavior

The TSC linter shouldn't through any error and the type has a typo that needs to be fixed.

Steps to Reproduce

Add bash -c tsc to husky commit hooks and try to commit the code or just run tsc

Screenshots

TSC issue

Versions

react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
react-native-testing-library: ^2.1.0 => 2.1.0
react-test-renderer: 16.11.0 => 16.11.0

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