docs: add missing assignment in render.mdx (#1649)

Co-authored-by: Maciej Jastrzebski <mdjastrzebski@gmail.com>
This commit is contained in:
Vojtech Novak
2024-08-25 17:16:00 +02:00
committed by GitHub
parent 3b098b2592
commit 239e046798
+1 -1
View File
@@ -10,7 +10,7 @@ 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 { render, screen } from '@testing-library/react-native';
test('basic test', () => {
render(<MyApp />);