react-native-calendar
react-native-calendar copied to clipboard
Slow load time
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?
Same issue here. I have been testing it on iPhone 6S, the date selection is pretty slow.
+1
Try changing it to Release mode when you run it on your device
@MosesEsan How do I do this on Android?
@GCour Look at this guide https://facebook.github.io/react-native/docs/signed-apk-android.html
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.
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.
selection goes slow also in android and makes my app unusable.
Its too slow in android device.
Maybe by disable the debug mode the speed grows up
Setting scrollEnabled={false} definaly improves the performance. I also think switching ScrollView with a ListView will improve performance as per docs
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.