Answers for "two button in one row react native"

2

two button in one row 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 "two button in one row react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language