Setup Multiple Environments in React Native | Development & Production

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 23

  • @johnanoni
    @johnanoni 6 หลายเดือนก่อน +1

    I was following the doc for IOS but didn't work for me, this saved me. Thanks a lot men 💪

    • @onedevv
      @onedevv  6 หลายเดือนก่อน +1

      Hey @johnanoni that is awesome and I'm happy to hear that!
      I'll keep making more tutorials so let me know if you need one about something in specific

    • @johnanoni
      @johnanoni 6 หลายเดือนก่อน

      @@onedevv About the TestFlight configuration it would be great

    • @onedevv
      @onedevv  6 หลายเดือนก่อน

      @johnanoni Added to the list! ✅

  • @everlastingstudios2467
    @everlastingstudios2467 6 หลายเดือนก่อน +1

    Thank you so much !!! 🙏
    This is working for me
    my package.json script is like this
    {
    "setDevelopmentEnvFile": "ENVFILE=.env.development",
    "setStagingEnvFile": "ENVFILE=.env.staging",
    "setQAEnvFile": "ENVFILE=.env.qa",
    "setProductionEnvFile": "ENVFILE=.env.production",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest",
    "start:dev": "yarn setDevelopmentEnvFile react-native start",
    "start:qa": "yarn setQAEnvFile react-native start",
    "start:prod": "yarn setProductionEnvFile react-native start",
    "start:stage": "yarn setStagingEnvFile react-native start"
    }

    • @onedevv
      @onedevv  5 หลายเดือนก่อน +1

      Amazing!
      Really happy it helped you!

  • @MagedMegz95
    @MagedMegz95 3 หลายเดือนก่อน

    Thank you very much. Very much detailed (y)

    • @onedevv
      @onedevv  3 หลายเดือนก่อน +1

      Happy to help you!

  • @plujudramunqk
    @plujudramunqk 8 หลายเดือนก่อน +1

    Wow, this is by far the best video of how to set RN environments. Thank you. Saved my day 🙏

    • @onedevv
      @onedevv  8 หลายเดือนก่อน

      Hey @plujudramunqk I really appreciate your comment, very glad to hear that!
      I’ll keep uploading uploading videos. Let me know if you need one about something specific.

  • @KahraSolo
    @KahraSolo 4 หลายเดือนก่อน +1

    Thank you!

  • @thangnguyenthanh5000
    @thangnguyenthanh5000 3 หลายเดือนก่อน

    Thank you so much!

  • @udayjariwala-mj2fg
    @udayjariwala-mj2fg 6 หลายเดือนก่อน

    not working every time local run

    • @onedevv
      @onedevv  5 หลายเดือนก่อน

      Could you tell me exactly what is not working for you? Are you getting an error or what is the issue?
      Please provide me some details so I can help you

  • @hassamshamas5432
    @hassamshamas5432 5 หลายเดือนก่อน

    I'm getting this error: 'ENVFILE' is not recognized as an internal or external command,
    operable program or batch file.

    • @onedevv
      @onedevv  5 หลายเดือนก่อน

      Are you working on Windows? If that is the case, try adding "set" before "ENVFILE=..." (without the "")

    • @hassamshamas5432
      @hassamshamas5432 5 หลายเดือนก่อน

      @@onedevv yes I’m on Windows

    • @hassamshamas5432
      @hassamshamas5432 5 หลายเดือนก่อน +1

      @@onedevv Thank you it is working now!!!

    • @onedevv
      @onedevv  5 หลายเดือนก่อน

      @@hassamshamas5432 Awesome!
      You are welcome!

    • @hassamshamas5432
      @hassamshamas5432 5 หลายเดือนก่อน

      @@onedevv I have just one question, how can I change the app Names? I just need android apps

  • @DaniyalBaig-sr1bs
    @DaniyalBaig-sr1bs 5 หลายเดือนก่อน

    how we will set environment while releasing bundle?

    • @onedevv
      @onedevv  5 หลายเดือนก่อน

      Doesn't it work adding the setLocal/setProduction to the command?