Check out example codes for "How can I put a parameter into a localized string in Android?". It will help you in understanding the concepts better.

Code Example 1

// I use this in my string resource.

<string name="duration"><xliff:g id="minutes" example="42" >%s</xliff:g> mins <xliff:g id="seconds" example="28" >%s</xliff:g> secs</string>
// Which prints xx mins yy secs when you call:

getString(R.string.duration, minutes, seconds);

Learn ReactJs, React Native from akashmittal.com