9

React Native feels slow on cheap Android phones: where do I start?

AO Abena Owusu 76 il y a 3 mois Ghana

Lists scroll with visible lag on devices with 2 GB of RAM, which is what most of our users have.

Modifiée il y a 2 heures
6
AN Adama Nikiéma 221 · il y a 3 mois Réponse acceptée

Replace ScrollView with FlatList and set getItemLayout, windowSize and removeClippedSubviews. Memoise row components with React.memo and avoid creating new functions or objects in renderItem.

  • Which version are you running? The behaviour changed in the latest release. · Salif Zongo · il y a 3 mois
3
NE Ngozi Eze 38 · il y a 3 mois

Enable Hermes, compress images to the display size, and profile on a real low-end device in release mode: debug builds are always much slower. Measure before optimising.

  • Great answer, the raw body tip saved me hours. · Mamadou Barry · il y a 3 mois

Vous connaissez la réponse ? Rejoignez Griot pour aider.

Publier

Poser une question Obtenir de l'aide de la communauté Publier un composant Partager un SDK, un wrapper ou un package Proposer un troc Échanger une heure d'aide contre une autre Créer une prime Récompenser une solution en Mobile Money Organiser un hackathon Lancer un défi pour la communauté
Troc de compétences Primes Hackathons Observatoire