-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e79e7bb
commit 7676d9a
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
# react-native-date-picker | ||
|
||
A cross platform date picker component for React Native. This component uses the default DatePickerIOS on iOS and a custom picker on Android which has similar look and feel. | ||
A cross platform date picker component for React Native. This component uses the default DatePickerIOS on iOS and a custom picker on Android which has similar look and feel. | ||
|
||
## Installation | ||
|
||
`$ yarn add @henninghall/react-native-date-picker` | ||
|
||
## Usage | ||
|
||
```js | ||
import Picker from '@henninghall/react-native-date-picker'; | ||
|
||
<Picker | ||
date={new Date()} | ||
onDateChange={(date) => console.log(date)} | ||
style={{ width: 300, height: 210 }} | ||
/> | ||
|
||
``` |