Both are correct. The two structures are a little different, however, leading to very slightly different meanings. to spend time on reading rather than (to spend time on) camping at weekends.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AnintitaMy father prefers to play tennis rather than swim.That's a minor detail. You will be understood very nicely whether or not you use "to" with the second verb. Leave out "to" if your teacher prefers it like that.