'react-native-math-view can't find variable require

While importing MathText and Mathview, im getting this error. There is no error in install. How can I fix this?

I have tried to reset cache, but it didn't work.



Solution 1:[1]

A few days ago, I had the same issue, but I downgraded to "react-native-math-view": "3.9.4", which solved the issue. Remember to delete node_modules and npm install again and reset your cache

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kb Demba