-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find element with text when using react-native-popover-view #1731
Comments
Please add |
@mdjastrzebski I have tried your suggestion and it does show Modal but it doesn't give the rendered component in modal. [
<View
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function onClick]}
onResponderGrant={[Function onResponderGrant]}
onResponderMove={[Function onResponderMove]}
onResponderRelease={[Function onResponderRelease]}
onResponderTerminate={[Function onResponderTerminate]}
onResponderTerminationRequest={[Function onResponderTerminationRequest]}
onStartShouldSetResponder={[Function onStartShouldSetResponder]}
style={
{
"opacity": 1,
}
}
>
<Text>
Hi
</Text>
</View>,
<Modal
hardwareAccelerated={true}
onRequestClose={[Function onRequestClose]}
onShow={[Function onShow]}
statusBarTranslucent={true}
supportedOrientations={
[
"portrait",
"portrait-upside-down",
"landscape",
]
}
transparent={true}
visible={true}
/>,
] updated the details in description as well |
Sa the Try also chaning:
to
( |
@mdjastrzebski Still same issue with |
Then this is issue with the Popover View library you are using. RNTL "sees" the element tree output by |
Describe the bug
When using react-native-popover-view I am unable to get the element by
getByText
and shows errorUnable to find an element with text: Hello
I am not sure if this is an error on testing libraray or the package so let me know if I need to raise issue on package repo
Expected behavior
Should not throw error.
Steps to Reproduce
You can reproduce this by expo latest 52 and installing
"react-native-popover-view": "^6.0.1"
The text was updated successfully, but these errors were encountered: