diff --git a/css/react-native.css b/css/react-native.css index 7ff24fb0a42..8c4a8b13389 100644 --- a/css/react-native.css +++ b/css/react-native.css @@ -1048,7 +1048,7 @@ h2 { display: table-cell; } p { - margin: 10px 0; } + margin: 16px 0; } .highlight { padding: 10px; @@ -1355,6 +1355,7 @@ div[data-twttr-id] iframe { margin-left: 20px; } .prop { + word-wrap: break-word; padding: 5px 10px; } .compactProps .prop { @@ -1668,6 +1669,14 @@ input#algolia-doc-search:focus { font-size: 24px; text-align: center; } +@media only screen and (max-width: 680px) { + .hero .text { + font-size: 200%; + text-align: center; } + .hero .minitext { + font-size: 18px; + text-align: center; } } + .buttons-unit { margin-top: 40px; text-align: center; } @@ -1676,10 +1685,14 @@ input#algolia-doc-search:focus { color: #FA6900; } .buttons-unit .button { - font-size: 24px; background: #05A5D1; color: #fafafa; } +@media screen and (min-width: 600px) { + .buttons-unit .button { + font-size: 24px; } +} + .buttons-unit .button:active { background: #0485A9; } @@ -1712,15 +1725,11 @@ input#algolia-doc-search:focus { .showcase { margin: 30px auto 30px auto; - width: 100%; + width: 50%; display: inline-block; text-align: center; vertical-align: top; } -@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { - .showcase { - width: 50%; } } - @media only screen and (min-device-width: 1024px) { .showcase { width: 25%; } } @@ -1832,6 +1841,10 @@ input#algolia-doc-search:focus { display: block; text-align: left; } +@media screen and (max-width: 768px) { + .entry-share { + display: none; } } + .entry-excerpt { min-width: 320px; max-width: 640px; @@ -1903,7 +1916,7 @@ article li { .posted-on { font-size: 12px; - color: rgba(102, 99, 122, 0.29); + color: #9d9b9b; margin-bottom: 0; margin-top: 15px; } @@ -1918,7 +1931,7 @@ article li { color: #5A6B77; } .name-title .title { - color: rgba(102, 99, 122, 0.44); } + color: #9d9b9b; } .btn { background: 0 0; diff --git a/docs/accessibility.html b/docs/accessibility.html index 2d9078c40a7..a3168a735dc 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
apiKey: '2c98749b4a1e588efec53b2acec13025',
indexName: 'react-native-versions',
inputSelector: '#algolia-doc-search',
- algoliaOptions: { facetFilters: [ "tags:0.44" ], hitsPerPage: 5 }
+ algoliaOptions: { facetFilters: [ "tags:0.45" ], hitsPerPage: 5 }
});
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/docs/accessibilityinfo.html b/docs/accessibilityinfo.html
index d7efeb626c9..a7e71447699 100644
--- a/docs/accessibilityinfo.html
+++ b/docs/accessibilityinfo.html
@@ -1,4 +1,4 @@
-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.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.
You can edit the content above on GitHub and send us a pull request!
Examples # | Edit on GitHub |
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).
You can edit the content above on GitHub and send us a pull request!
Examples # | Edit on GitHub |
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).
You can edit the content above on GitHub and send us a pull request!