react-native-ui-lib 7.40.1-snapshot.6831 → 7.40.1-snapshot.6835

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": "react-native-ui-lib",
3
- "version": "7.40.1-snapshot.6831",
3
+ "version": "7.40.1-snapshot.6835",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -49,14 +49,17 @@ const Point = props => {
49
49
  }, [type, color, label, removeIconBackground, icon]);
50
50
  const renderPointContent = () => {
51
51
  const {
52
- removeIconBackground
52
+ removeIconBackground,
53
+ labelColor
53
54
  } = props;
54
55
  const tintColor = removeIconBackground ? Colors.$iconDefault : Colors.$iconDefaultLight;
55
56
  const iconSize = removeIconBackground ? undefined : ICON_SIZE;
56
57
  if (icon) {
57
58
  return <Icon tintColor={tintColor} {...iconProps} size={iconSize} source={icon} />;
58
59
  } else if (label) {
59
- return <Text recorderTag={'unmask'} $textDefaultLight subtextBold>{label}</Text>;
60
+ return <Text recorderTag={'unmask'} $textDefaultLight subtextBold color={labelColor}>
61
+ {label}
62
+ </Text>;
60
63
  }
61
64
  };
62
65
  return <View center style={pointStyle} onLayout={onLayout}>
@@ -32,6 +32,7 @@ export type PointProps = {
32
32
  iconProps?: IconProps;
33
33
  removeIconBackground?: boolean;
34
34
  label?: number;
35
+ labelColor?: string;
35
36
  /** to align point to this view's center */
36
37
  anchorRef?: React.MutableRefObject<undefined>;
37
38
  };