You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This method has been **deprecated** and has been prepended with `UNSAFE_` prefix. In react-native-testing-library 2.x only the prefixed version will work.
210
+
Returns a `ReactTestInstance` with matching a React component type.
211
211
212
-
A method returning a `ReactTestInstance` with matching a React component type. Throws when no matches.
213
-
214
-
### `UNSAFE_ByProps`, `ByProps`
212
+
:::caution
213
+
This method has been marked unsafe, since it requires knowledge about implementation details of the component. Use responsibly.
214
+
:::
215
215
216
-
> This method has been **deprecated** and has been prepended with `UNSAFE_` prefix. In react-native-testing-library 2.x only the prefixed version will work.
216
+
### `UNSAFE_ByProps`
217
217
218
-
A method returning a `ReactTestInstance` with matching props object
Returns a `ReactTestInstance` with matching props object.
221
221
222
-
> This method has been **deprecated** because using it results in fragile tests that may break between minor React Native versions. **DON'T USE IT**. It will be removed in next major release (v2.0). Use the other alternatives, such as [`getByText`](#bytext) instead. It's listed here only for back-compat purposes for early adopters of the library
223
-
> A method returning a `ReactTestInstance` with matching a React component type. Throws when no matches.
222
+
:::caution
223
+
This method has been marked unsafe, since it requires knowledge about implementation details of the component. Use responsibly.
0 commit comments