Commit c28b2eda by jhrabal

radegast

parent 795cf8b4
...@@ -105,7 +105,7 @@ class App extends React.PureComponent { ...@@ -105,7 +105,7 @@ class App extends React.PureComponent {
buttons.push( buttons.push(
<TouchableOpacity key={ i } onPress={ this.onPress(i) }> <TouchableOpacity key={ i } onPress={ this.onPress(i) }>
<View style={styles.rating}> <View style={styles.rating}>
<Text style={styles.ratingNumber}>{ i }</Text> <View style={styles.ratingNumber}><Text>{ i }</Text></View>
{ showInfo && lastRating && i <= lastRating ? <Image source={ require('./assets/siska.png') } style={ styles.ratingImage } /> : null } { showInfo && lastRating && i <= lastRating ? <Image source={ require('./assets/siska.png') } style={ styles.ratingImage } /> : null }
</View> </View>
</TouchableOpacity> </TouchableOpacity>
...@@ -179,7 +179,10 @@ const styles = EStyleSheet.create({ ...@@ -179,7 +179,10 @@ const styles = EStyleSheet.create({
borderRadius: '1rem', borderRadius: '1rem',
width: '2rem', width: '2rem',
height: '2rem', height: '2rem',
textAlign: 'center' textAlign: 'center',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}, },
ratingImage: { ratingImage: {
...@@ -190,5 +193,4 @@ const styles = EStyleSheet.create({ ...@@ -190,5 +193,4 @@ const styles = EStyleSheet.create({
} }
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment