I want to show Text just on right side of my button but the Text didn't show in one line as it is showing like "Cre" in one line and other text in different line, The problem is with my Icon width and height which is less so it is making its child with same width and height but I can't increase my width and height. This is my button which has ImageBackGround as its child inside:
<TouchableHighlight style={styles.back} onPress={() => this.backBtn()}>
<ImageBackground source={require('../assets/back.png')}
style={{ width: 40, height: 45,position: 'absolute', justifyContent: 'flex-start'}}
resizeMode="contain">
<View style={{position: 'absolute',right: -50,alignSelf:'center'}}>
<Text style = {{color:"#1589FF", fontSize:22}} >Create an Account </Text>
</View>
</ImageBackground>
</TouchableHighlight>
The Problem is that this text "Create an Account" not showing in single line.