-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fix: send message - user navigates to Room tab when dragging to select e-mail from Chat tab #28240
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
Changes from all commits
c984d70
1ac59e5
c0f062b
37555f7
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 |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| import {PanResponder} from 'react-native'; | ||
| import SwipeInterceptPanResponder from '../../SwipeInterceptPanResponder'; | ||
|
|
||
| const responder = PanResponder.create({ | ||
| onMoveShouldSetPanResponder: () => true, | ||
| onPanResponderTerminationRequest: () => false, | ||
| }); | ||
|
|
||
| export default responder; | ||
| export default SwipeInterceptPanResponder; | ||
|
Contributor
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. What's the point of this file if all it does is export another file. Do we need it?
Contributor
Author
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. My reasoning here was to try to maintain the
Contributor
Author
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. @puneetlath Looks like I lied. The TypeScript Checks job fails if there is no
Contributor
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. Ok got it! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| import {PanResponder} from 'react-native'; | ||
|
|
||
| const SwipeInterceptPanResponder = PanResponder.create({ | ||
| onMoveShouldSetPanResponder: () => true, | ||
| onPanResponderTerminationRequest: () => false, | ||
| }); | ||
|
|
||
| export default SwipeInterceptPanResponder; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,6 +93,9 @@ const propTypes = { | |
|
|
||
| /** Set the default value to the input if there is a valid saved value */ | ||
| shouldUseDefaultValue: PropTypes.bool, | ||
|
|
||
| /** Indicate whether or not the input should prevent swipe actions in tabs */ | ||
| shouldInterceptSwipe: PropTypes.bool, | ||
| }; | ||
|
|
||
| const defaultProps = { | ||
|
|
@@ -129,6 +132,7 @@ const defaultProps = { | |
| icon: null, | ||
| shouldUseDefaultValue: false, | ||
| multiline: false, | ||
| shouldInterceptSwipe: false, | ||
|
Contributor
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.
Contributor
Author
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. @Krishna2323 Just caught up on this. The default can be set to
Contributor
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. Sure, thanks a lot :)
Contributor
Author
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. @Krishna2323 This is why it was set to You would need to test on a physical Samsung device.
Contributor
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. Then I guess its safe to fix only this instance. We are only using tab navigator in 2 places. |
||
| }; | ||
|
|
||
| export {propTypes, defaultProps}; | ||
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.
The same things can be applied to
MapView/responder/index.android.ts.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.
The responder in
MapView/responder/index.android.tsusesonStartShouldSetPanResponder, notonMoveShouldSetPanResponder, so that is different.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.
Ohh I didn't see that 😅