A few weeks ago, 10-year-old Jacob O'Conner was hailed as a hero for saving his younger brother from drowning in a swimming pool.

His brother, Dylan Meadows, was taken to the hospital but made a full recovery, thanks to the quick thinking of his brother.

O'Conner credited his favorite movie "San Andreas" for teaching him the CPR that would save his brother's life. In the 2015 thriller, Dwayne "The Rock" Johnson's character performs the action to save his daughter.

After Johnson heard about O'Conner's heroism, he posted on Instagram and invited the family to visit the set of his new movie "Skyscraper."

{"version":"1.0","title":"I gotta shake the hand of a real life 10yr old hero. \nJacob, I'm gonna fly you and your family out to Vancouver so I can meet you. Hopefully, your little 2yr old brother, Dylan is well enough to fly because I wanna meet him too. \nI'll have some very nice people contact your family in the upcoming days to make the arrangements. \nCan't wait to meet you big man. And make sure you bring your sweet tooth! ๐Ÿ˜‰๐Ÿ‘๐Ÿพ","author_name":"therock","author_url":"https://www.instagram.com/therock","author_id":232192182,"media_id":"1589580226257903930_232192182","provider_name":"Instagram","provider_url":"https://www.instagram.com","type":"rich","width":658,"height":null,"html":"&#lt;blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-version=\"7\" style=\" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\"&#gt;&#lt;div style=\"padding:8px;\"&#gt; &#lt;div style=\" background:#F8F8F8; line-height:0; margin-top:40px; padding:50.0% 0; text-align:center; width:100%;\"&#gt; &#lt;div style=\" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;\"&#gt;&#lt;/div&#gt;&#lt;/div&#gt; &#lt;p style=\" margin:8px 0 0 0; padding:0 4px;\"&#gt; &#lt;a href=\"https://www.instagram.com/p/BYPUss4FmE6/\" style=\" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;\" target=\"_blank\"&#gt;I gotta shake the hand of a real life 10yr old hero. Jacob, I'm gonna fly you and your family out to Vancouver so I can meet you. Hopefully, your little 2yr old brother, Dylan is well enough to fly because I wanna meet him too. I'll have some very nice people contact your family in the upcoming days to make the arrangements. Can't wait to meet you big man. And make sure you bring your sweet tooth! ๐Ÿ˜‰๐Ÿ‘๐Ÿพ&#lt;/a&#gt;&#lt;/p&#gt; &#lt;p style=\" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;\"&#gt;A post shared by therock (@therock) on &#lt;time style=\" font-family:Arial,sans-serif; font-size:14px; line-height:17px;\" datetime=\"2017-08-26T01:59:11+00:00\"&#gt;Aug 25, 2017 at 6:59pm PDT&#lt;/time&#gt;&#lt;/p&#gt;&#lt;/div&#gt;&#lt;/blockquote&#gt;\n&#lt;script async defer src=\"//platform.instagram.com/en_US/embeds.js\"&#gt;&#lt;/script&#gt;","thumbnail_url":"https://scontent-atl3-1.cdninstagram.com/t51.2885-15/s640x640/e15/21147889_1386664364714045_3394956190453596160_n.jpg","thumbnail_width":640,"thumbnail_height":640}

"I'm so amazed and impressed by this little 10yr (sic) old boy's heroic actions and calm instincts in the middle of that kind of emergency distress. I now need to shake young Jacob's hand," the actor posted in August.

Johnson proved to be a man of his word after he posted more videos on Tuesday with Jacob O'Conner and his family on the set.

