Skip to content

Instantly share code, notes, and snippets.

@dbani-dev
Created August 16, 2017 06:53
Show Gist options
  • Save dbani-dev/ae35cb21db3f7b1125653e6b70015df8 to your computer and use it in GitHub Desktop.
Save dbani-dev/ae35cb21db3f7b1125653e6b70015df8 to your computer and use it in GitHub Desktop.
const styles = StyleSheet.create({
eventItem: {
flex: 1,
alignItems: 'flex-end'
},
eventHighlight: {
flexDirection: 'row',
borderWidth: 1,
borderStyle: 'solid',
paddingTop: 1,
paddingBottom: 1,
paddingLeft: 8,
paddingRight: 8,
marginRight: 10,
marginTop: 3,
borderRadius: 20
},
})
const EventCount = withTheme(({count, theme: { color }}) => (
<View style={styles.eventItem}>
<View style={[styles.eventHighlight, { borderColor: color}]}>
<Text style={{color}}>{count}</Text>
</View>
</View>
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment