react-native-modern-header
Version:
Fully customizable Modern Header View for React Native
28 lines (25 loc) • 531 B
text/typescript
import { ViewStyle, StyleSheet } from "react-native";
interface Style {
container: ViewStyle;
leftComponentStyle: ViewStyle;
rightComponentStyle: ViewStyle;
}
export default StyleSheet.create<Style>({
container: {
top: 0,
height: 70,
width: "100%",
backgroundColor: "#fff",
flexDirection: "row",
alignItems: "center",
justifyContent: "center",
},
leftComponentStyle: {
left: 16,
position: "absolute",
},
rightComponentStyle: {
right: 16,
position: "absolute",
},
});