A New Brunswick teenager who turned a terminal prognosis into a online movement that has inspired acts of kindness across the globe has died of brain cancer.

Rebecca Schofield of Riverview, N.B., died in Moncton on Saturday evening at the age of 18, her family said in a statement Sunday.

"If the love of a community actually had the medical power to cure childhood cancer, we believe Becca would have lived forever," the statement said.

"While that wasn't possible, we believe the countless acts of kindness Becca and her family have received from a community of caring people literally around the globe has at least helped soothe all of our souls."

Even in mourning, her supporters vowed to continue carrying out her final request -- sharing acts of kindness on social media because #BeccaToldMeTo.

"You gave her the profound blessing of knowing in her too short life that she had made a difference. You gave her hope that all the good and the bad of the past three years had a meaning, even at times when that was hard to see," the family's statement said.

"Her legacy is not all the good that came our way. It is the thousands of acts of kindness that grew exponentially outward from our home in Riverview, spreading across North America and beyond. We hope that global community of caring people will continue to look for ways to make the world better one act at a time.

"We pray .Beccatoldmeto will live on. Keep her dream alive, and our beloved Becca will live forever. Be kind."

News of Schofield's passing sparked an outpouring of grief on social media.

New Brunswick Premier Brian Gallant extended his sympathies to "all those who have been touched by this amazing young woman" in a Facebook post on Sunday.

"Becca has inspired thousands of people around the world. Her story of selfless dedication to helping others while in the face of immense adversity will continue to inspire New Brunswickers for years to come," Gallant wrote.

Federal Fisheries Minister Dominic LeBlanc, who in December revealed he had been diagnosed with leukemia, offered his condolences to the Schofield family in a tweet Sunday.

"She inspired us all to be kinder to one another -- it's up to us keep her legacy alive," wrote LeBlanc, who represents the New Brunswick riding of Beausejour in Parliament.

Riverview Mayor Ann Seamans said in a statement Sunday that Schofield had an "immeasurable" impact on the community and people around the world by showing how one person can make a positive difference in the lives of others.