/
InboxHeader.js
43 lines (39 loc) · 926 Bytes
/
InboxHeader.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import React from "react";
import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
import ChevronLeft from "./icons/ChevronLeft";
const Header = ({ onBackPress}) => {
return (
<TouchableOpacity
onPress={onBackPress}
style={[styles.header]}
>
<View style={styles.backButton}>
<ChevronLeft width="16" height="16" color="gray" />
<Text style={[styles.title]}>Inbox</Text>
</View>
</TouchableOpacity>
);
};
const styles = StyleSheet.create({
header: {
flexDirection: "row",
alignItems: "center",
paddingVertical: 16,
paddingHorizontal: 16,
marginBottom: 8,
borderRadius: 8,
borderWidth: 1,
borderColor: "#ddd",
backgroundColor: "#fff",
},
backButton: {
flexDirection: "row",
alignItems: "center",
marginRight: 8,
},
title: {
fontSize: 14,
color: "black",
},
});
export default Header;