Let's build a Instagram feed app ๐Ÿ“ฑusing React Native & Expo. This will make you feel like a real mobile engineer who can make Instagram-like things.

Final Result

Final result

Features

Add the Instagram header

Final result

Download some nice images that might make a good instagram post. We'll hardcode these for now.

<View
  style={{
    height: 300 // Height of image
  }}
>
  <Image
    source={require('../assets/image.png)}
    style={{
      flex: 1,
      width: null,
      height: null
    }}
    resizeMode="cover"
  />
</View>

Name and Avatar

How we create a name and avatar

This is a simple flexbox layout.

<View ...>
  <Image ...>
  <Text ...>
</View>

Actions

Now we need to create the three bottoms at the bottom. Go back to discover your icons, and add some actions to each.

Like Action

For now, let's start by just using Alert) onPress.

<Feather
  name="heart"
  size={27}
  color="black"
  onPress={() => alert("Liked")}
/>

Now add the behavior to "like", and "unlike" when you click, and show the like count.

Let's create some simple fake data to represent our feed.

May the map be with you.

{feedData.map(feed => {
  return (
    ...
  )
}

Bonus: ScrollView

By default, we can't scroll. Check ScrollView to fix this simply.