We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e38890 commit 68c19a8Copy full SHA for 68c19a8
src/helpers/filterNodeByType.js
@@ -0,0 +1 @@
1
+export const filterNodeByType = (node, type) => node.type === type;
src/helpers/getByAPI.js
@@ -1,6 +1,7 @@
// @flow
2
import * as React from 'react';
3
import prettyFormat from 'pretty-format';
4
+import { filterNodeByType } from './filterNodeByType';
5
import {
6
ErrorWithStack,
7
createLibraryNotSupportedError,
@@ -41,8 +42,6 @@ export type GetByAPI = {|
41
42
getAllByPlaceholder: () => void,
43
|};
44
-const filterNodeByType = (node, type) => node.type === type;
45
-
46
const getNodeByText = (node, text) => {
47
try {
48
const { Text } = require('react-native');
0 commit comments