ListItemDivider.js
611 Bytes
import React, {Component} from 'react';
import Global from '../utils/Global';
import {
View,
PixelRatio,
Dimensions,
} from 'react-native';
const {width} = Dimensions.get('window');
export default class ListItemDivider extends Component {
render() {
var height = 1 / PixelRatio.get();
return (
<View style={{width: width, height: height, backgroundColor: '#FFFFFF'}}>
<View style={{
width: width - 20,
height: height,
marginLeft: 10,
marginRight: 10,
backgroundColor: Global.dividerColor
}}/>
</View>
);
}
}