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
> Use sparingly and responsibly, escape hatches here
@@ -159,20 +187,23 @@ const element = getByA11yRole('button');
159
187
160
188
The interface is the same as for other queries, but we won't provide full names so that they're harder to find by search engines.
161
189
162
-
### `ByType`
190
+
### `UNSAFE_ByType`, `ByType`
163
191
164
192
> Note: added in v1.4
165
193
194
+
> 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.
195
+
166
196
A method returning a `ReactTestInstance` with matching a React component type. Throws when no matches.
167
197
168
-
### `ByProps`
198
+
### `UNSAFE_ByProps`, `ByProps`
199
+
200
+
> 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.
169
201
170
202
A method returning a `ReactTestInstance` with matching props object
171
203
172
204
### `ByName`
173
205
174
206
> 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 [`getByTestId`](#bytestid) instead. It's listed here only for back-compat purposes for early adopters of the library
175
-
176
207
A method returning a `ReactTestInstance` with matching a React component type. Throws when no matches.
0 commit comments