Among her later films were "The Bachelor and the Bobby-Soxer," with Cary Grant, and "That Hagen Girl," with Ronald Reagan. Several, including the wartime drama "Since You Went Away," were produced by David O. Selznick. One, "Fort Apache," was directed by John Ford, who had also directed her "Wee Willie Winkie" years earlier.
Her 1942 film, "Miss Annie Rooney," included her first on-screen kiss, bestowed by another maturing child star, Dickie Moore.
After her film career effectively ended, she concentrated on raising her family and turned to television to host and act in 16 specials called "Shirley Temple's Storybook" on ABC. In 1960, she joined NBC and aired "The Shirley Temple Show."
Her 1988 autobiography, "Child Star," became a best-seller.
Temple had married Army Air Corps private John Agar, the brother of a classmate at Westlake, her exclusive L.A. girls' school, in 1945. He took up acting and the pair appeared together in two films, "Fort Apache" and "Adventure in Baltimore." She and Agar had a daughter, Susan, in 1948, but she filed for divorce the following year.
She married Black in 1950, and they had two more children, Lori and Charles. That marriage lasted until his death in 2005 at age 86.
In 1972, she underwent successful surgery for breast cancer. She issued a statement urging other women to get checked by their doctors and vowed, "I have much more to accomplish before I am through."
During a 1996 interview, she said she loved both politics and show business.
"It's certainly two different career tracks," she said, "both completely different but both very rewarding, personally."