Question: how to transfer whatsapp from iphone 6 to iphone xr?
Answer: Make sure you have iCloud backup function for iPhone enabled on both your phones. ... 
Then on your old iPhone, go to WhatsApp, tap > Chat settings > Chat backup and click on Back Up Now.
Now get your iPhone XS and install WhatsApp on it.