@mpxjs/webpack-plugin
Version:
mpx compile core
24 lines (23 loc) • 826 B
JSX
import React from 'react';
import { StyleSheet, View } from 'react-native';
const _PickerViewIndicator = ({ itemHeight, indicatorItemStyle, indicatorContainerStyle }) => {
return (<View style={[styles.indicatorContainer, indicatorContainerStyle]} pointerEvents={'none'}>
<View style={[styles.selection, { height: itemHeight }, indicatorItemStyle]}/>
</View>);
};
const styles = StyleSheet.create({
indicatorContainer: {
...StyleSheet.absoluteFillObject,
justifyContent: 'center',
alignItems: 'center',
zIndex: 200
},
selection: {
borderTopWidth: 1,
borderBottomWidth: 1,
borderColor: 'rgba(0, 0, 0, 0.05)',
alignSelf: 'stretch'
}
});
_PickerViewIndicator.displayName = 'MpxPickerViewIndicator';
export default _PickerViewIndicator;