Skip to content

Commit

Permalink
Upgrade to 1.9.1
Browse files Browse the repository at this point in the history
Reviewed By: vjeux

Differential Revision: D6497877

fbshipit-source-id: 3b88b96e375ddf1fbe039a0593569bbdde40a2dc
  • Loading branch information
adamjernst authored and facebook-github-bot committed Dec 7, 2017
1 parent 4034feb commit 9f33fe2
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 89 deletions.
38 changes: 19 additions & 19 deletions Libraries/Animated/src/AnimatedImplementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,14 +528,14 @@ module.exports = {
ValueXY: AnimatedValueXY,
/**
* Exported to use the Interpolation type in flow.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#interpolation
*/
Interpolation: AnimatedInterpolation,
/**
* Exported for ease of type checking. All animated values derive from this
* class.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#node
*/
Node: AnimatedNode,
Expand All @@ -557,39 +557,39 @@ module.exports = {
/**
* Animates a value according to an analytical spring model based on
* damped harmonic oscillation.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#spring
*/
spring,

/**
* Creates a new Animated value composed from two Animated values added
* together.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#add
*/
add,

/**
* Creates a new Animated value composed by dividing the first Animated value
* by the second Animated value.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#divide
*/
divide,

/**
* Creates a new Animated value composed from two Animated values multiplied
* together.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#multiply
*/
multiply,

/**
* Creates a new Animated value that is the (non-negative) modulo of the
* provided Animated value.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#modulo
*/
modulo,
Expand All @@ -598,75 +598,75 @@ module.exports = {
* Create a new Animated value that is limited between 2 values. It uses the
* difference between the last value so even if the value is far from the
* bounds it will start changing when the value starts getting closer again.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#diffclamp
*/
diffClamp,

/**
* Starts an animation after the given delay.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#delay
*/
delay,
/**
* Starts an array of animations in order, waiting for each to complete
* before starting the next. If the current running animation is stopped, no
* following animations will be started.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#sequence
*/
sequence,
/**
* Starts an array of animations all at the same time. By default, if one
* of the animations is stopped, they will all be stopped. You can override
* this with the `stopTogether` flag.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#parallel
*/
parallel,
/**
* Array of animations may run in parallel (overlap), but are started in
* sequence with successive delays. Nice for doing trailing effects.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#stagger
*/
stagger,
/**
* Loops a given animation continuously, so that each time it reaches the
* end, it resets and begins again from the start.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#loop
*/
*/
loop,

/**
* Takes an array of mappings and extracts values from each arg accordingly,
* then calls `setValue` on the mapped outputs.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#event
*/
event,

/**
* Make any React component Animatable. Used to create `Animated.View`, etc.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#createanimatedcomponent
*/
createAnimatedComponent,

/**
* Imperative API to attach an animated value to an event on a view. Prefer
* Imperative API to attach an animated value to an event on a view. Prefer
* using `Animated.event` with `useNativeDrive: true` if possible.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#attachnativeevent
*/
attachNativeEvent,

/**
* Advanced imperative API for snooping on animated events that are passed in
* through props. Use values directly where possible.
*
*
* See http://facebook.github.io/react-native/docs/animated.html#forkevent
*/
forkEvent,
Expand Down
4 changes: 3 additions & 1 deletion Libraries/Animated/src/NativeAnimatedHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ function validateTransform(configs: Array<Object>): void {
configs.forEach(config => {
if (!TRANSFORM_WHITELIST.hasOwnProperty(config.property)) {
throw new Error(
`Property '${config.property}' is not supported by native animated module`,
`Property '${
config.property
}' is not supported by native animated module`,
);
}
});
Expand Down
26 changes: 13 additions & 13 deletions Libraries/Animated/src/nodes/AnimatedValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function _flush(rootNode: AnimatedValue): void {
* multiple properties in a synchronized fashion, but can only be driven by one
* mechanism at a time. Using a new mechanism (e.g. starting a new animation,
* or calling `setValue`) will stop any previous ones.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html
*/
class AnimatedValue extends AnimatedWithChildren {
Expand Down Expand Up @@ -108,7 +108,7 @@ class AnimatedValue extends AnimatedWithChildren {
/**
* Directly set the value. This will stop any animations running on the value
* and update all the bound properties.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#setvalue
*/
setValue(value: number): void {
Expand All @@ -129,7 +129,7 @@ class AnimatedValue extends AnimatedWithChildren {
* Sets an offset that is applied on top of whatever value is set, whether via
* `setValue`, an animation, or `Animated.event`. Useful for compensating
* things like the start of a pan gesture.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#setoffset
*/
setOffset(offset: number): void {
Expand All @@ -142,7 +142,7 @@ class AnimatedValue extends AnimatedWithChildren {
/**
* Merges the offset value into the base value and resets the offset to zero.
* The final output of the value is unchanged.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#flattenoffset
*/
flattenOffset(): void {
Expand All @@ -156,7 +156,7 @@ class AnimatedValue extends AnimatedWithChildren {
/**
* Sets the offset value to the base value, and resets the base value to zero.
* The final output of the value is unchanged.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#extractoffset
*/
extractOffset(): void {
Expand All @@ -171,7 +171,7 @@ class AnimatedValue extends AnimatedWithChildren {
* Adds an asynchronous listener to the value so you can observe updates from
* animations. This is useful because there is no way to
* synchronously read the value because it might be driven natively.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#addlistener
*/
addListener(callback: ValueListenerCallback): string {
Expand All @@ -184,9 +184,9 @@ class AnimatedValue extends AnimatedWithChildren {
}

/**
* Unregister a listener. The `id` param shall match the identifier
* previously returned by `addListener()`.
*
* Unregister a listener. The `id` param shall match the identifier
* previously returned by `addListener()`.
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#removelistener
*/
removeListener(id: string): void {
Expand All @@ -198,7 +198,7 @@ class AnimatedValue extends AnimatedWithChildren {

/**
* Remove all registered listeners.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#removealllisteners
*/
removeAllListeners(): void {
Expand Down Expand Up @@ -239,7 +239,7 @@ class AnimatedValue extends AnimatedWithChildren {
* Stops any running animation or tracking. `callback` is invoked with the
* final value after stopping the animation, which is useful for updating
* state to match the animation position with layout.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#stopanimation
*/
stopAnimation(callback?: ?(value: number) => void): void {
Expand All @@ -251,7 +251,7 @@ class AnimatedValue extends AnimatedWithChildren {

/**
* Stops any animation and resets the value to its original.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#resetanimation
*/
resetAnimation(callback?: ?(value: number) => void): void {
Expand All @@ -270,7 +270,7 @@ class AnimatedValue extends AnimatedWithChildren {
/**
* Typically only used internally, but could be used by a custom Animation
* class.
*
*
* See http://facebook.github.io/react-native/docs/animatedvalue.html#animate
*/
animate(animation: Animation, callback: ?EndCallback): void {
Expand Down
Loading

0 comments on commit 9f33fe2

Please sign in to comment.