Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28463

Android, change string and reload activity

$
0
0

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 the api_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.


Viewing all articles
Browse latest Browse all 28463

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>