-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Remove touch events and external keyboard dependency #327
Conversation
I also changed RN version, but there was an error 0.39 in Android so I downgraded to 0.37 again. I already tested in 0.39.2 and it's working for both iOS and Android. |
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 believe that is better to do the react-native upgrade in an isolated pull request because we should review the breaking changes.
Sorry @tafelito, I'm sleeping yet. I didn't notice that you were upgrading the example app. Anyway, the breaking changes need to be reviewed. Why not split the PR and update first the example app? |
@dgdavid @kfiroo The reason why I upgraded the example is because it was not working for me on the previuos version. I read of the issues posted here that upgrading to 0.37 and 15.3.2 solved the issue so I did that. With 0.30 there is this error
Any ideas how to solve that using 0.30? |
@kfiroo I saw you merged a PR where you use the keyboardShouldPersistTaps={always} and I wanted to ask you the reason behind this. It's still using a dependency on a third party plugin to dismiss the Keyboard while there is no need if you don't set that property at all. Maybe I'm missing something but I cannot see what. Thanks |
@tafelito Hey! I see that in your PR that you removed the |
@kfiroo if you don't set the keyboardShouldPersistTaps, it means that it will hide the keyboard when you touch the scrollview component. As it says it the docs So it means that the Keyboard will not be dismissed if you tap the list. INHO, I don't think its a good idea. So pretty much, If you don't set the value (or you set it as 'never'), it will hide the keyboard when you tap the list, but not when you send the a message. |
@tafelito Whatsapp has 2 different behaviours for android and ios. I think it's bet to leave this decision to the users of this package |
@kfiroo So I guess in that case yes, I agree with you, we can leave a default but allow the user to set a different value if they want. To me the iOS behavior looks more appropriate, but as long as the user can change the default value, I think either of them it should be ok |
@kfiroo I'm closing this PR and creating a new one based on what we discussed earlier. And without any RN version change. At least not in this PR. |
I removed the dependency for
react-native-dismiss-keyboard
and removed the touch events. Instead of using touch events and dismiss manually the keyboard, we can removekeyboardShouldPersistTaps
and it has the same effect.