We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a467aaa commit 8778012Copy full SHA for 8778012
docs/API.md
@@ -31,7 +31,19 @@ import { render } from 'react-native-testing-library';
31
const { getByTestId, getByText /*...*/ } = render(<Component />);
32
```
33
34
-Returns a `RenderResult` object with [Queries](./Queries.md) and following helpers:
+The `render` method returns a `RenderResult` object that has a few properties:
35
+
36
+### `...queries`
37
38
+The most important feature of `render` is providing a set of helpful queries that allow you to find certain elements in the view hierarchy.
39
40
+See [Queries](./Queries.md) for a complete list.
41
42
+#### Example
43
44
+```jsx
45
+const { getByText, queryByA11yRole } = render(<Component />);
46
+```
47
48
### `update`
49
0 commit comments