...
|
...
|
@@ -26,7 +26,7 @@ export default class KeywordText extends React.Component { |
|
|
let {keyword, androiddata, onPressKeyword} = this.props;
|
|
|
let textColor = this.state.helight ? {color: 'rgb(66, 66, 66)'} : {color: 'rgb(191, 191, 191)'};
|
|
|
return (
|
|
|
<TouchableHighlight
|
|
|
<TouchableHighlight
|
|
|
style={styles.container}
|
|
|
underlayColor={'rgb(255, 255, 255)'}
|
|
|
onPress={() => {
|
...
|
...
|
@@ -43,11 +43,12 @@ export default class KeywordText extends React.Component { |
|
|
});
|
|
|
}}
|
|
|
>
|
|
|
<Text style={[styles.text, textColor]}>{keyword}</Text>
|
|
|
<Text style={[styles.text, textColor]} numberOfLines={1}>{keyword}</Text>
|
|
|
</TouchableHighlight>
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
let {width, height} = Dimensions.get('window');
|
|
|
|
|
|
let styles = StyleSheet.create({
|
|
|
container: {
|
...
|
...
|
@@ -60,10 +61,12 @@ let styles = StyleSheet.create({ |
|
|
borderRadius: 3,
|
|
|
borderWidth: 1,
|
|
|
margin: 4,
|
|
|
maxWidth: width - 52,
|
|
|
},
|
|
|
text: {
|
|
|
marginHorizontal: 10,
|
|
|
marginVertical: 6,
|
|
|
fontSize: 13,
|
|
|
fontSize: 13,
|
|
|
maxWidth: width - 64,
|
|
|
},
|
|
|
}); |
...
|
...
|
|