var React = require('react-native'); var { StyleSheet, View, Text, } = React; var PriceMarker = React.createClass({ getDefaultProps() { return { fontSize: 13, }; }, render() { return ( $ {this.props.amount} ); }, }); var styles = StyleSheet.create({ container: { flexDirection: 'column', alignSelf: 'flex-start', }, bubble: { flex: 0, flexDirection: 'row', alignSelf: 'flex-start', backgroundColor: '#FF5A5F', padding: 2, borderRadius: 3, borderColor: '#D23F44', borderWidth: 0.5, }, dollar: { color: '#FFFFFF', fontSize: 10, }, amount: { color: '#FFFFFF', fontSize: 13, }, arrow: { backgroundColor: 'transparent', borderWidth: 4, borderColor: 'transparent', borderTopColor: '#FF5A5F', alignSelf: 'center', marginTop: -9, }, arrowBorder: { backgroundColor: 'transparent', borderWidth: 4, borderColor: 'transparent', borderTopColor: '#D23F44', alignSelf: 'center', marginTop: -0.5, }, }); module.exports = PriceMarker;