You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/WEB.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
Web support is still experimental. APIs and behavior can change in future releases without a major version bump. Expect breaking changes until the web path is stabilized.
@@ -18,20 +20,35 @@ Web support is still experimental. APIs and behavior can change in future releas
18
20
- Keyboard shortcuts for formatting
19
21
-`useHtmlNormalizer`
20
22
21
-
## Keyboard shortcuts
23
+
###Keyboard shortcuts
22
24
23
25
See [Web Keyboard Shortcuts](./INPUT_API_REFERENCE.md#web-keyboard-shortcuts) for the up-to-date list of Web keyboard shortcuts.
24
26
25
-
## Unsupported
27
+
###Unsupported
26
28
27
29
-**`returnKeyLabel`**: ignored on web, it's not possible to set it inside a browser.
28
30
-**Automatic link detection**: `linkRegex` is ignored. Links only work when set explicitly via the `setLink` ref method.
29
31
-**Context menu**: `contextMenuItems` is ignored.
30
32
-**RN layout ref methods**: `measure`, `measureInWindow`, `measureLayout`, and `setNativeProps` are no-ops.
31
-
-**`EnrichedText`**: The read-only component is not exported on web.
32
33
-**`ViewProps`**: Props inherited from `View` beyond the implemented subset are not forwarded.
33
34
-**`textShortcuts`**: ignored on web.
34
35
36
+
## Enriched Text
37
+
38
+
### What works
39
+
40
+
- Setting the content using the `children` prop.
41
+
- HTML's formatting equivalent to the input component's.
42
+
- Customizing the styling using props: `style`, `htmlStyle`, `selectionColor`.
43
+
44
+
### Unsupported
45
+
46
+
-**`selectable`**: ignored on web.
47
+
-**`useHtmlNormalizer`**: ignored on web.
48
+
-**`ellipsizeMode`**: ignored on web.
49
+
-**`numberOfLines`**: ignored on web.
50
+
-**Press events**: `onLinkPress` and `onMentionPress` callbacks are ignored on web.
51
+
35
52
## HTML sanitization
36
53
37
54
You are responsible for sanitizing HTML on both input and output. The library does not guarantee safe or clean HTML output. This applies to any HTML you persist, render elsewhere, or accept from untrusted sources (XSS, paste attacks, etc.).
0 commit comments