O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sharing content on Facebook

Social media is an incredible platform to spread a message, image, or any sort of content out to the world. Facebook is the de-facto leader in social media, with the furthest reach. We live in a day and age where a celebrity's post on Facebook will generate worldwide news coverage. How awesome would it be if you had a user who has a large social media following share something on Facebook using your application?

In this recipe, we will use the Facebook SDK for React Native to share some content using our application. We will have a button that will show the Facebook share dialog and link to the Packt website.

Getting ready

For this recipe, we created a React Native application titled FbLogin. Your application should have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required