Skip to content

Commit 1e9451f

Browse files
authored
Update render.mdx
1 parent 9769abd commit 1e9451f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/12.x/docs/api/render.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ function render(
1010
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.
1111

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

1515
test('basic test', () => {
16-
const screen = render(<MyApp />);
16+
render(<MyApp />);
1717
expect(screen.getAllByRole('button', { name: 'start' })).toBeOnTheScreen();
1818
});
1919
```

0 commit comments

Comments
 (0)