mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
docs: install react-test-renderer typings (#181)
This commit is contained in:
committed by
GitHub
parent
f6f0a7091d
commit
fd6cb4951e
@@ -69,6 +69,12 @@ yarn add --dev react-native-testing-library
|
|||||||
|
|
||||||
This library has a peerDependencies listing for `react-test-renderer` and, of course, `react`. Make sure to install them too!
|
This library has a peerDependencies listing for `react-test-renderer` and, of course, `react`. Make sure to install them too!
|
||||||
|
|
||||||
|
Note for [Flow](https://flow.org) users – you'll also need to install typings for `react-test-rednerer`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flow-typed install react-test-renderer
|
||||||
|
```
|
||||||
|
|
||||||
As you may have noticed, it's not tied to React Native at all – you can safely use it in your React components if you feel like not interacting directly with DOM.
|
As you may have noticed, it's not tied to React Native at all – you can safely use it in your React components if you feel like not interacting directly with DOM.
|
||||||
|
|
||||||
## API / Usage
|
## API / Usage
|
||||||
|
|||||||
Reference in New Issue
Block a user