Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/12.x/docs/api/render.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ function render(
The `render` function is the entry point for writing React Native Testing Library tests. It deeply renders the given React element and returns helpers to query the output components' structure.

```jsx
import { render } from '@testing-library/react-native';
import { screen, render } from '@testing-library/react-native';

test('basic test', () => {
const screen = render(<MyApp />);
render(<MyApp />);
expect(screen.getAllByRole('button', { name: 'start' })).toBeOnTheScreen();
});
```
Expand Down