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/alert.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Alert
5
5
6
6
Launches an alert dialog with the specified title and message.
7
7
8
-
Optionally provide a list of buttons. Tapping any button will fire the respective onPress callback and dismiss the alert. By default, the only button will be an 'OK' button.
8
+
Optionally provide a list of buttons. Tapping any button will fire the respective `onPress` callback and dismiss the alert. By default, the only button will be an 'OK' button.
9
9
10
10
This is an API that works both on Android and iOS and can show static alerts. Alert that prompts the user to enter some information is available on iOS only.
Copy file name to clipboardExpand all lines: docs/button.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Button
5
5
6
6
A basic button component that should render nicely on any platform. Supports a minimal level of customization.
7
7
8
-
If this button doesn't look right for your app, you can build your own button using [Pressable](pressable). For inspiration, look at the [source code for the Button component](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Components/Button.js).
8
+
If this button doesn't look right for your app, you can build your own button using [`Pressable`](pressable). For inspiration, look at the [source code for the `Button` component](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Components/Button.js).
9
9
10
10
```tsx
11
11
<Button
@@ -212,7 +212,11 @@ If `true`, disable all interactions for this component.
Designates the next view to receive focus when the user navigates down. See the [Android documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusDown).
228
232
@@ -232,7 +236,7 @@ Designates the next view to receive focus when the user navigates down. See the
Designates the next view to receive focus when the user navigates forward. See the [Android documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusForward).
238
242
@@ -242,7 +246,7 @@ Designates the next view to receive focus when the user navigates forward. See t
Designates the next view to receive focus when the user navigates left. See the [Android documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusLeft).
248
252
@@ -252,7 +256,7 @@ Designates the next view to receive focus when the user navigates left. See the
Designates the next view to receive focus when the user navigates right. See the [Android documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusRight).
258
262
@@ -262,7 +266,7 @@ Designates the next view to receive focus when the user navigates right. See the
Designates the next view to receive focus when the user navigates up. See the [Android documentation](https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusUp).
- Press <kbd>j</kbd> from the CLI (`npx react-native start`).
30
+
- Press <kbd>J</kbd> from the CLI (`npx react-native start`).
31
31
32
32
On first launch, DevTools will open to a welcome panel, along with an open console drawer where you can view logs and interact with the JavaScript runtime. From the top of the window, you can navigate to other panels, including the integrated React Components Inspector and Profiler.
Copy file name to clipboardExpand all lines: docs/drawerlayoutandroid.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: DrawerLayoutAndroid
5
5
6
6
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
7
7
8
-
React component that wraps the platform `DrawerLayout` (Android only). The Drawer (typically used for navigation) is rendered with `renderNavigationView` and direct children are the main view (where your content goes). The navigation view is initially not visible on the screen, but can be pulled in from the side of the window specified by the `drawerPosition` prop and its width can be set by the `drawerWidth` prop.
8
+
An Android only component that wraps the platform `DrawerLayout`. The Drawer (typically used for navigation) is rendered with `renderNavigationView` and direct children are the main view (where your content goes). The navigation view is initially not visible on the screen, but can be pulled in from the side of the window specified by the `drawerPosition` prop and its width can be set by the `drawerWidth` prop.
Copy file name to clipboardExpand all lines: docs/inputaccessoryview.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: inputaccessoryview
3
3
title: InputAccessoryView
4
4
---
5
5
6
-
A component which enables customization of the keyboard input accessory view on iOS. The input accessory view is displayed above the keyboard whenever a `TextInput` has focus. This component can be used to create custom toolbars.
6
+
An iOS only component which enables customization of the keyboard input accessory view. The input accessory view is displayed above the keyboard whenever a `TextInput` has focus. This component can be used to create custom toolbars.
7
7
8
8
To use this component wrap your custom toolbar with the InputAccessoryView component, and set a `nativeID`. Then, pass that `nativeID` as the `inputAccessoryViewID` of whatever `TextInput` you desire. A basic example:
9
9
@@ -66,7 +66,7 @@ This component can also be used to create sticky text inputs (text inputs which
Copy file name to clipboardExpand all lines: docs/interactionmanager.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: InteractionManager
5
5
6
6
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
7
7
8
-
InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly.
8
+
`InteractionManager` allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly.
9
9
10
10
Applications can schedule tasks to run after interactions with the following:
| color |[color](colors)|No |Defines the color of the ripple effect. |
266
-
| borderless | boolean |No |Defines if ripple effect should not include border. |
267
-
| radius | number |No |Defines the radius of the ripple effect. |
268
-
| foreground | boolean |No |Set to true to add the ripple effect to the foreground of the view, instead of the background. This is useful if one of your child views has a background of its own, or you're e.g. displaying images, and you don't want the ripple to be covered by them. |
| color |[color](colors)| Defines the color of the ripple effect.|
266
+
| borderless | boolean | Defines if ripple effect should not include border.|
267
+
| radius | number | Defines the radius of the ripple effect.|
268
+
| foreground | boolean | Set to `true` to add the ripple effect to the foreground of the view, instead of the background. This is useful if one of your child views has a background of its own, or you're e.g. displaying images, and you don't want the ripple to be covered by them. |
Copy file name to clipboardExpand all lines: docs/refreshcontrol.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: refreshcontrol
3
3
title: RefreshControl
4
4
---
5
5
6
-
This component is used inside a ScrollView or ListView to add pull to refresh functionality. When the ScrollView is at `scrollY: 0`, swiping down triggers an `onRefresh` event.
6
+
This component is used inside a `ScrollView` or `ListView` to add pull to refresh functionality. When the `ScrollView` is at `scrollY: 0`, swiping down triggers an `onRefresh` event.
Copy file name to clipboardExpand all lines: docs/scrollview.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@ id: scrollview
3
3
title: ScrollView
4
4
---
5
5
6
-
Component that wraps platform ScrollView while providing integration with touch locking "responder" system.
6
+
Component that wraps platform `ScrollView` while providing integration with touch locking "responder" system.
7
7
8
-
Keep in mind that ScrollViews must have a bounded height in order to work, since they contain unbounded-height children into a bounded container (via a scroll interaction). In order to bound the height of a ScrollView, either set the height of the view directly (discouraged) or make sure all parent views have bounded height. Forgetting to transfer `{flex: 1}` down the view stack can lead to errors here, which the element inspector makes quick to debug.
8
+
Keep in mind that scroll views must have a bounded height in order to work, since they contain unbounded-height children into a bounded container (via a scroll interaction). In order to bound the height of a `ScrollView`, either set the height of the view directly (discouraged) or make sure all parent views have bounded height. Forgetting to transfer `{flex: 1}` down the view stack can lead to errors here, which the element inspector makes quick to debug.
9
9
10
10
Doesn't yet support other contained responders from blocking this scroll view from becoming the responder.
11
11
12
-
`<ScrollView>` vs [`<FlatList>`](flatlist.md) - which one to use?
12
+
#### `<ScrollView>` vs [`<FlatList>`](flatlist.md) - which one to use?
13
13
14
14
`ScrollView` renders all its react child components at once, but this has a performance downside.
0 commit comments