(**SOLVED**) React Native Multiple Environments Flavours and Target tutorial | *Hands on* | soban 4K

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2022
  • React Native Multiple Environments Flavours and Target tutorial for android and iOS | soban speaks
    React native environment
    React Native Tutorial to setup multiple environment for example dev, and live by creating flavours and targets in android and iOS respectively. This is very important when you are working on a project which has huge user base.
    You can ship multiple apps using this technique. React Native For IOS and Android.
    In this video, we’ll be discussing Build Types. We’ll see how they make our React-native Development easier and faster especially when we’re creating applications with minimal differences. These differences can be as small as changes in themes and app icons or can be for different stages of the product such as staging, local, Production etc.
    We will understand multi configuration as we want to install three different application simultaneously on the device. for example, We want to bundle three different app shares same source code and having display name local, staging and Production
    sobanarshad85@gmail.com
    +923034645060
    TH-cam: / sobanspeaks
    Twitter: / sobanarshad85
    Facebook: / sobanarshad85
    SobanSpeaks: www.sobanspeaks.com
    Website: www.informativehouse.com
    Soban Arshad
    ✅ Subscribe to my channel! ➜ Soban Speaks ( / sobanspeaks )
    🔔 Click On The Bell + Turn On Notifications.
    #reactnative #reactjs #reactnativetutorial #reactnativeenvironment
    #android #ios

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

  • @cricmen3805
    @cricmen3805 ปีที่แล้ว

    Superb!!! I have been looking for this kinda solution since so long, well explained react native environment and flavours

    • @SobanSpeaks
      @SobanSpeaks  ปีที่แล้ว +1

      Glad it was helpful!

  • @jacksaunders8527
    @jacksaunders8527 ปีที่แล้ว +1

    Why did we need to do ./gradlew bundleRelease?
    Can you explain why we will need different versions of debug and release for production/staging?
    What is 'local' since its neither production or development?

    • @SobanSpeaks
      @SobanSpeaks  ปีที่แล้ว

      Thanks for your comment.
      BundleRelease is making publishable builds.
      Secondly ‘local’ it self ks nothing thats just a flavor name. Lets say you have a code base and tou have to create number of builds, in real workd scenario lets assume you have a restaurant app and you need to sell that app to reastaurant A, restaurant B … restaurant Z, you just need to follow same for example production is equal to restaurant A, staging is rqual to restaurant B and local equals to restaurant Z, you can make as many builds as you need using same codebase without doing any fancy work. That is why multiple flavours are used in app development. Moreover lets say you have multi channel testing implemented in your company you can use multiple flavours. Provided that every flocor has its own set of rules for example each flavors is responding to a unique base url, unique name, unique third part api’s being used, for example for push notifications you haven’t put everything on a single firebase api and you have different api’s for all kind of testing to avoid higher load on production api, you can use multiple flavours. Also same goes for multiple clients having unique app names unique com id’s etc
      Please let me know if I was able to answer or if you need more clarification on it
      Thanks!

    • @SobanSpeaks
      @SobanSpeaks  ปีที่แล้ว

      Different versions of debug and releases for all flavours: is to make debugging more easier against specific flavour. Lets say all going good for all flavours but in a specific flavour there is some breakage or code failure, you can use debug version to investigate the issue. Usually release version is not super flexible for debugging though still you can do it using platform logs but that’s really complicated specially for beginners to mid-level developers.
      Thanks

    • @jacksaunders8527
      @jacksaunders8527 ปีที่แล้ว +1

      @@SobanSpeaks Thank you, you explained that really well. But now, I think I've just realised this isn't quite what I want 😆 Struggling to find a tutorial using react-native-config that will have a prod, dev and staging builds with only one target. Every tutorial seems to use multiple targets.

    • @SobanSpeaks
      @SobanSpeaks  ปีที่แล้ว

      @@jacksaunders8527 I get it, yes you're right, That's totally a different use case. Will definitely make a video for that.

    • @joeadeleke
      @joeadeleke ปีที่แล้ว +1

      @@SobanSpeaks THanks for the video... How can you debug release apks

  • @harshdeep7015
    @harshdeep7015 11 หลายเดือนก่อน

    Getting error and using google services