React-native-html-parser DOMParser not working on expo

I am using react-native-html-parser (URL:
with below code:

import DOMParser from ‘react-native-html-parser’;
const html = <p>Hello world <b>world</b> <i>foo</i> abc</p>;
const parser = new DOMParser.DOMParser();
const parsed = parser.parseFromString(html, ‘text/html’);
console.log(‘parsed’); console.log(parsed);

Above code is working on ‘react-native run-android’ on Android simulator.

However on expo it is not working.

Can you please help me to work this in expo?

Hi have you found a solution to parse html? I stuck on the same problem…

Still no. If expo forum developers can solve then it would be very helpful.