-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #882 from jsamr/jsamr-whitespace-collapsing
React Native Render HTML: whitespace collapsing (2d shot)
- Loading branch information
Showing
16 changed files
with
462 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,9 @@ build/ | |
local.properties | ||
*.iml | ||
|
||
# Vscode | ||
.vscode | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,9 +60,9 @@ | |
"react-native-image-picker": "^2.3.3", | ||
"react-native-keyboard-spacer": "^0.4.1", | ||
"react-native-modal": "^11.5.6", | ||
"react-native-pdf": "^6.2.2", | ||
"react-native-onyx": "git+https://[email protected]:Expensify/react-native-onyx.git#8e29d1807382c8a1325c92858c551f6b19e1aaad", | ||
"react-native-render-html": "^4.2.3", | ||
"react-native-render-html": "^6.0.0-alpha.10", | ||
"react-native-pdf": "^6.2.2", | ||
"react-native-safe-area-context": "^3.1.4", | ||
"react-native-web": "^0.14.0", | ||
"react-native-web-webview": "^1.0.2", | ||
|
27 changes: 27 additions & 0 deletions
27
src/components/AnchorForCommentsOnly/anchorForCommentsOnlyPropTypes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
/** | ||
* Text based component that is passed a URL to open onPress | ||
*/ | ||
const anchorForCommentsOnlyPropTypes = { | ||
// The URL to open | ||
href: PropTypes.string, | ||
|
||
// What headers to send to the linked page (usually noopener and noreferrer) | ||
// This is unused in native, but is here for parity with web | ||
rel: PropTypes.string, | ||
|
||
// Used to determine where to open a link ("_blank" is passed for a new tab) | ||
// This is unused in native, but is here for parity with web | ||
target: PropTypes.string, | ||
|
||
|
||
// Any children to display | ||
children: PropTypes.node, | ||
|
||
// Any additional styles to apply | ||
// eslint-disable-next-line react/forbid-prop-types | ||
style: PropTypes.any, | ||
}; | ||
|
||
export default anchorForCommentsOnlyPropTypes; |
Oops, something went wrong.