{"version":"1.0","title":"Ladies and gentlemen, I finally met this real life 10yr old hero, Jacob O'Connor. He rescued his 2yr old brother after finding him facedown in their pool. \nI said, not only do I shake hands, but when I meet heroic kids, I give hugs.. now get in here. Despite the fact I looked like 9 ways of hell, battered and bloodied from my scenes, Jacob reluctantly, gave me a hug. ๐Ÿ˜‚๐Ÿค™๐Ÿพ. A very special day we had on our #Skyscraper set. #JacobOConnor #Hero","author_name":"therock","author_url":"https://www.instagram.com/therock","author_id":232192182,"media_id":"1597190302137138286_232192182","provider_name":"Instagram","provider_url":"https://www.instagram.com","type":"rich","width":658,"height":null,"html":"&#lt;blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-version=\"7\" style=\" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\"&#gt;&#lt;div style=\"padding:8px;\"&#gt; &#lt;div style=\" background:#F8F8F8; line-height:0; margin-top:40px; padding:50.0% 0; text-align:center; width:100%;\"&#gt; &#lt;div style=\" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;\"&#gt;&#lt;/div&#gt;&#lt;/div&#gt; &#lt;p style=\" margin:8px 0 0 0; padding:0 4px;\"&#gt; &#lt;a href=\"https://www.instagram.com/p/BYqXB4VlTxu/\" style=\" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;\" target=\"_blank\"&#gt;Ladies and gentlemen, I finally met this real life 10yr old hero, Jacob O'Connor. He rescued his 2yr old brother after finding him facedown in their pool. I said, not only do I shake hands, but when I meet heroic kids, I give hugs.. now get in here. Despite the fact I looked like 9 ways of hell, battered and bloodied from my scenes, Jacob reluctantly, gave me a hug. ๐Ÿ˜‚๐Ÿค™๐Ÿพ. A very special day we had on our #Skyscraper set. #JacobOConnor #Hero&#lt;/a&#gt;&#lt;/p&#gt; &#lt;p style=\" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;\"&#gt;A post shared by therock (@therock) on &#lt;time style=\" font-family:Arial,sans-serif; font-size:14px; line-height:17px;\" datetime=\"2017-09-05T13:59:02+00:00\"&#gt;Sep 5, 2017 at 6:59am PDT&#lt;/time&#gt;&#lt;/p&#gt;&#lt;/div&#gt;&#lt;/blockquote&#gt;\n&#lt;script async defer src=\"//platform.instagram.com/en_US/embeds.js\"&#gt;&#lt;/script&#gt;","thumbnail_url":"https://scontent-atl3-1.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/21297042_269064316915947_1991729575293353984_n.jpg","thumbnail_width":640,"thumbnail_height":640}

O'Conner, his younger brother, and their mother flew out to Vancouver to meet the actor.

{"version":"1.0","title":"Surprise! (mama shedding a few happy tears for her boys) \nI told Jacob and his brother Gavin that when kids visit my movie sets, it's like Willy Wonka's chocolate factory because children get to eat all the chocolate and sweets they want and the best part is...IT'S ALL FREE. \nWell someone has to pay for it, but it ain't me or the kids lol. \nThank you to our entire #Skyscraper crew for all doing their part to make this visit special for this family. \n#OnSet #RockWonka #OConnorFamily #SugarRush๐Ÿซ","author_name":"therock","author_url":"https://www.instagram.com/therock","author_id":232192182,"media_id":"1597206773294869317_232192182","provider_name":"Instagram","provider_url":"https://www.instagram.com","type":"rich","width":658,"height":null,"html":"&#lt;blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-version=\"7\" style=\" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\"&#gt;&#lt;div style=\"padding:8px;\"&#gt; &#lt;div style=\" background:#F8F8F8; line-height:0; margin-top:40px; padding:38.425925925925924% 0; text-align:center; width:100%;\"&#gt; &#lt;div style=\" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;\"&#gt;&#lt;/div&#gt;&#lt;/div&#gt; &#lt;p style=\" margin:8px 0 0 0; padding:0 4px;\"&#gt; &#lt;a href=\"https://www.instagram.com/p/BYqaxkTFqtF/\" style=\" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;\" target=\"_blank\"&#gt;Surprise! (mama shedding a few happy tears for her boys) I told Jacob and his brother Gavin that when kids visit my movie sets, it's like Willy Wonka's chocolate factory because children get to eat all the chocolate and sweets they want and the best part is...IT'S ALL FREE. Well someone has to pay for it, but it ain't me or the kids lol. Thank you to our entire #Skyscraper crew for all doing their part to make this visit special for this family. #OnSet #RockWonka #OConnorFamily #SugarRush๐Ÿซ&#lt;/a&#gt;&#lt;/p&#gt; &#lt;p style=\" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;\"&#gt;A post shared by therock (@therock) on &#lt;time style=\" font-family:Arial,sans-serif; font-size:14px; line-height:17px;\" datetime=\"2017-09-05T14:31:46+00:00\"&#gt;Sep 5, 2017 at 7:31am PDT&#lt;/time&#gt;&#lt;/p&#gt;&#lt;/div&#gt;&#lt;/blockquote&#gt;\n&#lt;script async defer src=\"//platform.instagram.com/en_US/embeds.js\"&#gt;&#lt;/script&#gt;","thumbnail_url":"https://scontent-atl3-1.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/21371953_275607109510028_9041378256590209024_n.jpg","thumbnail_width":640,"thumbnail_height":491}

