Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yaogengzhu/rn-picker-modal

react-native-picker、support choose date
https://github.com/yaogengzhu/rn-picker-modal

Last synced: 6 days ago
JSON representation

react-native-picker、support choose date

Awesome Lists containing this project

README

        

# rn-picker-modal

一个简单的`rn-picker-modal`组件

```bash
yarn add rn-picker-modal
```

基础用法
```js
import { DatePicker } from 'rn-picker-modal'

const Index = () => {
const dateRef = useRef();
const [date, setDate] = useState(new Date());

return (

{
setDate(v)
}}
/>
{
dateRef.current.toggleModal();
}}
/>

);
};
```

### 演示

```js
import { Wheel } from 'rn-picker-modal'
import { View, SafeAreaView } from 'react-native'

const Index = () => {
const dateRef = useRef();
return (





);
};

```