<commit_before>import * as React from 'react'
import {ViewStyle} from 'react-native'
import type {Moment} from 'moment-timezone'
import type {
	AndroidNativeProps,
	IOSNativeProps,
} from '@react-native-community/datetimepicker'

export interface BaseDatetimePickerProps {
	// dep-specific
	initialDate: Moment
	minuteInterval?: 1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30
	mode: IOSProps['mode'] | AndroidProps['mode']
	format?: string
	onDateChange: (moment: Moment) => void

	// platform/wrapper components
	displayIos?: IOSProps['display']
	displayAndroid?: AndroidProps['display']
	showPickerIos?: boolean
	showPickerAndroid?: boolean
	showPickerButtonAndroid?: boolean
	style?: ViewStyle
	setShowPickerAndroid?: React.Dispatch<React.SetStateAction<boolean>>
	onChange?: () => void
}

interface IOSProps {
	mode: NonNullable<IOSNativeProps['mode']>
	display?: NonNullable<IOSNativeProps['display']>
}

interface AndroidProps {
	mode: NonNullable<AndroidNativeProps['mode']>
	display?: NonNullable<AndroidNativeProps['display']>
}

export type IosDatetimePickerProps = BaseDatetimePickerProps & IOSProps

export type AndroidDatetimePickerProps = BaseDatetimePickerProps & AndroidProps<commit_msg>fix styleprop type in datepicker types<commit_after>import * as React from 'react'
import {StyleProp, ViewStyle} from 'react-native'
import type {Moment} from 'moment-timezone'
import type {
	AndroidNativeProps,
	IOSNativeProps,
} from '@react-native-community/datetimepicker'

export interface BaseDatetimePickerProps {
	// dep-specific
	initialDate: Moment
	minuteInterval?: 1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30
	mode: IOSProps['mode'] | AndroidProps['mode']
	format?: string
	onDateChange: (moment: Moment) => void

	// platform/wrapper components
	displayIos?: IOSProps['display']
	displayAndroid?: AndroidProps['display']
	showPickerIos?: boolean
	showPickerAndroid?: boolean
	showPickerButtonAndroid?: boolean
	style?: StyleProp<ViewStyle>
	setShowPickerAndroid?: React.Dispatch<React.SetStateAction<boolean>>
	onChange?: () => void
}

interface IOSProps {
	mode: NonNullable<IOSNativeProps['mode']>
	display?: NonNullable<IOSNativeProps['display']>
}

interface AndroidProps {
	mode: NonNullable<AndroidNativeProps['mode']>
	display?: NonNullable<AndroidNativeProps['display']>
}

export type IosDatetimePickerProps = BaseDatetimePickerProps & IOSProps

export type AndroidDatetimePickerProps = BaseDatetimePickerProps & AndroidProps
{'fraction_non_alphanumeric': 0.1129229514879739, 'fraction_numerical': 0.013045250713412148, 'mean_word_length': 6.7413249211356465, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5187808', 'n_tokens_mistral': 763, 'n_tokens_neox': 724, 'n_words': 179}