UNPKG

react-native-screenshot-test

Version:
21 lines (20 loc) 578 B
export var defaultConfig = { path: 'ss-test', serverUrl: 'http://127.0.0.1:8080', batchSize: 10, maxWidth: 500, backgroundColor: 'transparent', showDiffInGrayScale: false, quality: 0.9, }; export var withScreenShot = function (components, isHeadless, screenshotConfig) { if (isHeadless === void 0) { isHeadless = true; } var withShot; if (isHeadless) { withShot = require('./withShotHeadless').default; } else { withShot = require('./withShot').default; } return withShot(components, screenshotConfig); };