react-native-date-picker
Advanced tools
Comparing version 2.4.2 to 2.5.0
-- Merging decision tree log --- | ||
manifest | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
package | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:70-107 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:70-107 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
android:versionName | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
android:versionCode | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:1-3:12 | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
xmlns:android | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:11-69 | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml:1:11-69 | ||
uses-sdk | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml reason: use-sdk injection requested | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml reason: use-sdk injection requested | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
android:targetSdkVersion | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
android:minSdkVersion | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
ADDED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml | ||
INJECTED from /Users/henninghall/Projects/react-native-date-picker/examples/example-react-native-v0.59.9/node_modules/react-native-date-picker/android/src/main/AndroidManifest.xml |
@@ -7,3 +7,3 @@ import React from 'react'; | ||
class DatePickerAndroid extends React.Component { | ||
class DatePickerAndroid extends React.PureComponent { | ||
@@ -10,0 +10,0 @@ static defaultProps = { |
@@ -20,3 +20,3 @@ /** | ||
import type {ViewProps} from 'ViewPropTypes'; | ||
import type { ViewProps } from 'ViewPropTypes'; | ||
@@ -33,3 +33,3 @@ const RCTDatePickerIOS = requireNativeComponent('RNDatePicker'); | ||
*/ | ||
date?: ?Date, | ||
date ?: ? Date, | ||
@@ -44,3 +44,3 @@ /** | ||
*/ | ||
initialDate?: ?Date, | ||
initialDate ?: ? Date, | ||
@@ -50,3 +50,3 @@ /** | ||
*/ | ||
locale?: ?string, | ||
locale ?: ? string, | ||
@@ -58,3 +58,3 @@ /** | ||
*/ | ||
maximumDate?: ?Date, | ||
maximumDate ?: ? Date, | ||
@@ -66,3 +66,3 @@ /** | ||
*/ | ||
minimumDate?: ?Date, | ||
minimumDate ?: ? Date, | ||
@@ -72,3 +72,3 @@ /** | ||
*/ | ||
minuteInterval?: ?(1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30), | ||
minuteInterval ?: ? (1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30), | ||
@@ -78,3 +78,3 @@ /** | ||
*/ | ||
mode?: ?('date' | 'time' | 'datetime'), | ||
mode ?: ? ('date' | 'time' | 'datetime'), | ||
@@ -88,3 +88,3 @@ /** | ||
*/ | ||
onChange?: ?(event: Event) => void, | ||
onChange ?: ? (event: Event) => void, | ||
@@ -100,10 +100,10 @@ /** | ||
/** | ||
* Timezone offset in minutes. | ||
* | ||
* By default, the date picker will use the device's timezone. With this | ||
* parameter, it is possible to force a certain timezone offset. For | ||
* instance, to show times in Pacific Standard Time, pass -7 * 60. | ||
*/ | ||
timeZoneOffsetInMinutes?: ?number, | ||
/** | ||
* Timezone offset in minutes. | ||
* | ||
* By default, the date picker will use the device's timezone. With this | ||
* parameter, it is possible to force a certain timezone offset. For | ||
* instance, to show times in Pacific Standard Time, pass -7 * 60. | ||
*/ | ||
timeZoneOffsetInMinutes ?: ? number, | ||
|}>; | ||
@@ -151,31 +151,30 @@ | ||
return ( | ||
<View style={props.style}> | ||
<RCTDatePickerIOS | ||
ref={picker => { | ||
this._picker = picker; | ||
}} | ||
style={styles.datePickerIOS} | ||
date={ | ||
props.date | ||
? props.date.getTime() | ||
: props.initialDate | ||
? props.initialDate.getTime() | ||
: undefined | ||
} | ||
locale={props.locale ? props.locale : undefined} | ||
maximumDate={ | ||
props.maximumDate ? props.maximumDate.getTime() : undefined | ||
} | ||
minimumDate={ | ||
props.minimumDate ? props.minimumDate.getTime() : undefined | ||
} | ||
mode={props.mode} | ||
minuteInterval={props.minuteInterval} | ||
timeZoneOffsetInMinutes={props.timeZoneOffsetInMinutes} | ||
onChange={this._onChange} | ||
onStartShouldSetResponder={() => true} | ||
onResponderTerminationRequest={() => false} | ||
textColor={props.textColor} | ||
/> | ||
</View> | ||
<RCTDatePickerIOS | ||
key={this.props.textColor} // preventing "Today" string keep old text color when text color changes | ||
ref={picker => { | ||
this._picker = picker; | ||
}} | ||
style={[styles.datePickerIOS, props.style]} | ||
date={ | ||
props.date | ||
? props.date.getTime() | ||
: props.initialDate | ||
? props.initialDate.getTime() | ||
: undefined | ||
} | ||
locale={props.locale ? props.locale : undefined} | ||
maximumDate={ | ||
props.maximumDate ? props.maximumDate.getTime() : undefined | ||
} | ||
minimumDate={ | ||
props.minimumDate ? props.minimumDate.getTime() : undefined | ||
} | ||
mode={props.mode} | ||
minuteInterval={props.minuteInterval} | ||
timeZoneOffsetInMinutes={props.timeZoneOffsetInMinutes} | ||
onChange={this._onChange} | ||
onStartShouldSetResponder={() => true} | ||
onResponderTerminationRequest={() => false} | ||
textColor={props.textColor} | ||
/> | ||
); | ||
@@ -182,0 +181,0 @@ } |
{ | ||
"name": "react-native-date-picker", | ||
"version": "2.4.2", | ||
"version": "2.5.0", | ||
"description": "A Cross Platform React Native Picker", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2002866
354
283