-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
scrolling form TextInput in Scroll View doesn't work when textAlign in set to right or center(android only) #16206
Comments
Have you found any solutions for that issue? I have a similar problem! |
@Luckygirlllll add multiline={true} , keyboardType={'default'}, maxLength={10} to textInput props. it should work, i think that maxLength isn't necessary, but I didn't check |
@erfanyousefifar |
@Mostafasaffari |
same problem, has some solution? |
@aizigao please read above answers. |
@erfanyousefifar With |
@mafiusu you can set number of lines to 1, I know that it's not a correct solution, but I don't have native knowledge to fix it unfortunately |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
I have been experiencing this issue since yesterday, issue is still alive. i'm using react native 0.53. |
I ran into a similar issue. I solved it by increasing the height of the textinput style. |
@robertohurtado Thanks, somehow adding 10px to the height fixed it too for me on Android. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is this a bug report?
YES
Have you read the Contributing Guidelines?
NO
Environment
Environment:
OS: Linux 4.8
Node: 8.6.0
Yarn: 1.1.0
npm: 5.3.0
Watchman: Not Installed
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react-native: 0.48.4 => 0.48.4
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
Target Platform: Android (6.0.1)
Steps to Reproduce
the issue is present in android only
Expected Behavior
it must be possible to scroll in the scroll view when you tap a text Input, and then scroll, it works on textAlign : 'left',
Actual Behavior
the scrolling doesn't work if you start scrolling on a text input
Reproducible Demo
cause my country restriction, I don't have access to expo, so I just shared a small code that reproduce the problem
export default class ScrollViewWithTextInput extends React.Component { render() { return ( <ScrollView> <TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /> <TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /><TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /><TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /> <TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /> <TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /><TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /><TextInput style={styles.input} placeholder={'توضیحات'} underlineColorAndroid='transparent' /> </ScrollView> ) }} const styles = StyleSheet.create({ Container: { flex: 1, justifyContent: 'center', alignItems: 'center', }, input: { width: 350, height: 100, margin: 5, borderColor: 'black', borderWidth: 2, textAlign: 'right' }})
The text was updated successfully, but these errors were encountered: