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
description: A version focused on accessibility and enhanced model rendering.
9
9
image: img/foundry-announcement.png
10
10
hide_table_of_contents: false
@@ -18,12 +18,17 @@ It has been over two months since the first final version of the Foundry
18
18
release has been made public. This new version focuses on two areas of
19
19
improvements:
20
20
21
-
1. Accessibility, and more specifically integration with screen readers;
22
-
2. Richer model-based rendering, and the feature to define React Native props from
23
-
within those models.
21
+
1.[Accessibility](https://en.wikipedia.org/wiki/Computer_accessibility), and more specifically integration with _VoiceOver_ and _TalkBack_ screen readers;
22
+
2. Richer [model-based
23
+
rendering](/docs/guides/custom-renderers#model-based-custom-rendering), and the
24
+
feature to define React Native props from those models.
24
25
25
26
As you will discover through this reading, both are somehow related. Let's find out how!
26
27
28
+
:::info bonus
29
+
This post also covers a due overview of features introduced in the previous 6.1 minor release.
30
+
:::
31
+
27
32
<!--truncate-->
28
33
29
34
##YouMightnotNeedaCustomComponentRenderer
@@ -69,7 +74,7 @@ related to specificity for a refresher.
69
74
:::
70
75
71
76
Version 6.2 ships with a bunch of new fields for HTML element models which
72
-
should make model-based rendering more popular. Let's take a tour!
77
+
should increase model-based rendering adoption. Let's take a tour!
73
78
74
79
### `getMixedUAStyles`
75
80
@@ -123,9 +128,9 @@ rendering phase. It is an object with three optional properties (for reference,
123
128
the shape of this object is a <APIReferencename="ReactNativePropsDefinitions"
124
129
/>):
125
130
126
-
1.`text`, to pass native props to the `Text` component when the renderer is textual;
127
-
2.`view`, to pass native props to the `View` component when the renderer is block;
128
-
3.`native`, to pass props to either `View` or `Text` components, irrespective of the renderer type.
131
+
1.`text`, to pass native props to `Text`-backed renderers;
132
+
2.`view`, to pass native props to `View`-backed renderers;
133
+
3.`native`, to pass props to either `View` or `Text`-backed renderers.
129
134
130
135
In the next snippet, we are defining a custom tag, `<nav-widget>`, and setting
131
136
accessibility props to any underlying native component for the render phase. We
@@ -249,7 +254,9 @@ translate both attributes to their React Native counterparts.
249
254
### Accessible `<a>` Tags
250
255
251
256
`<a>` tags now receive an `accessibilityRole="link"` prop when their `href`
252
-
attribute is non-empty. Let's see now how we could set [an accessibility hint](https://reactnative.dev/docs/accessibility#accessibilityhint) by
257
+
attribute is non-empty. To link that part with model enhancements seen in
258
+
the previous section, let's see now how we could set [an accessibility
259
+
hint](https://reactnative.dev/docs/accessibility#accessibilityhint) by
0 commit comments