This is the result that I hope.enter image description here
Here's my code
import React from 'react';
import {View, Text, SafeAreaView, Button, StyleSheet} from 'react-native';
import { useNavigation } from '@react-navigation/native';
const HomeScreen = (props) => {
const navigation = useNavigation();
return (
<SafeAreaView style={{flex: 1}}>
<View style={{flex: 1, padding: 100}}>
<View>
<View style={styles.container}>
<Button
style={styles.button}
title="aw"
onPress={() => navigation.navigate('cameraScreenStack')}
/>
<Button
style={styles.button}
title="bdsfw"
onPress={() => navigation.navigate('ledgerScreenStack')}
/>
</View>
<View style={styles.container}>
<Button
style={styles.button}
title="cwd"
onPress={() => navigation.navigate('recommendScreenStack')}
/>
<Button
style={styles.button}
title="ddfa"
onPress={() => navigation.navigate('settingScreenStack')}
/>
</View>
</View>
</View>
</SafeAreaView>
);
};
export default HomeScreen;
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
},
button: {
}
});
This picture is what it look likes right now. enter image description here
I want to make buttons bigger, padding between buttons, and unify button size. How can I fix my code?