"Surprise! I told Jacob and his brother Gavin that when kids visit my movie sets, it's like Willy Wonka's chocolate factory because children get to eat all the chocolate and sweets they want and the best part is... IT'S ALL FREE," Johnson said.

Jacob even wore a shirt he made that featured Johnson holding his two dogs, Brutus and Hobbs, that he also saved from a swimming pool.

Johnson wrote, "Seeing that picture on this boy's shirt, got me in the gut."

{"version":"1.0","title":"Jacob was super nervous and shy the whole time we hung out, so it was fun getting him to laugh and talk. He threw me for an unexpected spin when he showed up on set wearing a shirt that he proudly made with my bull insignia on the front and on the back was the picture of me holding our two puppies, Brutus and Hobbs, after I rescued them from our pool. \nSeeing that picture on this boy's shirt, got me in the gut. Eventually, we would lose Brutus to heaven, but it wasn't the picture of Brutus that made me tear up, it was the fact that this 10yr old kid, had a heart big enough to put our puppies on his shirt after he saved his little 2yr old brother's life. \nWhat a special day. What a special kid. Thanks Jacob for being awesome and for being the kind of person we all aspire to be. ~ DJ","author_name":"therock","author_url":"https://www.instagram.com/therock","author_id":232192182,"media_id":"1597392149149980787_232192182","provider_name":"Instagram","provider_url":"https://www.instagram.com","type":"rich","width":658,"height":null,"html":"&#lt;blockquote class=\"instagram-media\" data-instgrm-captioned data-instgrm-version=\"7\" style=\" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);\"&#gt;&#lt;div style=\"padding:8px;\"&#gt; &#lt;div style=\" background:#F8F8F8; line-height:0; margin-top:40px; padding:28.10185185185185% 0; text-align:center; width:100%;\"&#gt; &#lt;div style=\" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;\"&#gt;&#lt;/div&#gt;&#lt;/div&#gt; &#lt;p style=\" margin:8px 0 0 0; padding:0 4px;\"&#gt; &#lt;a href=\"https://www.instagram.com/p/BYrE7JBFRhz/\" style=\" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;\" target=\"_blank\"&#gt;Jacob was super nervous and shy the whole time we hung out, so it was fun getting him to laugh and talk. He threw me for an unexpected spin when he showed up on set wearing a shirt that he proudly made with my bull insignia on the front and on the back was the picture of me holding our two puppies, Brutus and Hobbs, after I rescued them from our pool. Seeing that picture on this boy's shirt, got me in the gut. Eventually, we would lose Brutus to heaven, but it wasn't the picture of Brutus that made me tear up, it was the fact that this 10yr old kid, had a heart big enough to put our puppies on his shirt after he saved his little 2yr old brother's life. What a special day. What a special kid. Thanks Jacob for being awesome and for being the kind of person we all aspire to be. ~ DJ&#lt;/a&#gt;&#lt;/p&#gt; &#lt;p style=\" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;\"&#gt;A post shared by therock (@therock) on &#lt;time style=\" font-family:Arial,sans-serif; font-size:14px; line-height:17px;\" datetime=\"2017-09-05T20:40:04+00:00\"&#gt;Sep 5, 2017 at 1:40pm PDT&#lt;/time&#gt;&#lt;/p&#gt;&#lt;/div&#gt;&#lt;/blockquote&#gt;\n&#lt;script async defer src=\"//platform.instagram.com/en_US/embeds.js\"&#gt;&#lt;/script&#gt;","thumbnail_url":"https://scontent-atl3-1.cdninstagram.com/t51.2885-15/s640x640/sh0.08/e35/21373723_478222065874806_2488066368365133824_n.jpg","thumbnail_width":640,"thumbnail_height":359}