Skip to content

Commit 6e89c08

Browse files
committed
Iphone smaller screen UI issue fixed
1 parent 683adbe commit 6e89c08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/datepicker/DatePickerDialog.ios.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default class DatePickerDialog extends Component{
105105
<View style={styles.background}>
106106
<View style={{flexDirection:'row'}}>
107107
<View style={styles.modalContent}>
108-
<View style={{marginTop: 24, marginLeft: 16, marginRight:16}}>
108+
<View style={{marginTop: 24, marginLeft: 8, marginRight:8}}>
109109
<DatePickerIOS {...datePickerProps}
110110
mode="date"
111111
onDateChange={(date)=>{
@@ -159,10 +159,10 @@ const styles = StyleSheet.create({
159159
flex: 1,
160160
backgroundColor: '#FFFFFF',
161161
paddingTop: 8,
162-
paddingLeft: 16,
162+
paddingLeft: 8,
163163
paddingRight: 8,
164164
paddingBottom: 16,
165-
margin: 30
165+
margin: 16
166166
},
167167
buttonTextStyle: {
168168
textAlign:'center',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-datepicker-dialog",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "This library provides the cross-platform components for to open the date picker dialogs in effective way. It uses the native DatePickerAndroid & DatePickerIOS components. It will work for both ios & android.",
55
"main": "main-index.js",
66
"scripts": {

0 commit comments

Comments
 (0)