UNPKG

react-native-notifications

Version:

Advanced Push Notifications (Silent, interactive notifications) for iOS & Android

18 lines (16 loc) 439 B
module.exports = { elementByLabel: (label) => { return element(by.text(label)); }, elementById: (id) => { return element(by.id(id)); }, tapBackIos: () => { try { return element(by.traits(['button']).and(by.label('Back'))).atIndex(0).tap(); } catch (err) { return element(by.type('_UIModernBarButton').and(by.label('Back'))).tap(); } }, sleep: ms => new Promise(res => setTimeout(res, ms)) };