Question: how to transfer data from old iphone to another?
Answer: Turn on your new iPhone and place it near your current iPhone that's using iOS 12.4 or later. ... 
Wait for an animation to appear on your new iPhone. ... 
When asked, enter your current iPhone passcode on your new iPhone.
Follow the instructions to set up Face ID or Touch ID on your new iPhone.