Skip to content

Commit 8e1e6ac

Browse files
authored
docs: readme example userevent import (#1688)
1 parent c56b223 commit 8e1e6ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import '@testing-library/react-native/extend-expect';
5353
## Example
5454

5555
```jsx
56-
import { render, screen, fireEvent } from '@testing-library/react-native';
56+
import { render, screen, userEvent } from '@testing-library/react-native';
5757
import { QuestionsBoard } from '../QuestionsBoard';
5858

5959
// It is recommended to use userEvent with fake timers
@@ -109,7 +109,6 @@ React Native Testing Library consists of following APIs:
109109
- [Migration to 12.0](https://callstack.github.io/react-native-testing-library/docs/migration/v12)
110110
- [Migration to built-in Jest Matchers](https://callstack.github.io/react-native-testing-library/docs/migration/jest-matchers)
111111

112-
113112
## Troubleshooting
114113

115114
- [Troubleshooting guide](https://callstack.github.io/react-native-testing-library/docs/guides/troubleshooting)

0 commit comments

Comments
 (0)