Check out example codes for "Can only use lower 16 bits for requestCode registerForActivityResult". It will help you in understanding the concepts better.

Code Example 1

implementation 'androidx.fragment:fragment:1.3.0-alpha06'

Learn ReactJs, React Native from akashmittal.com