40 lines
850 B
TypeScript
40 lines
850 B
TypeScript
import { DatePicker } from '@yz1311/react-native-wheel-picker'
|
|
import { useState } from 'react'
|
|
import { Button, Text, View } from 'react-native'
|
|
import { ADatePicker } from '@/components/common/ao'
|
|
|
|
export default function Chat() {
|
|
const [show, setShow] = useState(false)
|
|
return (
|
|
<>
|
|
<View className="mt-12">
|
|
<Button
|
|
title="测试"
|
|
onPress={() => {
|
|
setShow(true)
|
|
}}
|
|
>
|
|
</Button>
|
|
{/* <DatePicker
|
|
isModal={true}
|
|
modalVisible={show}
|
|
onPickerCancel={() => {
|
|
setShow(false)
|
|
}}
|
|
/> */}
|
|
|
|
<ADatePicker
|
|
show={show}
|
|
onConfirm={(val) => {
|
|
setShow(false)
|
|
}}
|
|
onClose={() => {
|
|
setShow(false)
|
|
}}
|
|
/>
|
|
</View>
|
|
</>
|
|
|
|
)
|
|
}
|