|
@@ -216,13 +216,13 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return <View
|
|
|
|
|
|
|
+ return <TouchableOpacity
|
|
|
style={[
|
|
style={[
|
|
|
cleanIconStyle,
|
|
cleanIconStyle,
|
|
|
stylesheet.cleanButton,
|
|
stylesheet.cleanButton,
|
|
|
cleanButtonDynamicStyle
|
|
cleanButtonDynamicStyle
|
|
|
]}
|
|
]}
|
|
|
- onClick={() => {
|
|
|
|
|
|
|
+ onPress={() => {
|
|
|
if(onChangeText) {
|
|
if(onChangeText) {
|
|
|
onChangeText("");
|
|
onChangeText("");
|
|
|
}
|
|
}
|
|
@@ -233,7 +233,7 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
color="mid"
|
|
color="mid"
|
|
|
size={20}
|
|
size={20}
|
|
|
/>
|
|
/>
|
|
|
- </View>;
|
|
|
|
|
|
|
+ </TouchableOpacity>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const renderIcon = () => {
|
|
const renderIcon = () => {
|
|
@@ -241,8 +241,8 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return <View
|
|
|
|
|
- onClick={iconOnPress}
|
|
|
|
|
|
|
+ return <TouchableOpacity
|
|
|
|
|
+ onPress={iconOnPress}
|
|
|
style={[
|
|
style={[
|
|
|
iconStyle,
|
|
iconStyle,
|
|
|
stylesheet.icon,
|
|
stylesheet.icon,
|
|
@@ -253,7 +253,7 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
color={iconProps.color}
|
|
color={iconProps.color}
|
|
|
size={iconProps.size}
|
|
size={iconProps.size}
|
|
|
/>
|
|
/>
|
|
|
- </View>;
|
|
|
|
|
|
|
+ </TouchableOpacity>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const renderRightIcon = () => {
|
|
const renderRightIcon = () => {
|
|
@@ -269,8 +269,8 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return <View
|
|
|
|
|
- onClick={rightIconOnPress}
|
|
|
|
|
|
|
+ return <TouchableOpacity
|
|
|
|
|
+ onPress={rightIconOnPress}
|
|
|
style={[
|
|
style={[
|
|
|
rightIconStyle,
|
|
rightIconStyle,
|
|
|
stylesheet.rightIcon,
|
|
stylesheet.rightIcon,
|
|
@@ -281,7 +281,7 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
color={iconProps.color}
|
|
color={iconProps.color}
|
|
|
size={iconProps.size}
|
|
size={iconProps.size}
|
|
|
/>
|
|
/>
|
|
|
- </View>;
|
|
|
|
|
|
|
+ </TouchableOpacity>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const renderHideTextIcon = () => {
|
|
const renderHideTextIcon = () => {
|
|
@@ -293,8 +293,8 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return <View
|
|
|
|
|
- onClick={toggleValueVisibility}
|
|
|
|
|
|
|
+ return <TouchableOpacity
|
|
|
|
|
+ onPress={toggleValueVisibility}
|
|
|
style={[
|
|
style={[
|
|
|
hideTextIconStyle,
|
|
hideTextIconStyle,
|
|
|
stylesheet.hideTextIconContainer,
|
|
stylesheet.hideTextIconContainer,
|
|
@@ -311,7 +311,7 @@ const TextInput: RefForwardingComponent<ITextInputRef, ITextInputProps> = ({
|
|
|
size={20}
|
|
size={20}
|
|
|
/>
|
|
/>
|
|
|
}
|
|
}
|
|
|
- </View>;
|
|
|
|
|
|
|
+ </TouchableOpacity>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const renderHintIcon = () => {
|
|
const renderHintIcon = () => {
|