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
When using .toBeVisible on a Pressable using a function for the style prop we get the following error
TypeError: Cannot destructure property 'display' of 'react_native_1.StyleSheet.flatten(...)' as it is undefined.
at isStyleVisible (node_modules/@testing-library/jest-native/dist/to-be-visible.js:9:13)
Using a function in the style prop is used for checking whether the component is currently pressed, so I think it needs to be supported.
Can you help us fix this issue by submitting a pull request?
I can make a fix for this myself.
The text was updated successfully, but these errors were encountered:
react-native
orexpo
: react-native@testing-library/react-native
version: 5.3.0jest-preset
: jest-exporeact-native
version: 0.68.5node
version: 16.16.0What happened:
When using
.toBeVisible
on aPressable
using a function for the style prop we get the following errorUsing a function in the style prop is used for checking whether the component is currently pressed, so I think it needs to be supported.
Can you help us fix this issue by submitting a pull request?
I can make a fix for this myself.
The text was updated successfully, but these errors were encountered: