How can I create a TimelineComponent in C++?

Yep, FTimeline is your friend in C++. The only reason that UTimelineComponent exists really is to get a Tick function (and expose its API easily to Blueprints).