Getting ready
Let's create an empty app called facebook-widget.
We are going to need some images to display a fake timeline. A few pictures of your cat will work, or you can use the cat pictures included in the corresponding repository on GitHub (https://github.com/warlyware/react-native-cookbook/tree/master/chapter-7/facebook-widget). We'll also need five icons to display the five reactions, such as, angry, laughing, heart, and surprised, which can also be found in the corresponding repository.
To start we'll create two JavaScript files in our empty app: Reactions/index.js and Reactions/Icon.js. We need to copy our cat pictures to an images/ folder in the root of the app, and the reaction icons should be placed in Reactions/images.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access