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
Add linting for insensitive and inconsiderate language (facebook#1337)
* Add linting for insensitive and inconsiderate language
* Add .alexrc.js
* Update alex rules
* Minor updates to formatting
* Fix deploy_website job name
* Update alex rules
* Add lintv and .alexignore
* Fix lint issues
Copy file name to clipboardExpand all lines: docs/accessibility.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
@@ -49,7 +49,7 @@ In the above example, the `accessibilityLabel` on the TouchableOpacity element w
49
49
50
50
#### accessibilityHint (iOS, Android)
51
51
52
-
An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not obvious from the accessibility label.
52
+
An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
53
53
54
54
To use, set the `accessibilityHint` property to a custom string on your View, Text or Touchable:
55
55
@@ -185,7 +185,7 @@ In the case of two overlapping UI components with the same parent, default acces
185
185
</View>
186
186
```
187
187
188
-
In the above example, the yellow layout and its descendants are completely invisible to TalkBack and all other accessibility services. So we can easily use overlapping views with the same parent without confusing TalkBack.
188
+
In the above example, the yellow layout and its descendants are completely invisible to TalkBack and all other accessibility services. So we can use overlapping views with the same parent without confusing TalkBack.
Copy file name to clipboardExpand all lines: docs/animated.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@ id: animated
3
3
title: Animated
4
4
---
5
5
6
-
The `Animated` library is designed to make animations fluid, powerful, and easy to build and maintain. `Animated` focuses on declarative relationships between inputs and outputs, with configurable transforms in between, and simple`start`/`stop` methods to control time-based animation execution.
6
+
The `Animated` library is designed to make animations fluid, powerful, and painless to build and maintain. `Animated` focuses on declarative relationships between inputs and outputs, with configurable transforms in between, and `start`/`stop` methods to control time-based animation execution.
7
7
8
-
The simplest workflow for creating an animation is to create an `Animated.Value`, hook it up to one or more style attributes of an animated component, and then drive updates via animations using `Animated.timing()`:
8
+
The most basic workflow for creating an animation is to create an `Animated.Value`, hook it up to one or more style attributes of an animated component, and then drive updates via animations using `Animated.timing()`:
9
9
10
10
```jsx
11
11
Animated.timing(
@@ -33,7 +33,7 @@ There are two value types you can use with `Animated`:
33
33
`Animated` provides three types of animation types. Each animation type provides a particular animation curve that controls how your values animate from their initial value to the final value:
34
34
35
35
-[`Animated.decay()`](animated.md#decay) starts with an initial velocity and gradually slows to a stop.
36
-
-[`Animated.spring()`](animated.md#spring) provides a simple spring physics model.
36
+
-[`Animated.spring()`](animated.md#spring) provides a basic spring physics model.
37
37
-[`Animated.timing()`](animated.md#timing) animates a value over time using [easing functions](easing.md).
38
38
39
39
In most cases, you will be using `timing()`. By default, it uses a symmetric easeInOut curve that conveys the gradual acceleration of an object to full speed and concludes by gradually decelerating to a stop.
@@ -50,7 +50,7 @@ You can use the native driver by specifying `useNativeDriver: true` in your anim
50
50
51
51
### Animatable components
52
52
53
-
Only animatable components can be animated. These special components do the magic of binding the animated values to the properties, and do targeted native updates to avoid the cost of the react render and reconciliation process on every frame. They also handle cleanup on unmount so they are safe by default.
53
+
Only animatable components can be animated. These unique components do the magic of binding the animated values to the properties, and do targeted native updates to avoid the cost of the react render and reconciliation process on every frame. They also handle cleanup on unmount so they are safe by default.
54
54
55
55
-[`createAnimatedComponent()`](animated.md#createanimatedcomponent) can be used to make a component animatable.
56
56
@@ -72,7 +72,7 @@ Animations can also be combined in complex ways using composition functions:
72
72
-[`Animated.sequence()`](animated.md#sequence) starts the animations in order, waiting for each to complete before starting the next.
73
73
-[`Animated.stagger()`](animated.md#stagger) starts animations in order and in parallel, but with successive delays.
74
74
75
-
Animations can also be chained together simply by setting the `toValue` of one animation to be another `Animated.Value`. See [Tracking dynamic values](animations.md#tracking-dynamic-values) in the Animations guide.
75
+
Animations can also be chained together by setting the `toValue` of one animation to be another `Animated.Value`. See [Tracking dynamic values](animations.md#tracking-dynamic-values) in the Animations guide.
76
76
77
77
By default, if one animation is stopped or interrupted, then all other animations in the group are also stopped.
78
78
@@ -169,14 +169,14 @@ Config is an object that may have the following options.
169
169
170
170
Note that you can only define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one:
171
171
172
-
The friction/tension or bounciness/speed options match the spring model in [Facebook Pop](https://github.com/facebook/pop), [Rebound](http://facebook.github.io/rebound/), and [Origami](http://origami.design/).
172
+
The friction/tension or bounciness/speed options match the spring model in [`Facebook Pop`](https://github.com/facebook/pop), [Rebound](http://facebook.github.io/rebound/), and [Origami](http://origami.design/).
-`speed`: Controls speed of the animation. Default 12.
177
177
-`bounciness`: Controls bounciness. Default 8.
178
178
179
-
Specifying stiffness/damping/mass as parameters makes `Animated.spring` use an analytical spring model based on the motion equations of a [damped harmonic oscillator](https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator). This behavior is slightly more precise and faithful to the physics behind spring dynamics, and closely mimics the implementation in iOS's CASpringAnimation primitive.
179
+
Specifying stiffness/damping/mass as parameters makes `Animated.spring` use an analytical spring model based on the motion equations of a [damped harmonic oscillator](https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator). This behavior is slightly more precise and faithful to the physics behind spring dynamics, and closely mimics the implementation in iOS's CASpringAnimation.
180
180
181
181
-`stiffness`: The spring stiffness coefficient. Default 100.
182
182
-`damping`: Defines how the spring’s motion should be damped due to the forces of friction. Default 10.
@@ -344,7 +344,7 @@ Config is an object that may have the following options:
344
344
staticforkEvent(event, listener)
345
345
```
346
346
347
-
Advanced imperative API for snooping on animated events that are passed in through props. It permits to add a new javascript listener to an existing `AnimatedEvent`. If `animatedEvent` is a simple javascript listener, it will merge the 2 listeners into a single one, and if `animatedEvent` is null/undefined, it will assign the javascript listener directly. Use values directly where possible.
347
+
Advanced imperative API for snooping on animated events that are passed in through props. It permits to add a new javascript listener to an existing `AnimatedEvent`. If `animatedEvent` is a javascript listener, it will merge the 2 listeners into a single one, and if `animatedEvent` is null/undefined, it will assign the javascript listener directly. Use values directly where possible.
0 commit comments