@teamnhz/rn-ui-toolkit 1.5.2 → 1.5.3

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.
@@ -83,7 +83,7 @@ const Input = ({ intlType, textKey, placeholder, inputPlaceholderTextColor, left
83
83
  multiline && styles.multilineContainer,
84
84
  ] },
85
85
  leftIcon && (React.createElement(TouchableOpacity, { onPress: onLeftIconPress, disabled: !onLeftIconPress, style: [styles.iconWrapper, leftIconWrapperStyle] },
86
- React.createElement(Image, { source: leftIcon, style: [styles.icon, { tintColor: leftIconTintColor || iconTintColor || Colors.primaryColor }, leftIconStyle], resizeMode: "contain" }))),
86
+ React.createElement(Image, { source: leftIcon, style: [styles.icon, leftIconStyle], resizeMode: "contain", tintColor: leftIconTintColor || iconTintColor || Colors.primaryColor }))),
87
87
  flagIcon && countryCode && (React.createElement(TouchableOpacity, { onPress: onLeftIconPress, disabled: !onLeftIconPress, style: [
88
88
  styles.iconWrapper,
89
89
  {
@@ -103,7 +103,7 @@ const Input = ({ intlType, textKey, placeholder, inputPlaceholderTextColor, left
103
103
  countryCode && (React.createElement(TouchableOpacity, { onPress: onPressCountryCode, disabled: !onPressCountryCode, style: [styles.countryCodeWrapper, countryCodeWrapperStyle] },
104
104
  React.createElement(View, { style: styles.rowCenter },
105
105
  React.createElement(Image, { source: downArrowIcon || Images.down_arrow // <-- Your default arrow
106
- , style: [styles.downArrow, downArrowStyle], tintColor: Colors.black }),
106
+ , style: [styles.downArrow, downArrowStyle], tintColor: downArrowTintColor || iconTintColor || Colors.primaryColor }),
107
107
  React.createElement(Text, { style: [styles.countryCodeText, countryCodeTextStyle] }, countryCode)))),
108
108
  React.createElement(TextInput, { style: [
109
109
  styles.input,
@@ -114,8 +114,8 @@ const Input = ({ intlType, textKey, placeholder, inputPlaceholderTextColor, left
114
114
  ? inputPlaceholderTextColor
115
115
  : Colors.textGrey, editable: editable, secureTextEntry: secureText, keyboardType: keyboardType, value: value, onChangeText: handleChangeText, onFocus: handleFocus, onBlur: handleBlur, multiline: multiline, maxLength: maxLength, returnKeyType: returnKeyType, ...rest }),
116
116
  type === "password" && !rightIcon ? (React.createElement(TouchableOpacity, { onPress: () => setSecureText(!secureText), style: [styles.iconWrapper, rightIconWrapperStyle] },
117
- React.createElement(Image, { source: secureText ? Images.Eyeoff : Images.Eyeon, style: [styles.icon, { tintColor: rightIconTintColor || iconTintColor || Colors.primaryColor }, rightIconStyle], resizeMode: "contain" }))) : (rightIcon && (React.createElement(TouchableOpacity, { onPress: onRightIconPress, disabled: !onRightIconPress, style: [styles.iconWrapper, rightIconWrapperStyle] },
118
- React.createElement(Image, { source: rightIcon, style: [styles.icon, { tintColor: rightIconTintColor || iconTintColor || Colors.primaryColor }, rightIconStyle], resizeMode: "contain" }))))),
117
+ React.createElement(Image, { source: secureText ? Images.Eyeoff : Images.Eyeon, style: [styles.icon, rightIconStyle], tintColor: rightIconTintColor || iconTintColor || Colors.primaryColor, resizeMode: "contain" }))) : (rightIcon && (React.createElement(TouchableOpacity, { onPress: onRightIconPress, disabled: !onRightIconPress, style: [styles.iconWrapper, rightIconWrapperStyle] },
118
+ React.createElement(Image, { source: rightIcon, style: [styles.icon, rightIconStyle], resizeMode: "contain", tintColor: rightIconTintColor || iconTintColor || Colors.primaryColor }))))),
119
119
  showError && isError && (React.createElement(Text, { style: [styles.errorText, errorTextStyle] }, showError))));
120
120
  };
121
121
  export default Input;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamnhz/rn-ui-toolkit",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [