-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix link is shown in a separate line #20440
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
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,22 +1,20 @@ | ||
| import React from 'react'; | ||
| import {View} from 'react-native'; | ||
| import * as anchorForCommentsOnlyPropTypes from './anchorForCommentsOnlyPropTypes'; | ||
| import BaseAnchorForCommentsOnly from './BaseAnchorForCommentsOnly'; | ||
| import * as DeviceCapabilities from '../../libs/DeviceCapabilities'; | ||
| import ControlSelection from '../../libs/ControlSelection'; | ||
| import styles from '../../styles/styles'; | ||
|
|
||
| const AnchorForCommentsOnly = (props) => ( | ||
| <BaseAnchorForCommentsOnly | ||
| // eslint-disable-next-line react/jsx-props-no-spreading | ||
| {...props} | ||
| onPressIn={() => DeviceCapabilities.canUseTouchScreen() && ControlSelection.block()} | ||
| onPressOut={() => ControlSelection.unblock()} | ||
| // HTML renderer root view display is flex. Using flex will force all child elements | ||
|
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. Removed this comment because actually we can use the display inline, so I think the comment is not valid anymore.
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. @bernhardoj can you please tell me the purpose of this View wrapper with display inline here? I am checking all the related issues to make sure it doesn't break anything but just wanted to get your opinion. |
||
| // to be block elements even when they have display inline added to them. | ||
| // This will affect elements like <a> which are inline by default. | ||
| // Setting display block to the container view will solve that. | ||
| containerStyles={[styles.dBlock]} | ||
| /> | ||
| <View style={styles.dInline}> | ||
| <BaseAnchorForCommentsOnly | ||
| // eslint-disable-next-line react/jsx-props-no-spreading | ||
| {...props} | ||
| onPressIn={() => DeviceCapabilities.canUseTouchScreen() && ControlSelection.block()} | ||
| onPressOut={() => ControlSelection.unblock()} | ||
| /> | ||
| </View> | ||
| ); | ||
|
|
||
| AnchorForCommentsOnly.propTypes = anchorForCommentsOnlyPropTypes.propTypes; | ||
|
|
||
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.
Removed the View from here and move it to AnchorForCommentsOnly/index.js. Having a view here will misaligned the text in native.
