-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add show password toggle to secureTextInput #6501
Changes from 3 commits
c96e703
ff42609
ca44dfb
bc26dfc
44b1789
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -583,6 +583,7 @@ const styles = { | |
componentHeightLarge: { | ||
height: variables.componentSizeLarge, | ||
}, | ||
|
||
expensiTextInputContainer: { | ||
flex: 1, | ||
borderWidth: 1, | ||
|
@@ -593,6 +594,7 @@ const styles = { | |
backgroundColor: themeColors.componentBG, | ||
overflow: 'hidden', | ||
}, | ||
|
||
expensiTextInputLabel: { | ||
position: 'absolute', | ||
left: 11.5, | ||
|
@@ -602,6 +604,7 @@ const styles = { | |
fontFamily: fontFamily.GTA, | ||
width: '100%', | ||
}, | ||
|
||
expensiTextInputLabelBackground: { | ||
position: 'absolute', | ||
top: 0, | ||
|
@@ -610,17 +613,21 @@ const styles = { | |
backgroundColor: themeColors.componentBG, | ||
borderTopRightRadius: variables.componentBorderRadiusNormal, | ||
borderTopLeftRadius: variables.componentBorderRadiusNormal, | ||
pointerEvents: 'none', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this works as a style. It is passed as a prop. Right? 😕 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right there are some platform specifics in implementation when I looked it up. I need to use the prop for it to work. |
||
}, | ||
|
||
expensiTextInputLabelDesktop: { | ||
transformOrigin: 'left center', | ||
}, | ||
|
||
expensiTextInputLabelTransformation: (translateY, translateX, scale) => ({ | ||
transform: [ | ||
{translateY}, | ||
{translateX}, | ||
{scale}, | ||
], | ||
}), | ||
|
||
expensiTextInput: { | ||
fontFamily: fontFamily.GTA, | ||
fontSize: variables.fontSizeNormal, | ||
|
@@ -630,13 +637,25 @@ const styles = { | |
paddingBottom: 8, | ||
paddingHorizontal: 11.5, | ||
borderRadius: variables.componentBorderRadiusNormal, | ||
}, | ||
|
||
expensiTextInputAndIconContainer: { | ||
zIndex: -1, | ||
flexDirection: 'row', | ||
}, | ||
|
||
expensiTextInputDesktop: addOutlineWidth({}, 0), | ||
|
||
expensiTextInputAndroid: left => ({ | ||
padding: 0, | ||
left, | ||
}), | ||
|
||
secureInputEyeButton: { | ||
paddingRight: 11.5, | ||
justifyContent: 'center', | ||
}, | ||
|
||
textInput: { | ||
backgroundColor: themeColors.componentBG, | ||
borderRadius: variables.componentBorderRadiusNormal, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add
pointerEvents="none"
to thisView
. it fixes one bug, not from your PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think pointerEvents=none only work as a prop.