mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
fix: Flow types (#16)
- [x] - Add flow to tests - [x] - Fix flow typings - [x] - Update documentation
This commit is contained in:
committed by
Michał Pierzchała
parent
d2e00f5264
commit
4f0501e6b5
@@ -102,11 +102,11 @@ type ReactTestInstance = {
|
||||
};
|
||||
```
|
||||
|
||||
### `getByName: (name: string | React.Element<*>)`
|
||||
### `getByName: (name: string | React.ComponentType<*>)`
|
||||
|
||||
A method returning a `ReactTestInstance` with matching name – may be a string or React Element. Throws when no matches.
|
||||
|
||||
### `getAllByName: (name: string | React.Element<*>)`
|
||||
### `getAllByName: (name: string | React.ComponentType<*>)`
|
||||
|
||||
A method returning an array of `ReactTestInstance`s with matching name – may be a string or React Element.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user