sapo-components-ui-rn 1.0.78 → 1.0.80

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapo-components-ui-rn",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "React Native UI Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -48,7 +48,7 @@ const Checkbox = ({
48
48
  const [isActive, setActive] = useState<boolean>(checked);
49
49
  const checkboxColor = useCheckboxColor(isActive, disabled);
50
50
 
51
- const handlePressChipBar = useCallback(() => {
51
+ const handlePress = useCallback(() => {
52
52
  // setActive(!isActive);
53
53
  onPress?.();
54
54
  }, [isActive, onPress]);
@@ -63,7 +63,7 @@ const Checkbox = ({
63
63
  disabled={disabled}
64
64
  alignCenter
65
65
  style={[style]}
66
- onPress={handlePressChipBar}
66
+ onPress={handlePress}
67
67
  >
68
68
  {leftIcon ? (
69
69
  <View paddingRight={CONSTANTS.SPACE_8}>{leftIcon}</View>
@@ -30,10 +30,9 @@ const RadioButton = ({
30
30
  const { colors } = theme;
31
31
  const [isActive, setActive] = useState<boolean>(checked);
32
32
 
33
- const handlePressChipBar = useCallback(() => {
34
- setActive(!isActive);
33
+ const handlePress = useCallback(() => {
35
34
  onPress?.();
36
- }, [isActive]);
35
+ }, [onPress]);
37
36
 
38
37
  useEffect(() => {
39
38
  setActive(checked);
@@ -55,7 +54,7 @@ const RadioButton = ({
55
54
  disabled={disabled}
56
55
  alignCenter
57
56
  style={[style]}
58
- onPress={handlePressChipBar}
57
+ onPress={handlePress}
59
58
  >
60
59
  {leftIcon ? (
61
60
  <View paddingRight={CONSTANTS.SPACE_8}>{leftIcon}</View>
@@ -376,11 +376,6 @@ const TextInputDefault = ({
376
376
  fontWeight,
377
377
  color: inputTextColor,
378
378
  textAlignVertical: multiline ? "top" : "center",
379
- textAlign: textAlign
380
- ? textAlign
381
- : I18nManager.getConstants().isRTL
382
- ? "right"
383
- : "left",
384
379
  height: height ? height : 48,
385
380
  paddingTop: getPaddingTopValue(),
386
381
  paddingBottom: multiline ? CONSTANTS.SPACE_4 : 0,
@@ -491,11 +491,6 @@ const TextInputFlat = ({
491
491
  fontWeight,
492
492
  color: inputTextColor,
493
493
  textAlignVertical: multiline ? "top" : "center",
494
- textAlign: textAlign
495
- ? textAlign
496
- : I18nManager.getConstants().isRTL
497
- ? "right"
498
- : "left",
499
494
  marginTop: Platform.OS === "android" ? SPACE_8 : SPACE_2,
500
495
  },
501
496
  contentStyle,
@@ -233,8 +233,6 @@ const TextInputNumber = ({
233
233
  return false;
234
234
  };
235
235
 
236
- console.log(value, "value");
237
-
238
236
  const checkLabelEmpty = () => {
239
237
  if (label === undefined || label === null || label.toString() === "") {
240
238
  return true;
@@ -218,6 +218,7 @@ const Toast = memoWithRef(
218
218
  row={!options.title}
219
219
  center={!options.title}
220
220
  full
221
+ activeOpacity={0.8}
221
222
  onPress={onPressToast}
222
223
  style={[
223
224
  styles.wrapContent,