Skip to content

Commit 7b69da4

Browse files
authored
Remove deprecated APIs (#5167)
* Remove deprecated APIs Summary: Mirrors the cleanup of deprecated APIs that were recently removed. See react/react-native#57384 for the list * Update statusbar.md * Fix prettier errors
1 parent 2f7a1a3 commit 7b69da4

10 files changed

Lines changed: 10 additions & 576 deletions

File tree

docs/animated.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Config is an object that may have the following options:
216216

217217
- `velocity`: Initial velocity. Required.
218218
- `deceleration`: Rate of decay. Default 0.997.
219-
- `isInteraction`: Whether or not this animation creates an "interaction handle" on the `InteractionManager`. Default true.
219+
- `isInteraction`: Whether or not this animation creates an "interaction handle". Default true.
220220
- `useNativeDriver`: Uses the native driver when true. Required.
221221

222222
---
@@ -234,7 +234,7 @@ Config is an object that may have the following options:
234234
- `duration`: Length of animation (milliseconds). Default 500.
235235
- `easing`: Easing function to define curve. Default is `Easing.inOut(Easing.ease)`.
236236
- `delay`: Start the animation after delay (milliseconds). Default 0.
237-
- `isInteraction`: Whether or not this animation creates an "interaction handle" on the `InteractionManager`. Default true.
237+
- `isInteraction`: Whether or not this animation creates an "interaction handle". Default true.
238238
- `useNativeDriver`: Uses the native driver when true. Required.
239239

240240
---
@@ -271,7 +271,7 @@ Other configuration options are as follows:
271271
- `restDisplacementThreshold`: The threshold of displacement from rest below which the spring should be considered at rest. Default 0.001.
272272
- `restSpeedThreshold`: The speed at which the spring should be considered at rest in pixels per second. Default 0.001.
273273
- `delay`: Start the animation after delay (milliseconds). Default 0.
274-
- `isInteraction`: Whether or not this animation creates an "interaction handle" on the `InteractionManager`. Default true.
274+
- `isInteraction`: Whether or not this animation creates an "interaction handle". Default true.
275275
- `useNativeDriver`: Uses the native driver when true. Required.
276276

277277
---

docs/animations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,4 +669,4 @@ As mentioned [in the Direct Manipulation section](legacy/direct-manipulation), `
669669

670670
We could use this in the Rebound example to update the scale - this might be helpful if the component that we are updating is deeply nested and hasn't been optimized with `shouldComponentUpdate`.
671671

672-
If you find your animations with dropping frames (performing below 60 frames per second), look into using `setNativeProps` or `shouldComponentUpdate` to optimize them. Or you could run the animations on the UI thread rather than the JavaScript thread [with the useNativeDriver option](/blog/2017/02/14/using-native-driver-for-animated). You may also want to defer any computationally intensive work until after animations are complete, using the [InteractionManager](interactionmanager). You can monitor the frame rate by using the In-App Dev Menu "FPS Monitor" tool.
672+
If you find your animations with dropping frames (performing below 60 frames per second), look into using `setNativeProps` or `shouldComponentUpdate` to optimize them. Or you could run the animations on the UI thread rather than the JavaScript thread [with the useNativeDriver option](/blog/2017/02/14/using-native-driver-for-animated). You may also want to defer any computationally intensive work until the JS thread is idle (for example, with `requestIdleCallback`). You can monitor the frame rate by using the In-App Dev Menu "FPS Monitor" tool.

0 commit comments

Comments
 (0)