Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<ImageBackground /> cripples JS animation performance [Android] #26612

Closed
jordangrant opened this issue Sep 27, 2019 · 0 comments
Closed

<ImageBackground /> cripples JS animation performance [Android] #26612

jordangrant opened this issue Sep 27, 2019 · 0 comments

Comments

@jordangrant
Copy link

jordangrant commented Sep 27, 2019

When I used an ImageBackground in my FlatList, it crippled my animation performance for JS animations. (Image works properly.)

<FlatList
data={'bg1', 'bg2', 'bg3'}
horizontal={true}
renderItem={({ item, index }) =>
     <TouchableOpacity ...>
          <ImageBackground source={{ uri: item }} style={S.avatar} />
     </TouchableOpacity>
} />

This performance degradation was visible on the component rn-sliding-up-panel https://github.com/octopitus/rn-sliding-up-panel

This was hard to track down, but yes, this one little difference (ImageBackground vs Image) destroyed the usability of the sliding-up-panel.

Watch this video: https://youtu.be/CanW129GyD8

React Native version: 60.5
CC: #22448, @iljadaderko, @club9822

@facebook facebook locked as resolved and limited conversation to collaborators Oct 3, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants