Let’s add the src/components/Buttons/IconButton component.
This component must return the TouchableOpacity element.
The styles for this component must be an array of styles.
The first element of the array must contain a padding style of 3.
The second element in the array is the passed style property, which is an empty object by default.
The onPress property of the component must be forwarded to TouchableOpacity.
Inside the TouchableOpacity add the Icon component. Pass the name, sizeand color properties into it.

This task is part of the Full-Stack JavaScript Course.
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.