Skip to content

Commit 0284b54

Browse files
Add note about renderToHardwareTextureAndroid back
1 parent 7c872c1 commit 0284b54

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/performance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ The [`Animated API`](animated.md) currently calculates each keyframe on-demand o
6565

6666
One case for using this is animating in a modal (sliding down from top and fading in a translucent overlay) while initializing and perhaps receiving responses for several network requests, rendering the contents of the modal, and updating the view where the modal was opened from. See the [Animations guide](animations.md) for more information about how to use `LayoutAnimation`.
6767

68+
This is especially true on Android when you have text with a transparent background positioned on top of an image, or any other situation where alpha compositing would be required to re-draw the view on each frame. You will find that enabling `renderToHardwareTextureAndroid` can help with this significantly. For iOS, `shouldRasterizeIOS` is already enabled by default.
69+
6870
**Caveats:**
6971

7072
- `LayoutAnimation` only works for fire-and-forget animations ("static" animations) -- if it must be interruptible, you will need to use [`Animated`](animated.md).

0 commit comments

Comments
 (0)