diff --git a/css/react-native.css b/css/react-native.css index c8a1eaeb976..5636b863243 100644 --- a/css/react-native.css +++ b/css/react-native.css @@ -443,7 +443,7 @@ h1, h2, h3, h4 { line-height: 40px; } h1 { - font-size: 39px; } + font-size: 40px; } h2 { font-size: 31px; } @@ -506,6 +506,9 @@ html * { color-profile: sRGB; rendering-intent: auto; } +.content { + font-size: 18px; +} .subHeader { font-size: 21px; font-weight: 300; @@ -605,7 +608,9 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li text-decoration: none; } .nav-main .nav-site-wrapper { - display: inline; } + display: inline; + float: right; +} .nav-main .nav-site-internal { margin: 0 0 0 20px; } @@ -719,7 +724,7 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li padding-bottom: 0; } .nav-docs-section h3 { color: white; - font-size: 16px; + font-size: 18px; font-weight: 400; line-height: 20px; margin-top: 0; @@ -928,7 +933,8 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li margin-bottom: 60px; } .docs-nextprev { - *zoom: 1; } + *zoom: 1; +} .docs-nextprev:before, .docs-nextprev:after { content: " "; @@ -1002,7 +1008,7 @@ h2 { .docs-prevnext { min-width: 320px; max-width: 640px; - margin: 0 auto 40px; + margin: 40px auto; padding-bottom: 20px; } .button { @@ -1556,7 +1562,7 @@ table.versions { .edit-page-block { padding: 5px; - margin-bottom: 40px; + margin: 40px auto; font-size: 12px; color: #887766; text-align: center; @@ -2009,7 +2015,7 @@ article li { padding: 9px 18px; border-radius: 4px; text-align: center; - font-size: 12px; } +} .btn a { text-decoration: none !important; } @@ -2041,7 +2047,7 @@ article li { footer.nav-footer { box-sizing: border-box; border: none; - font-weight: 300; + font-weight: normal; color: #202020; font-size: 15px; line-height: 24px; @@ -2107,7 +2113,8 @@ footer .sitemap h6, footer .sitemap h5 > a, footer .sitemap h6 > a { color: #05A5D1; - font-weight: 900; } + font-size: 15px; +} footer .sitemap h5 > a, footer .sitemap h6 > a { diff --git a/docs/accessibility.html b/docs/accessibility.html index f941728bfd4..23dc36f16b1 100644 --- a/docs/accessibility.html +++ b/docs/accessibility.html @@ -1,4 +1,4 @@ -
Both iOS and Android provide APIs for making apps accessible to people with disabilities. In addition, both platforms provide bundled assistive technologies, like the screen readers VoiceOver (iOS) and TalkBack (Android) for the visually impaired. Similarly, in React Native we have included APIs designed to provide developers with support for making apps more accessible. Take note, iOS and Android differ slightly in their approaches, and thus the React Native implementations may vary by platform.
In addition to this documentation, you might find this blog post about React Native accessibility to be useful.
When true, indicates that the view is an accessibility element. When a view is an accessibility element, it groups its children into a single selectable component. By default, all touchable elements are accessible.
On Android, ‘accessible={true}’ property for a react-native View will be translated into native ‘focusable={true}’.
Both iOS and Android provide APIs for making apps accessible to people with disabilities. In addition, both platforms provide bundled assistive technologies, like the screen readers VoiceOver (iOS) and TalkBack (Android) for the visually impaired. Similarly, in React Native we have included APIs designed to provide developers with support for making apps more accessible. Take note, iOS and Android differ slightly in their approaches, and thus the React Native implementations may vary by platform.
In addition to this documentation, you might find this blog post about React Native accessibility to be useful.
When true, indicates that the view is an accessibility element. When a view is an accessibility element, it groups its children into a single selectable component. By default, all touchable elements are accessible.
On Android, ‘accessible={true}’ property for a react-native View will be translated into native ‘focusable={true}’.
In the above example, we can't get accessibility focus separately on 'text one' and 'text two'. Instead we get focus on a parent view with 'accessible' property.
When a view is marked as accessible, it is a good practice to set an accessibilityLabel on the view, so that people who use VoiceOver know what element they have selected. VoiceOver will read this string when a user selects the associated element.
To use, set the accessibilityLabel property to a custom string on your View:
B contains a child view C a
<CustomRadioButton
accessibleComponentType={this.state.radioButton}
- onPress={this._onPress}/>In the above example we've created a custom radio button that now behaves like a native one. More specifically, TalkBack now correctly announces changes to the radio button selection.
To enable VoiceOver, go to the Settings app on your iOS device. Tap General, then Accessibility. There you will find many tools that people use to make their devices more usable, such as bolder text, increased contrast, and VoiceOver.
To enable VoiceOver, tap on VoiceOver under "Vision" and toggle the switch that appears at the top.
At the very bottom of the Accessibility settings, there is an "Accessibility Shortcut". You can use this to toggle VoiceOver by triple clicking the Home button.
Improve this page by sending a pull request!
Sometimes it's useful to know whether or not the device has a screen reader that is currently active. The +
Sometimes it's useful to know whether or not the device has a screen reader that is currently active. The
AccessibilityInfo API is designed for this purpose. You can use it to query the current state of the
screen reader as well as to register to be notified when the state of the screen reader changes.
Here's a small example illustrating how to use AccessibilityInfo:
false otherwise.iOS-Only. Set accessibility focus to a react component.
iOS-Only. Post a string to be announced by the screen reader.
Remove an event handler.
Improve this page by sending a pull request!
Display an iOS action sheet. The options object must contain one or more
+
Display an iOS action sheet. The options object must contain one or more
of:
options (array of strings) - a list of button titles (required)cancelButtonIndex (int) - index of cancel button in optionsdestructiveButtonIndex (int) - index of destructive button in optionstitle (string) - a title to show above the action sheetmessage (string) - a message to show below the titleDisplay the iOS share sheet. The options object should contain
one or both of message and url and can additionally have
a subject or excludedActivityTypes:
url (string) - a URL to sharemessage (string) - a message to sharesubject (string) - a subject for the messageexcludedActivityTypes (array) - the activities to exclude from the ActionSheetNOTE: if url points to a local file, or is a base64-encoded
uri, the file it points to will be loaded and shared directly.
-In this way, you can share images, videos, PDF files, etc.
Improve this page by sending a pull request!
Displays a circular loading indicator.
Whether to show the indicator (true, the default) or hide it (false).
Size of the indicator (default is 'small'). -Passing a number to the size prop is only supported on Android.
Whether the indicator should hide when not animating (true by default).
Improve this page by sending a pull request!
Displays a circular loading indicator.
Whether to show the indicator (true, the default) or hide it (false).
Size of the indicator (default is 'small'). +Passing a number to the size prop is only supported on Android.
Whether the indicator should hide when not animating (true by default).
Improve this page by sending a pull request!