mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
docs: add note about new APIs in v1.4 (#76)
This commit is contained in:
committed by
GitHub
parent
0e47320bd4
commit
6dfbc6794b
@@ -59,10 +59,14 @@ A method returning an array of `ReactTestInstance`s with matching props object.
|
||||
|
||||
### `getByType: (type: React.ComponentType<*>)`
|
||||
|
||||
> Note: added in v1.4
|
||||
|
||||
A method returning a `ReactTestInstance` with matching a React component type. Throws when no matches.
|
||||
|
||||
### `getAllByType: (type: React.ComponentType<*>)`
|
||||
|
||||
> Note: added in v1.4
|
||||
|
||||
A method returning an array of `ReactTestInstance`s with matching a React component type.
|
||||
|
||||
### `[DEPRECATED] getByName: (name: React.ComponentType<*>)`
|
||||
|
||||
Reference in New Issue
Block a user