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

Slow load time

Open GCour opened this issue 8 years ago • 12 comments

I'm not sure how it is on other devices, but the load time is so slow on my Nexus (Android). In my emulator it goes fast, but probably due to being on a computer...

If I click menu link 'events' it waits like 4 seconds then it goes to the events page with the Calendar.

Am I the only one with this problem?

GCour avatar Sep 16 '16 17:09 GCour

Same issue here. I have been testing it on iPhone 6S, the date selection is pretty slow.

surendharreddy avatar Sep 19 '16 05:09 surendharreddy

+1

ronak301 avatar Sep 19 '16 14:09 ronak301

Try changing it to Release mode when you run it on your device screen shot 2016-09-26 at 3 27 58 pm screen shot 2016-09-26 at 3 28 17 pm

MosesEsan avatar Sep 26 '16 19:09 MosesEsan

@MosesEsan How do I do this on Android?

GCour avatar Sep 27 '16 08:09 GCour

@GCour Look at this guide https://facebook.github.io/react-native/docs/signed-apk-android.html

zhanbst avatar Oct 03 '16 04:10 zhanbst

Running in debug mode with chrome debugger significantly reduces performance. However, I still think there are a good amount of improvements to bump up performance. Leaving this open to suggestions on how we can achieve that.

christopherdro avatar Oct 30 '16 17:10 christopherdro

It would be possible to replace the ScrollView with a ListView. As per the react-native docs:

ScrollView works best to present a small amount of things of a limited size. All the elements and views of a ScrollView are rendered, even if they are not currently shown on the screen. If you have a long list of more items that can fit on the screen, you should use a ListView instead.

Maybe using a ListView will give the desired effect.

excitement-engineer avatar Dec 29 '16 11:12 excitement-engineer

selection goes slow also in android and makes my app unusable.

sdrabb avatar Jan 14 '17 10:01 sdrabb

Its too slow in android device.

kaola8246 avatar Feb 04 '17 15:02 kaola8246

Maybe by disable the debug mode the speed grows up

sdrabb avatar Feb 04 '17 16:02 sdrabb

Setting scrollEnabled={false} definaly improves the performance. I also think switching ScrollView with a ListView will improve performance as per docs

Wu4D avatar Apr 04 '17 08:04 Wu4D

I deactivated the debug mode and install the APK in my device, and now I've a normal load time! The slow performance is only on debug.

IcaroRios avatar Jul 09 '17 19:07 IcaroRios