Skip to content

Commit ab27289

Browse files
committed
Changed presentationStyle on Android to fix warning
1 parent 01b13e6 commit ab27289

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Date/DatePickerInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import { useLatest } from '../utils'
66
import type { DatePickerInputProps } from './DatePickerInput.shared'
77
import DatePickerInputWithoutModal from './DatePickerInputWithoutModal'
88
import { StyleProp, ViewStyle } from 'react-native'
9+
import { Platform } from 'react-native'
910

1011
function DatePickerInput(
1112
{
1213
withModal = true,
1314
calendarIcon = 'calendar',
1415
animationType = 'slide',
15-
presentationStyle = 'fullScreen',
16+
presentationStyle = Platform.OS === 'ios' ? 'fullScreen' : 'pageSheet',
1617
...rest
1718
}: DatePickerInputProps,
1819
ref: any

0 commit comments

Comments
 (0)