728x90
import {View,Text,Dimensions,Pressable,StyleSheet} from 'react-native';
const { width, height } = Dimensions.get("screen");
function Test() {
return(
<View style={{ alignItems: "center" }}>
<Pressable style={styles.Btn}>
<Text style={{textAlign: "center"}}>이건 버튼이다 </Text>
</Pressable>
</View>
);
};
const styles =StyleSheet.create({
Btn:{
width: width * 0.9,
}
});
export default Test;
728x90