Dynamic build url from the server

I am willing to use GitHub - jeffreylanters/react-unity-webgl: React Unity WebGL provides a modern solution for embedding Unity WebGL builds in your React Application while providing advanced APIs for two way communication and interaction between Unity and React. to incorporate a simple puzzle game inside the react native app,

Can I put the below files ( such as myunityapp.loader.js, myunityapp.data, myunityapp.framework.js, myunityapp.wasm ) in the external cloud server instead of packaging with the app itself, so that we could change the configuration of the unity project any time dynamically.

this.unityContext = new UnityContext({
loaderUrl: “build/myunityapp.loader.js”,
dataUrl: “build/myunityapp.data”,
frameworkUrl: “build/myunityapp.framework.js”,
codeUrl: “build/myunityapp.wasm”
});

Yes, I believe you should be able to host the Unity content on an external server from the main HTML page. I am not super familiar with react native apps though, so consult its documentation to make sure it allows remote web requests. Also react native apps presumably implement CORS rules, so you likely need to implement CORS configuration on the remote server hosting the content, or you’ll get CORS related errors in the console log.