Taylor Lautner did play Sharkboy in The Adventures of Sharkboy and Lavagirl (2005). He was 12 years old at release—not a "young child" but a pre‑teen.
Confusion may arise because Lautner later played Jacob Black in Twilight starting at age 16.