In our React Native app, we have a link that directs the user to download a newer version of the app. The problem is that, in the Android build, this ought to point to the Play Store. In the iOS build, the link ought to point to the App store. Is there a way I can insert the appropriate links at build time? Here is the code where we use the link.
_handleDownloadPress = () => {
const url = 'https://xxxx.app.link/example';
Linking.canOpenURL(url).then(supported => {
supported && Linking.openURL(url);
}, (err) => console.log(err));
}