react-native-common-date-picker
Version:
An awesome and cross-platform React Native date picker and calendar component for iOS and Android
74 lines (69 loc) • 1.65 kB
JavaScript
import {StyleSheet, Dimensions} from 'react-native';
export const toolBarStyles = StyleSheet.create({
view: {
flexDirection: 'row',
paddingTop: 8,
paddingBottom: 8,
justifyContent: 'space-between',
alignItems: 'center',
borderTopLeftRadius: 5,
borderTopRightRadius: 5,
backgroundColor: 'white',
borderBottomWidth: 0.5,
borderBottomColor: '#d3d3d3',
},
title: {
fontSize: 17,
},
cancelText: {
paddingVertical: 5,
paddingHorizontal: 15,
color: 'gray',
fontSize: 16,
},
confirmText: {
paddingVertical: 5,
paddingHorizontal: 15,
color: 'blue',
fontSize: 16,
},
});
export const weekBarStyles = StyleSheet.create({
view: {
flexDirection: 'row',
justifyContent: 'space-around',
marginBottom: 15,
margin: 6,
},
text: {
fontSize: 16,
color: '#3e3e3e',
},
});
export const listItemStyles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'white',
},
headerTitleContainer: {
marginTop: 10,
paddingVertical: 8,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
},
headerTitle: {
fontSize: 17,
color: '#3e3e3e',
},
dayContent: {
width: Dimensions.get('window').width, // Adapt to "horizontal" props.
flexDirection: 'row',
flexWrap: 'wrap',
},
day: {
textAlign: 'center',
paddingVertical: 3,
color: '#3e3e3e',
},
});