In My application, I am using two different API's for development and production. I want to Implement Like whenever If I pass the command yarn dev iOS then build will generate with development API, Same as well If I pass the command yarn prod iOS build will generate with production API. How to achieve this?
I have tried using react-native-dotenv but not getting much clear idea.