react-native icon indicating copy to clipboard operation
react-native copied to clipboard

performance issue - StyleSheet border style on view with huge text

Open mateoKaradza opened this issue 10 years ago • 3 comments

I recently started playing with React Native and so far I'm really happy with it, it's much easier than writing Java code.

I'd like to report a performance issue I had when using styling border on a view that had a lot of text within it, first the rendering of the tab would take several seconds, and then scrolling was a disaster, huge lag, frame drop, check the screenshot screenshot_2016-07-13-19-11-44-808_com crystallexicon Here is the faulty styling: https://github.com/mateoKaradza/Crystal-Lexicon-App/commit/a178451bbddc46699783e2b4514e17dd7670fbb9

Here is the test screen that reproduces the error https://github.com/mateoKaradza/Crystal-Lexicon-App/blob/master/app/screens/Test.js

In order to test it just change onItemPress id from 'ProductPage' to 'Testing': https://github.com/mateoKaradza/Crystal-Lexicon-App/blob/master/app/screens/ProductList.js#L42

I'm using RN 0.29. and this has been tested on Android.

mateoKaradza avatar Jul 15 '16 08:07 mateoKaradza

@facebook-github-bot label Perf

charpeni avatar Jul 15 '16 13:07 charpeni

cc @astreet

satya164 avatar Jul 15 '16 17:07 satya164

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/performance-issue-stylesheet-border-style-on-view-with-huge-text

Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix.

mkonicek avatar Oct 27 '16 22:10 mkonicek