New Line and director James Wan are tapping the “Twilight” and “Dark Knight” franchises for youngsters to star in horror pic “The Warren Files,” signing up Mackenzie Foy and Joey King to play members of the true-life Perron family.

The Perrons claimed they “lived among the dead” in the 1970s as spirits — both friendly and sinister — inhabited their Rhode Island farmhouse. Vera Farmiga and Patrick Wilson are playing the investigators Ed and Lorraine Warren. Lilli Taylor and Ron Livingston will portray the Perrons.

Both child thesps appear in highly anticipated franchise finales coming this year: Foy will play the half-vampire offspring Renesmee Cullen in “The Twilight Saga: Breaking Dawn — Part 2.” King, who appeared in “Crazy Stupid Love,” has a small part in “The Dark Knight Rises.”

Peter Safran and Tony DeRosa-Grund will produce “The Warren Files” — formerly titled “The Conjuring” — through the Safran Co. and DeRosa-Grund’s Evergreen Media Group. Rob Cowan will also produce. Wan is directing from a script by Chad and Carey Hayes with shooting scheduled to start Feb. 21 in North Carolina.

Foy and King are both repped by Coast to Coast. Foy is managed by Christopher Rockwell.