I have a React Native app which is receiving an HTML file from the backend. This is the content of the HTML file:
<html>
<head>
<style>
#wrapper {
// styling
}
.child {
// styling
}
#img {
// styling
}
#desc {
// styling
}
</style>
</head>
<body>
<div id="wrapper">
<div id="img" class="child"></div>
<div id="desc" class="child"></div>
</div>
</body>
<script>
const img = document.getElementById("img");
img.addEventListener("click", () => {
// logic
});
</script>
</html>
I just want to display this HTML in a react-native view along with both it's style as well script tag.