title: How to use toBeVisible matcher with React Native
body: <p>I'm using <code>react-native-testing-library</code> with <code>"@testing-library/jest-dom/extend-expect"</code>. </p>
  
  <p>Looks like <code>toBeVisible</code> would only work with ReactJS:</p>
  
  <pre><code>const nameField = component.getByPlaceholder("Name");
  expect(nameField).toBeVisible();
  
  // Test Error:
  ● NewCustomerScreen › the basics › encountered a declaration exception
  
      expect(received).toBeVisible()
  
      received value must be an HTMLElement or an SVGElement.
      Received has type:  object
      Received has value: {"_fiber": {"_debugHookTypes": null, "_debugID": 26, "_debugIsCurrentlyTiming": false, "_debugOwner": [FiberNode], "_debugSource": null, "alternate": null, "child": [FiberNode], "childExpirationTime": 0, "contextDependencies": null, "effectTag": 133, "elementType": [Function Component], "expirationTime": 0, "firstEffect": null, "index": 1, "key": null, "lastEffect": null, "memoizedProps": [Object], "memoizedState": null, "mode": 0, "nextEffect": [FiberNode], "pendingProps": [Object], "ref": [Function ref], "return": [FiberNode], "sibling": null, "stateNode": [Component], "tag": 1, "type": [Function Component], "updateQueue": null}}
  </code></pre>
  
  <p>Is there a way to make it work?</p>