I am using react-native and I am trying to create a view with two columns of elements. I want buttons on the right side and left side. I unfortunately am not using view, I am using native-base's content/container layout.
<Container style={styles.container}>
<Content padder style = {styles.content}>
<Button block
style = {styles.button}>
<Text style= {styles.text}>
Emergency Contacts
</Text>
</Button></Content></Container>
My Style is as follows:
import { StyleSheet, Dimensions } from "react-native"
const extraWidth = Dimensions.get('window').width/30;
const extraHeight = Dimensions.get('window').height/30;
const windowWidth = Dimensions.get('window').width;
const windowHeight = Dimensions.get('window').height;
export default StyleSheet.create({
container: {
backgroundColor: '#002F6C'
},
content: {
flexDirection: 'row',
flex: 1
},
button: {
marginBottom:25,
marginLeft:0,
marginRight:(windowWidth / 2),
backgroundColor: '#FFDD00'
},
text: {
color: '#000000'
}
})
I've been trying to change the container and content's style to allow for a setup but have not found a solution yet. Thank you!