I attempted to resolve the issue but couldn't find a solution, so I decided to use the new Expo DOM components. These components allow me to write React.js code directly within a React Native file. The 'use dom' directive then converts the files into a native WebView proxy component.
For a deeper understanding and detailed guidance, you can refer to the official Expo blog post and documentation:
https://expo.dev/blog/the-magic-of-expo-dom-components https://docs.expo.dev/guides/dom-components/