File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/components/dateTimePicker Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,11 @@ class DateTimePicker extends Component {
89
89
/**
90
90
* Props to pass the Dialog component
91
91
*/
92
- dialogProps : PropTypes . object
92
+ dialogProps : PropTypes . object ,
93
+ /**
94
+ * style to apply to the iOS dialog header
95
+ */
96
+ headerStyle : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . number ] )
93
97
} ;
94
98
95
99
static defaultProps = {
@@ -202,10 +206,10 @@ class DateTimePicker extends Component {
202
206
} ;
203
207
204
208
renderHeader ( ) {
205
- const { useCustomTheme} = this . props ;
209
+ const { useCustomTheme, headerStyle } = this . props ;
206
210
207
211
return (
208
- < View row spread bg-white paddingH-20 style = { styles . header } >
212
+ < View row spread bg-white paddingH-20 style = { [ styles . header , headerStyle ] } >
209
213
< Button
210
214
link
211
215
iconSource = { Assets . icons . x }
You can’t perform that action at this time.
0 commit comments