Jada Pinkett Smith has been touched by thoughts of suicide.

The 46-year-old actress revealed her experience with contemplating taking her own life in an Instagram post inspired by the tragic deaths last week of Anthony Bourdain and Kate Spade.

RELATED: Anthony Bourdain’s Mother Opens Up About Son’s Death: ‘He Had Everything’

“With the suicides of Kate and Anthony it brought up feelings of when I was in such despair and had considered the same demise… often,” she wrote.

View this post on Instagram

One thing I’ve learned in my life over the years is that mental health is something we should practice daily, not just when issues arise. We should take care of our mind and spirit in the same way we do our body. With the suicides of Kate and Anthony it brought up feelings of when I was in such despair and had considered the same demise…often. In the years I spent towards my healing, many moons ago, I realized the mind and heart can be extremely delicate without the foundation of a formidable spirit. What I eat, what I watch on TV, what music I listen to, how I care for my body, my spiritual practice, what people I surround myself with, the amount of stress I allow and so on… either contribute to or deteriorate my mental health. Mental health is a daily practice for me. It’s a practice of deep self-love. May Kate and Anthony Rest In Peace. Many may not understand… but I do, and this morning I have the deepest gratitude that I pulled through. . Love.

A post shared by Jada Pinkett Smith (@jadapinkettsmith) on

“In the years I spent towards my healing, many moons ago, I realized the mind and heart can be extremely delicate without the foundation of a formidable spirit,” Pinkett Smith continued.

RELATED: Jada Pinkett Smith Cries After Kids Willow And Jaden Discuss Their Issues With Her Parenting

She added, “May Kate and Anthony Rest In Peace. Many may not understand… but I do, and this morning I have the deepest gratitude that I pulled through.”

The Canadian Association for Suicide PreventionDepression Hurts and Kids Help Phone (1-800-668-6868) all offer ways for getting help if you or someone you know is suffering from mental health issues.