Skip to content

Commit 5a2ae44

Browse files
authored
docs(accessibility): document large content viewer support on iOS (facebook#4376)
1 parent a2a31fb commit 5a2ae44

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

website/versioned_docs/version-0.76/accessibility.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,26 @@ In the above example method `addOne` changes the state variable `count`. When th
163163
- **toolbar** Used to represent a toolbar (a container of action buttons or components).
164164
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to Android's GridView.
165165

166+
### `accessibilityShowsLargeContentViewer` <div class="label ios">iOS</div>
167+
168+
A boolean value that determines whether the large content viewer is shown when the user performs a long press on the element.
169+
170+
Available in iOS 13.0 and later.
171+
172+
### `accessibilityLargeContentTitle` <div class="label ios">iOS</div>
173+
174+
A string that will be used as the title of the large content viewer when it is shown.
175+
176+
Requires `accessibilityShowsLargeContentViewer` to be set to `true`.
177+
178+
```tsx
179+
<View
180+
accessibilityShowsLargeContentViewer={true}
181+
accessibilityLargeContentTitle="Home Tab">
182+
<Text>Home</Text>
183+
</View>
184+
```
185+
166186
### `accessibilityState`
167187

168188
Describes the current state of a component to the assistive technology user.

0 commit comments

Comments
 (0)