I would keep the heat away from the valve. Sweat the adapter to the pipe then thread it in.
While SharkBites could be used bear in mind they also allow the pipe to rotate within the Sharkbite.
Part of a good installation of a shower mixer is having it well secured in the wall.
Rigid sweat connections do a lot for this....