chore: clean up
This commit is contained in:
parent
38343faac7
commit
9dd1aa743d
@ -43,7 +43,7 @@ export default function App() {
|
||||
<Text style={styles.subheading}>Example Five</Text>
|
||||
<ExampleFive />
|
||||
</View>
|
||||
|
||||
|
||||
<View style={styles.section}>
|
||||
<Text style={styles.subheading}>SheetJS Example</Text>
|
||||
<SheetJSExample />
|
||||
|
@ -8,42 +8,35 @@ export const BasicExample = () => {
|
||||
['GeorgeW Bush', '43'],
|
||||
['Barack Obama', '44'],
|
||||
['Donald Trump', '45'],
|
||||
['Joseph Biden', '46']
|
||||
['Joseph Biden', '46'],
|
||||
];
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Table borderStyle={{ borderWidth: 1 }}>
|
||||
<Row
|
||||
data={tableHead}
|
||||
style={styles.head}
|
||||
textStyle={styles.headText}
|
||||
/>
|
||||
<Rows
|
||||
data={tableData}
|
||||
textStyle={styles.text}
|
||||
/>
|
||||
<Row data={tableHead} style={styles.head} textStyle={styles.headText} />
|
||||
<Rows data={tableData} textStyle={styles.text} />
|
||||
</Table>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
padding: 16,
|
||||
paddingTop: 30,
|
||||
backgroundColor: '#fff'
|
||||
backgroundColor: '#fff',
|
||||
},
|
||||
head: {
|
||||
height: 44,
|
||||
backgroundColor: '#C6F3E0'
|
||||
backgroundColor: '#C6F3E0',
|
||||
},
|
||||
text: {
|
||||
textAlign: 'center',
|
||||
padding: 5
|
||||
padding: 5,
|
||||
},
|
||||
headText: {
|
||||
textAlign: 'center',
|
||||
fontWeight: 'bold'
|
||||
}
|
||||
});
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user