import React from 'react' import { StyleSheet, ViewStyle, TextStyle, View, Text } from 'react-native' import styleObject from './styles' const styles = StyleSheet.create(styleObject) export interface BadgeProps { style?: ViewStyle label?: string | number labelStyle?: TextStyle } export class Badge extends React.PureComponent { static defaultProps = { } constructor (props) { super(props) } render () { const { style, label, labelStyle } = this.props if (label != null) { return ( {label} ) } else { return ( ) } } }