react-native-ui-lib 7.46.3-snapshot.7414 → 7.46.3-snapshot.7424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/incubator.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import {ExpandableOverlay, Slider, Toast} from './src/incubator';
|
|
2
|
+
export {ExpandableOverlay, Slider, Toast};
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -117,7 +117,7 @@ class Slider extends PureComponent {
|
|
|
117
117
|
maximumValue,
|
|
118
118
|
value
|
|
119
119
|
} = props;
|
|
120
|
-
if (minimumValue
|
|
120
|
+
if (minimumValue > maximumValue) {
|
|
121
121
|
console.warn('Slider minimumValue must be lower than maximumValue');
|
|
122
122
|
}
|
|
123
123
|
if (!useRange && (value < minimumValue || value > maximumValue)) {
|
|
@@ -45,7 +45,8 @@ export function validateValues(props) {
|
|
|
45
45
|
} = props;
|
|
46
46
|
if (minimumValue > maximumValue || useRange && initialMinimumValue && initialMaximumValue && initialMinimumValue > initialMaximumValue) {
|
|
47
47
|
LogService.forwardError({
|
|
48
|
-
|
|
48
|
+
// eslint-disable-next-line max-len
|
|
49
|
+
message: `Your passed values are invalid. Please check if minimum values are not higher than maximum values (minimumValue: ${minimumValue}, maximumValue: ${maximumValue}, initialMinimumValue: ${initialMinimumValue}, initialMaximumValue: ${initialMaximumValue})`
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
52
|
if (value !== undefined && minimumValue && maximumValue && !inRange(value, minimumValue, maximumValue)) {
|