-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExampleHeader.tsx
More file actions
39 lines (35 loc) · 862 Bytes
/
ExampleHeader.tsx
File metadata and controls
39 lines (35 loc) · 862 Bytes
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
import React from "react";
import { Text, StyleSheet, ViewStyle } from "react-native";
import Animated from "react-native-reanimated";
const styles = StyleSheet.create({
container: {
flex: 1,
width: "100%",
flexDirection: "row",
justifyContent: "center",
backgroundColor: "green",
paddingHorizontal: 10,
alignContent: "center",
alignItems: "center"
}
});
interface ExampleHeaderProps {
style?: Animated.AnimateStyle<ViewStyle>;
}
const ExampleHeader: React.FC<ExampleHeaderProps> = ({ style }) => {
return (
<Animated.View style={[styles.container, style]}>
<Text
style={{
color: "white",
fontSize: 16,
fontWeight: "600",
letterSpacing: 0.2
}}
>
Collapsible Header
</Text>
</Animated.View>
);
};
export default ExampleHeader;