Dismensions("window").width
tercih edilen bir yöntem değil mi hocam ?
Neden olmasın;
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
paddingHorizontal: windowWidth * 0.05,
},
// diğer stil
image: {
marginVertical: windowWidth * 0.05,
height: windowWidth * 0.2,
width: windowWidth * 0.4,
},
// diğer stil
mainText: {
// diğer stil
fontSize: windowWidth * 0.04,
marginVertical: windowWidth * 0.03,
},
// diğer stil
button: {
// diğer stil
height: windowWidth * 0.1,
width: windowWidth * 0.7
// diğer stil
},
// diğer stil
iconContainer: {
// diğer stil
marginVertical: windowWidth * 0.03
},
});