npmchenwei111
Version:
test1111
27 lines (23 loc) • 485 B
JavaScript
/**
* Created by johnwatson on 27/06/2017.
*/
import React, { Component } from 'react'
import { StyleSheet, View } from 'react-native'
// local util
import { px2dp } from '../../utils/Px2dp'
class SolidLine extends Component {
constructor () {
super()
}
render () {
return (
<View style={[styles.line, this.props.style]}/>
)
}
}
const styles = StyleSheet.create(
{
line: {height: px2dp(0.5), backgroundColor: '#ccc'}
}
)
export default SolidLine