Chosen Solution

I want to replace my iPhone XR 128gb and memory on xs whether it possible?

yes they are the same modules but you will still need to program the nand info onto the chip you want to use, if you are changing the nand on the xs be careful as you can overheat the cpu