Skip to content

Commit

Permalink
feat: support a minimal table renderer
Browse files Browse the repository at this point in the history
This renderer doesn't follow the CSS display: table, table-row and
table-cell, because the display engine of react native only supports the
flex display algorithm. To have a fully compliant table renderer, you
can still use the @native-html/table-plugin package.

A non exhaustive list of limitations:

- Each column will have the same width.
- The table will span to all the available width.
- Attributes such as span, gap will be ignored.
- Column tag will not be respected.
  • Loading branch information
jsamr committed Jun 4, 2021
1 parent 02024e3 commit 7f64d48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/render-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
]
},
"dependencies": {
"@native-html/transient-render-engine": "4.0.0",
"@native-html/transient-render-engine": "4.1.0",
"@types/ramda": "^0.27.32",
"ramda": "^0.27.1",
"stringify-entities": "^3.1.0"
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2922,9 +2922,9 @@ __metadata:
languageName: node
linkType: hard

"@native-html/transient-render-engine@npm:4.0.0":
version: 4.0.0
resolution: "@native-html/transient-render-engine@npm:4.0.0"
"@native-html/transient-render-engine@npm:4.1.0":
version: 4.1.0
resolution: "@native-html/transient-render-engine@npm:4.1.0"
dependencies:
"@native-html/css-processor": 1.6.1
"@types/ramda": ^0.27.32
Expand All @@ -2933,7 +2933,7 @@ __metadata:
peerDependencies:
"@types/react-native": "*"
react-native: ^0.63.0
checksum: c6e43f0474ae405258616bb1ea78a24d6ac5a166ee812cda6ca2026edcd51e126ec68aa768a2a5999f9552cf5e5a485d359ee33e52a39f7541cd7a184397e76a
checksum: 0a095a3ad1ed52c78e019a6da2f477e8f5d0b8c2040dc6f95da32ed98a6d6788789b3f076918c1deb8933dca619e91b08341ac71de7ef3ca826047014f3724cb
languageName: node
linkType: hard

Expand Down Expand Up @@ -14287,7 +14287,7 @@ fsevents@^1.2.7:
"@babel/preset-react": ^7.12.7
"@babel/preset-typescript": ^7.12.1
"@babel/runtime": ^7.12.5
"@native-html/transient-render-engine": 4.0.0
"@native-html/transient-render-engine": 4.1.0
"@react-native-community/bob": ^0.16.2
"@release-it/conventional-changelog": ^2.0.0
"@types/jest": ^26.0.14
Expand Down

0 comments on commit 7f64d48

Please sign in to comment.