UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

20 lines (19 loc) 433 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTextContent = getTextContent; function getTextContent(instance) { if (!instance) { return ''; } if (typeof instance === 'string') { return instance; } const result = []; instance.children?.forEach(child => { result.push(getTextContent(child)); }); return result.join(''); } //# sourceMappingURL=text-content.js.map