Answers for "put two buttons in a row in react native"

2

put two buttons in a row in react native

render() {
  return (
    <View style={styles.container}>
      <View style={styles.button} />
      <View style={styles.button} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    flexDirection: 'row',
    justifyContent: 'space-between'
  },
  button: {
    backgroundColor: 'green',
    width: '40%',
    height: 40
  }
});
Posted by: Guest on October-03-2020

Code answers related to "put two buttons in a row in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language