"strings.xml" on app.json for Prebuild projects

Hey! Is it possible to add values in Android “strings.xml” file through app.json in projects with prebuild?

Hi @happen

Yes, you can write a config plugin that makes use of withStringsXml to make whatever modifications you like to strings.xml.

The way you do that will be just about identical to modifying AndroidManifest.xml. There’s an example of how to do that here:

I also have a few examples that will be similar here:

I wrote these quite a while ago, so check the link I posted above for best practices.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.