We have our api_host
string set in a java file.
For testing purpose, we want to be able to change the
api_host
at runtime through a ui (provide a textinput where you can edit theapi_host
variable)Also we have to consider recreating the activity
Because we are initializing a webview or React-Native view at
onCreate
method like the following:mReactRootView.startReactApplication(api_host)
Or just fresh implementation of managing api_host
is welcome if it can provide the capability of changing the api_host
value at runtime through a ui.