Answers for "react native center view horizontally"

1

center element react native

var styles = StyleSheet.create({
    content:{
        flex:1,
        flexDirection:'row',
        alignItems:'center',
        justifyContent:'center'
    },
   …
});
Posted by: Guest on September-03-2020
0

align text center react native

<View style={{flex: 1,textAlign: 'center',alignItems: 'center', textAlignVertical: 'center' }}>
Posted by: Guest on December-24-2020
0

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>
Posted by: Guest on December-10-2020

Code answers related to "react native center view horizontally"

Code answers related to "Javascript"

Browse Popular Code Answers by Language