diff --git a/README.md b/README.md
index 8de9726..7943ae5 100644
--- a/README.md
+++ b/README.md
@@ -29,19 +29,68 @@ This is a React Native Date Picker with following main features:
androidVariant="iosClone" | androidVariant="nativeAndroid" |
-
+
+## Requirements
+
+- Xcode >= 11.6
+- If using React Native 0.64, 0.64.2 or later must be used.
+- If using Expo, SDK 42 or later must be used.
+
## Installation
-1. ```npm install react-native-date-picker``` or ```yarn add react-native-date-picker```
-1. `(cd ios && pod install)` (If you're using CocoaPods)
-1. Rebuild the project (e.g. `react-native run-android` or `react-native run-ios`)
+If you're using expo, follow these steps instead.
-If you're having troubles after following these steps, there might be a linking issue or you're using Expo.
+1. Download package with npm or yarn
-## Requirements
+```
+npm install react-native-date-picker
+```
-- Xcode >= 11.6
-- When using React Native v0.64, `0.64.2` or later should be used.
+```
+yarn add react-native-date-picker
+```
+
+2. Install pods
+
+```
+cd ios && pod install
+```
+
+3. Rebuild the project
+
+```
+npx react-native run-android
+npx react-native run-ios
+```
+
+If you're having troubles after following these steps, there might be a linking issue.
+
+## Using Expo
+
+Expo is supported by creating a custom client.
+
+1. Create the custom client:
+
+```
+expo install react-native-date-picker expo-dev-client
+```
+
+2. Build the app
+
+Locally
+
+```
+expo run:ios
+expo run:android
+```
+
+Or in the cloud
+
+```
+eas build -p all --profile development
+```
+
+If you're having troubles, read the pinned comment here.
## Minimal Example
@@ -50,55 +99,48 @@ import React, { useState } from 'react'
import DatePicker from 'react-native-date-picker'
export default () => {
-
const [date, setDate] = useState(new Date())
- return (
-
- )
+ return
}
-
```
-## Properties
+## Props
-| Prop | Description | Screenshots iOS | Screenshot Android |
-| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| Prop | Description | Screenshots iOS | Screenshot Android |
+| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| date | The currently selected date. |
| onDateChange | Date change handler |
| fadeToColor | Android picker is fading towards this background color. {color, 'none'} |
-| maximumDate | Maximum selectable date.
Example: `new Date("2021-12-31")` |
-| minimumDate | Minimum selectable date.
Example: `new Date("2021-01-01")` |
-| androidVariant | Choose from 2 android style variants. {'iosClone', 'nativeAndroid'} (default: 'iosClone') | | 
|
-| minuteInterval | The interval at which minutes can be selected. |
|
|
+| maximumDate | Maximum selectable date.
Example: `new Date("2021-12-31")` |
+| minimumDate | Minimum selectable date.
Example: `new Date("2021-01-01")` |
+| androidVariant | Choose from 2 android style variants. {'iosClone', 'nativeAndroid'} (default: 'iosClone') | | 
|
+| minuteInterval | The interval at which minutes can be selected. |
|
|
| mode | The date picker mode. {'datetime', 'date', 'time'} | 

| 

|
-| locale | The locale for the date picker. Changes language, date order and am/pm preferences. Value needs to be a Locale ID. |
|
|
-| textColor | Changes the text color. ⚠ Colors other than black (#000000) or white (#ffffff) will replace the "Today" string with a date on iOS 13 or higher. |
|
|
+| locale | The locale for the date picker. Changes language, date order and am/pm preferences. Value needs to be a Locale ID. |
|
|
+| textColor | Changes the text color. ⚠ Colors other than black (#000000) or white (#ffffff) will replace the "Today" string with a date on iOS 13 or higher. |
|
|
| timeZoneOffsetInMinutes | Timezone offset in minutes (default: device's timezone) |
-| dividerHeight | Change the divider height (only supported for iosClone) |
-| is24hourSource | Change how the 24h mode (am/pm) should be determined, by device settings or by locale. {'locale', 'device'} (android only, default: 'device') |
+| dividerHeight | Change the divider height (only supported for iosClone) |
+| is24hourSource | Change how the 24h mode (am/pm) should be determined, by device settings or by locale. {'locale', 'device'} (android only, default: 'device') |
+
## Linking
-This package supports automatic linking. Usually, the only thing you need to do is to install the package, the cocoapods dependencies (as descripted above). Then rebuild the project by running `react-native run-ios`, `react-native run-android` or start the build from within Xcode/Android Studio. If you'running a React Native version below 0.60 or your setup is having issues with automatic linking, you can run `npx react-native link react-native-date-picker` and rebuild. In some occations you'll have to manually link the package. Instructions in this issue.
+
+This package supports automatic linking. Usually, the only thing you need to do is to install the package, the cocoapods dependencies (as described above). Then rebuild the project by running `react-native run-ios`, `react-native run-android` or start the build from within Xcode/Android Studio. If you're running a React Native version below 0.60 or your setup is having issues with automatic linking, you can run `npx react-native link react-native-date-picker` and rebuild. In some occations you'll have to manually link the package. Instructions in this issue.
## About
-📅 React Native Date Picker is a cross platform component working on both iOS and Android. It uses the slightly improved DatePickerIOS on iOS and a custom picker on Android which has similar look and feel. The datetime mode might be particulary interesting if you looking for a way to avoid two different popup pickers on android.
+📅 React Native Date Picker is a cross platform component working on both iOS and Android. It uses the slightly improved DatePickerIOS on iOS and a custom picker on Android which has similar look and feel. The datetime mode might be particularly interesting if you looking for a way to avoid two different popup pickers on android.
## FAQ
### How do I change the divider color?
-The color of the divider, separator (or whatever you choose to call it) can only be changed on android for the androidNative variant. To change it, add the following to your android AppTheme. The theme is often found in styles.xml.
+
+The color of the divider, separator (or whatever you choose to call it) can only be changed on android for the androidNative variant. To change it, add the following to your android AppTheme. The theme is often found in styles.xml.
+
```xml
- #ff0000
```
-### Can I use expo?
-
-Unfortunately, expo does not support this date picker at the moment. Upvote this feature request if you would like to have it included.
-
### How do i change the date order? (To YYYY-MM-DD etc)
The order is determined by the `locale` prop. Set for instance `locale='fr'`to get the french preference.
@@ -113,7 +155,7 @@ This is unfortunately not possible due to the limitation in DatePickerIOS. You s
### Why does the Android app crash in production?
-If you have enabled Proguard for Android you might need to ignore some classes to get the the picker to work propery in android production/release mode. Add these lines to you proguard file (often called `proguard-rules.pro`):
+If you have enabled Proguard for Android you might need to ignore some classes to get the the picker to work properly in android production/release mode. Add these lines to you proguard file (often called `proguard-rules.pro`):
```
-keep public class net.time4j.android.ApplicationStarter
@@ -121,6 +163,7 @@ If you have enabled
-The so called "iOS clone" looks and works similar to the ios version. It shows normaly 5 lines of dates. It is enabled by default. |
+ |
The so called "iOS clone" looks and works similar to the ios version. It shows normally 5 lines of dates. It is enabled by default. |
The "Android Native" version looks more like a standard native implementation on Android. The divider color can be changed by adding the following to you Android theme:
<item name="colorControlNormal">#03b6fc</item>
|
```js
-androidVariant="iosClone"
+androidVariant = 'iosClone'
```
+
|
```js
-androidVariant="nativeAndroid"
+androidVariant = 'nativeAndroid'
```
+
|
-
-
## Three different modes
+
Here are some more info about the three different picker modes that are available.
### Date time picker
+
Using the datetime mode gives you a react native date time picker where both date and time can be selected at the same time. The todays date will be replays with the string "Today" translated to the desired language. This is the default mode and look like this.
iOS | Android |
@@ -164,7 +209,7 @@ Using the datetime mode gives you a react native date time picker where both dat
-Add the optional `datetime` mode property to use this mode. Since datetime is default this could also be exclude.
+Add the optional `datetime` mode property to use this mode. Since datetime is default this could also be exclude.
```jsx
iOS | Android |
|
-Just add the value `date` to mode property:
+Just add the value `date` to mode property:
```jsx
iOS | Android |
|
-Set mode property to `time` to show the time picker:
+Set mode property to `time` to show the time picker:
```jsx
```
-
## Why another React Native datepicker?
-One of the strongest reason to use react native is its cross platform compatibility. Most of the official components are working seamlessly on both platforms but there are some with single platform support only. The react native datepicker is one example where both DatePickerIOS and DatePickerAndroid are present. The reason for this is that the default date picker is implemented in seperate ways, iOS normally have an integrated view picker wheel where android has different pickers in a dialog format.
-
-If you want to use these pickers you can combile the official ones or a third party module that already done that for you. If you on the other hand want have a more unified design between your android and ios app, this module is for you. The datetime mode can be particularly helpful to avoid 2 separate picker dialogs on android.
+One of the strongest reason to use react native is its cross platform compatibility. Most of the official components are working seamlessly on both platforms but there are some with single platform support only. The react native datepicker is one example where both DatePickerIOS and DatePickerAndroid are present. The reason for this is that the default date picker is implemented in separate ways, iOS normally have an integrated view picker wheel where android has different pickers in a dialog format.
+If you want to use these pickers you can combine the official ones or a third party module that already done that for you. If you on the other hand want have a more unified design between your android and ios app, this module is for you. The datetime mode can be particularly helpful to avoid 2 separate picker dialogs on android.