react-native-ui-lib
Version:
[](https://stand-with-ukraine.pp.ua)
25 lines • 499 B
JavaScript
import { ModalDriver } from "../../testkit";
export const DialogDriver = props => {
const {
renderTree,
testID
} = props;
const modalDriver = ModalDriver({
renderTree,
testID: `${testID}.modal`
});
const exists = () => {
return modalDriver.exists();
};
const isVisible = () => {
return modalDriver.isVisible();
};
const pressOnBackground = () => {
modalDriver.pressOnBackground();
};
return {
isVisible,
pressOnBackground,
exists
};
};