Created
April 18, 2020 00:07
-
-
Save marshallmurphy/3d6ba250966838a8346bfc1427a0ff11 to your computer and use it in GitHub Desktop.
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
// BarGraph/index.js | |
import React from 'react'; | |
import { StyleSheet, Text, View, Dimensions } from 'react-native'; | |
import XAxis from './xAxis'; | |
import YAxis from '/yAxis'; | |
import Columns from './Columns'; | |
export default function BarGraph() { | |
let width = Dimensions.get('screen').width; | |
let xAxisHeight = 30; | |
return ( | |
<View style={styles.main}> | |
<YAxis /> | |
<Columns /> | |
<XAxis | |
width={width - 10} | |
height={xAxisHeight} /> | |
</View> | |
); | |
} | |
const styles = StyleSheet.create({ | |
main: { | |
marginVertical: 25, | |
marginHorizontal: 0, | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment