I am new to react native and I am trying to achieve 2 buttons side by side I have tried it and I couldn't achieve it as I have already inserted 2 buttons it is appearing one below another
Here is my code:
<View style={styles.buttonStyle}>
<Button
title={"Pause"}
style={styles.buttonStyle}
onPress={() => {
this.setState({ paused: true });
}}
color="#841584"
/>
</View>
<View style={styles.buttonStyle}>
<Button
title={"Play"}
onPress={() => {
this.setState({ paused: false });
}}
color="green"
/>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
backgroundVideo: {
position: "absolute",
top: 0,
left: 0,
bottom: 0,
right: 0
},
buttonStyle: {
marginHorizontal: 20,
marginTop: 5
}
});
export default VideoPlayer;