2

I'm trying to test the value of the header when using React Navigation with a NativeStack but when I try to do something like

const title = queryByText('Title');
expect(title).toBeTruthy();

The value returned is null.

Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265

0 Answers0