vertical align center react native view
container :{
justifyContent: 'center', //Centered vertically
alignItems: 'center', // Centered horizontally
flex:1
}
vertical align center react native view
container :{
justifyContent: 'center', //Centered vertically
alignItems: 'center', // Centered horizontally
flex:1
}
align text center react native
<View style={{flex: 1,textAlign: 'center',alignItems: 'center', textAlignVertical: 'center' }}>
how to align text inside a touchable opacity
<View style={{ flex: 1, flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }}>
<Icon type="MaterialCommunityIcons" name="barcode" />
<Text style={{ textAlign: 'center' }}>{urun_data.barkod}</Text>
</View>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us