Check out example codes for "image which supports both arm and amd". It will help you in understanding the concepts better.

Code Example 1

Multi Architecture Docker Image

Learn ReactJs, React Native from akashmittal.com