Native stack is only available if React Native Screens is enabled

383 Views Asked by At

When I try to run tests for storyshots with native screens enabled for react-navigation I get this:

Native stack is only available if React Native Screens is enabled.

  15 | const getRenderedTree = (story: any) => {
  16 |   const storyElement = story.render()
> 17 |   const tree = renderer.create(storyElement)
     |                                         ^
  18 | 
  19 |   return tree
  20 | }
0

There are 0 best solutions below