A New York City teacher and activist riding his bicycle across the country to raise money for affordable housing was fatally struck in Oklahoma by a driver who was on her cellphone.

Patrick Wanninkhof, 25, of Harlem, was a trip leader of a Bike & Build charity ride that started in Maine in June.

Wanninkhof often rode at the back of the pack of more than two dozen cyclists, to make sure no one fell behind, said his dad, ­Richard.

The squad was almost all the way through Oklahoma on a state highway in tiny Elk City Thursday morning when 34-year-old Sarah Morris slammed into Wanninkhof with her Chevy sedan. He died on impact, according to a report by the Oklahoma Highway Patrol.

A second rider suffered leg ­injuries.

The driver told police that she was looking at her phone when she slammed into the cyclists.

Wanninkhof was a member of Teach For America and had most recently taught app development at Lehman College and physics and computer science at Fordham HS for the Arts.

He was originally from Florida, but moved to New York City three years ago after graduating from the University of Florida. He left his job at Lehman in the spring to prepare for the cross-country ride.

Riders were en route to the finish line in Santa Barbara, Calif.

Wanninkhof’s father described his son as a dedicated teacher who was committed to making life better for his high-school students from low-income families.

“Always, in his heart, he had so much sympathy for the underdog,” said Richard Wanninkhof, of Key Biscayne, Fla. “He connected with the students and really cared about the students.”

Patrick was also a fearless musician not afraid to jump onstage whenever he got the chance.

“He would go to open mikes and if he didn’t have his bass with him, he would, what do you call it, beat box,” said the elder Wanninkhof.

Patrick’s longtime pal and former girlfriend Janna Pelle called him an inspiration who encouraged her to stick with her music career and bought her a bicycle to ride around New York City.

“He was always the best facilitator of his dreams and everybody else’s and he was so encouraging and so motivational,” said Pelle. “He was my band mate and my soulmate.”

Patrick played bass in the Janna Pelle band. They were set to play their next show at Pianos Bar on the Lower East Side next Saturday.

The driver has not been charged but the investigation is continuing.

=============================

A New York City teacher and activist who was riding his bicycle cross country to raise money for affordable housing was struck and killed in Oklahoma by a driver who was on her cell phone.

Patrick Wanninkhof, 25, of Harlem, was a trip leader of a Bike & Build charity ride that started in Maine in June.

As a squad leader, Wanninkhof often rode at the back of the pack of more than two dozen cyclists, to make sure no one fell behind, said his father, Richard Wanninkhof.

The squad was almost all the way through Oklahoma on a state highway in tiny Elk City on Thursday morning when 34-year-old Sarah Morris of Cordell, Oklahoma slammed into Wanninkhof with her Chevy four-door sedan. Wanninkhof flew 174 feet and died on impact, according to a report by the Oklahoma Highway Patrol. A second rider suffered leg injuries.

The driver told police that she was looking at her phone when she slammed into the cyclists.

Wanninkhof was a member of Teach For America and had most recently taught app development at Lehman College and physics and computer science at Fordham High School for the Arts. He was originally from Florida, but moved to New York City three years ago after graduating from the University of Florida. He left his job at Lehman in the spring to prepare for the cross country ride.

Riders were expected to end in Santa Barbara, Calif. Wanninkhof and other riders had already made it through New Hampshire, Massachusetts, New York, Pennsylvania, Ohio, Indiana, Illinois, and Missouri.

Wanninkhof’s father described his him as a dedicated teacher who was committed to making life better for his low-income high school students.

“Always, in his heart, he had so much sympathy for the underdog,” said Wanninkhof of Key Biscayne, Florida. “He connected with the students and really cared about the students.”

He was also a fearless musician who was not afraid to jump onstage whenever he got the chance.

“He would go to open mics and if he didn’t have his bass with him, he would, what do you call it, beat box,” said the elder Wanninkhof.

Wanninkhof’s longtime friend and former girlfriend Janna Pelle called him an inspiration who encouraged her to stick with her music career and bought her a bike to ride around New York City.

“He was always the best facilitator of his dreams and everybody else’s and he was so encouraging and so motivational,” said Pelle. “He was my band mate and my soulmate.”

Bike & Build released a statement offering support to its community.

“We are all shaken by this terrible news, and this will be a difficult time for everyone in our community,” the statement read. “We have solace in the strength of the Bike & Build community, which we will count on to support each other as we respond to this tragedy.”

Wanninkhof played bass in the Janna Pelle band. They were set to play their next show at Pianos Bar on the Lower East Side on Aug. 8.

The driver has not been charged but the investigation is continuing.