Skip to content

The text field is preventing the scrolling of ScrollView #26

Description

@rvenky125

return (
<View
style={{flexDirection: 'row', alignItems: 'center', ...containerStyle}}>
{renderLeadingIcon ? renderLeadingIcon : null}
<InputStandard
ref={inputRef}
fontColor={fontColor}
error={error} // wont take effect until a message is passed
backgroundColor={backgroundColor ? backgroundColor : 'transaparent'}
activeColor={activeColor ? activeColor : colors.primary}
inactiveColor={disabledColor ? disabledColor : colors.placeholder}
keyboardType={autoCorrect ? keyboardType : 'visible-password'}
secureTextEntry={hideText}
onChangeText={text => {
onValueChange(text);
}}
paddingVertical={0}
placeholder={placeholder}
placeholderTextColor={colors.card}
value={value}
fontSize={fontSize ? fontSize : 16}
style={{...style, height: 43, flex: 1}}
trailingIcon={() =>
secureTextEntry ? (
<IconButton
onPress={() => setHideText(!hideText)}
icon={hideText ? 'eye-off' : 'eye'}
color={colors.placeholder}
/>
) : null
}
autoCorrect={autoCorrect}
scrollEnabled={true}
/>
{renderTrailingIcon ? renderTrailingIcon : null}

);

Here is my code. While I'm nesting this inside of scrollview on dragging by having pointer on this view the scroll is not working. Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions