Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yaogengzhu/rn-picker-modal
- Owner: yaogengzhu
- Created: 2022-06-27T08:06:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T03:01:44.000Z (about 2 years ago)
- Last Synced: 2023-03-02T18:32:30.935Z (over 1 year ago)
- Language: JavaScript
- Size: 843 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 (
);
};```