Created
June 23, 2022 08:27
-
-
Save socialwell-demos/9cd5e13ba58b31f361953662e3a5e4bc to your computer and use it in GitHub Desktop.
React Native Table Component TableHeader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import {View,Text,StyleSheet} from 'react-native' | |
import { color } from 'react-native-reanimated' | |
const TableHeader=()=> { | |
return ( | |
<View style={styles.tableHeading}> | |
<Text style={styles.tableHeadingText}>Name</Text> | |
<Text style={styles.tableHeadingText}>Address</Text> | |
<Text style={styles.tableHeadingText}>Contact</Text> | |
<Text style={styles.tableHeadingTextStatus}>Tags</Text> | |
</View> | |
) | |
} | |
const styles=StyleSheet.create({ | |
tableHeadingTextStatus:{ | |
fontSize:16, | |
width:207, | |
fontWeight:'900', | |
justifyContent:'center', | |
alignSelf:'center', | |
marginLeft:60, | |
color:'#2D3748' | |
}, | |
tableHeadingText:{ | |
fontSize:16, | |
marginLeft:30, | |
width:207, | |
fontWeight:'900', | |
justifyContent:'center', | |
alignSelf:'center', | |
textAlign:'left', | |
color:'#2D3748' | |
}, | |
tableHeading:{ | |
flexDirection:'row', | |
width:900, | |
backgroundColor:"#F7FAFC", | |
height:50, | |
color:'#2D3748' | |
}, | |
}) | |
export default TableHeader |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment