-
Notifications
You must be signed in to change notification settings - Fork 941
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: html render for native (#2346)
- v0.3.5
- v0.3.4-beta.0
- v0.3.3-beta.0
- v0.3.2-beta.0
- v0.3.1-beta.0
- v0.3.0-beta.0
- 0.3.4-nightly.20250213
- 0.3.3-nightly.20250212
- 0.3.3-nightly.20250211
- 0.3.3-nightly.20250210
- 0.3.3-nightly.20250209
- 0.3.3-nightly.20250208
- 0.3.3-nightly.20250207
- 0.3.3-nightly.20250206
- 0.3.3-nightly.20250205
- 0.3.3-nightly.20250204
- 0.3.3-nightly.20250203
- 0.3.3-nightly.20250201
- 0.3.3-nightly.20250131
- 0.3.3-nightly.20250130
- 0.3.3-nightly.20250129
- 0.3.3-nightly.20250128
- 0.3.3-nightly.20250127
- 0.3.3-nightly.20250126
- 0.3.3-nightly.20250125
- 0.3.2-nightly.20250123
- 0.3.2-nightly.20250122
- 0.3.2-nightly.20250121
- 0.3.2-nightly.20250120
- 0.3.2-nightly.20250119
- 0.3.2-nightly.20250118
- 0.3.2-nightly.20250117
- 0.3.1-nightly.20250116
- 0.3.1-nightly.20250115
- 0.3.1-nightly.20250114
- 0.3.1-nightly.20250113
- 0.3.1-nightly.20250112
- 0.3.1-nightly.20250111
- 0.3.1-nightly.20250110
- 0.3.1-nightly.20250109
- 0.3.0-nightly.20250108
- 0.3.0-nightly.20250107
- 0.3.0-nightly.20250106
- 0.3.0-nightly.20250105
- 0.3.0-nightly.20250104
- 0.3.0-nightly.20250103
- 0.3.0-nightly.20250102
- 0.2.9-nightly.20250101
- 0.2.9-nightly.20241231
- 0.2.9-nightly.20241230
Showing
15 changed files
with
586 additions
and
346 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: { | ||
config: "./tailwind.dom.config.ts", | ||
}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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,14 @@ | ||
"use dom" | ||
import "@follow/components/assets/colors-media.css" | ||
import "@follow/components/assets/tailwind.css" | ||
|
||
import type { HtmlProps } from "@follow/components" | ||
import { Html } from "@follow/components" | ||
|
||
export default function HtmlRender({ | ||
content, | ||
dom, | ||
...options | ||
}: { dom?: import("expo/dom").DOMProps } & HtmlProps) { | ||
return <Html content={content} {...options} /> | ||
} |
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,9 @@ | ||
import type { Config } from "tailwindcss" | ||
|
||
import { baseTwConfig } from "../../configs/tailwind.base.config" | ||
|
||
export default { | ||
...baseTwConfig, | ||
darkMode: "media", | ||
content: ["../../packages/**/*.{ts,tsx}"], | ||
} satisfies Config |
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
Oops, something went wrong.