App is crash, if API data size 500kb and large in react-native The 2019 Stack Overflow Developer Survey Results Are InHow do you debug React Native?Hide keyboard in react-nativeHow to do logging in React Native?Get size of a View in React NativeWhat is the difference between using constructor vs getInitialState in React / React Native?React Native android build failed. SDK location not foundHow to add icons to React Native appWhat is the difference between React Native and React?Error Running React Native App From Terminal (iOS)Memory Issue: React Native app crash because of heavy data
A word that means fill it to the required quantity
Correct punctuation for showing a character's confusion
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
What's the name of these plastic connectors
Why doesn't shell automatically fix "useless use of cat"?
How can I define good in a religion that claims no moral authority?
Pokemon Turn Based battle (Python)
How to support a colleague who finds meetings extremely tiring?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Does adding complexity mean a more secure cipher?
Dropping list elements from nested list after evaluation
Keeping a retro style to sci-fi spaceships?
If a sorcerer casts the Banishment spell on a PC while in Avernus, does the PC return to their home plane?
Accepted by European university, rejected by all American ones I applied to? Possible reasons?
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
How much of the clove should I use when using big garlic heads?
Is it correct to say the Neural Networks are an alternative way of performing Maximum Likelihood Estimation? if not, why?
What is this business jet?
What do I do when my TA workload is more than expected?
Why doesn't UInt have a toDouble()?
Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?
Is it okay to consider publishing in my first year of PhD?
Why couldn't they take pictures of a closer black hole?
Does HR tell a hiring manager about salary negotiations?
App is crash, if API data size 500kb and large in react-native
The 2019 Stack Overflow Developer Survey Results Are InHow do you debug React Native?Hide keyboard in react-nativeHow to do logging in React Native?Get size of a View in React NativeWhat is the difference between using constructor vs getInitialState in React / React Native?React Native android build failed. SDK location not foundHow to add icons to React Native appWhat is the difference between React Native and React?Error Running React Native App From Terminal (iOS)Memory Issue: React Native app crash because of heavy data
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Description::
I'm working on react-native application. If my API data size is more than 500 kb and can be extended to mb value. My Android/IOS app crashes on loading a page for a second time.
I can not add a pagination to the API, because I want all the data on the page load. I am having only 5 records, but each record having huge data. Pagination not resolved this issue for me. Each record containing 1 year schedule for a record.
Error Log::
2019-03-22 10:00:31.048 557-557/? E/lowmemorykiller: Error writing /proc/15420/oom_score_adj; errno=22
2019-03-22 10:00:31.137 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:31.140 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:32.076 1656-1796/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=199, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-03-22 10:00:32.125 467-2617/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2019-03-22 10:00:32.280 2033-2033/? E/QcDataStatusNotification Service: mobile_data3
2019-03-22 10:00:32.337 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.357 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.406 14683-14683/? E/ReflectUtils: Exception e: miui.reflect.NoSuchMethodException: Couldn't find method android/app/ActivityManagerProxy.setProcessForeground(IZ)Landroid/os/IBinder;
2019-03-22 10:00:32.460 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.461 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.494 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.495 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.513 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.527 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.528 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.599 16143-16184/? E/WakePathManager: UpdateWakePathTask.doInBackground: isWifiNetwork==false
2019-03-22 10:00:32.600 14683-16187/? E/ActivityThread: Failed to find provider info for com.xiaomi.mihomemanager.whitelistProvider
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/quietImage.png
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: startImage.png
Some time it's working fine, if API data is too small. This is a problem when API data is too large. Please suggest If anyone having a solution?
react-native
add a comment |
Description::
I'm working on react-native application. If my API data size is more than 500 kb and can be extended to mb value. My Android/IOS app crashes on loading a page for a second time.
I can not add a pagination to the API, because I want all the data on the page load. I am having only 5 records, but each record having huge data. Pagination not resolved this issue for me. Each record containing 1 year schedule for a record.
Error Log::
2019-03-22 10:00:31.048 557-557/? E/lowmemorykiller: Error writing /proc/15420/oom_score_adj; errno=22
2019-03-22 10:00:31.137 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:31.140 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:32.076 1656-1796/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=199, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-03-22 10:00:32.125 467-2617/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2019-03-22 10:00:32.280 2033-2033/? E/QcDataStatusNotification Service: mobile_data3
2019-03-22 10:00:32.337 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.357 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.406 14683-14683/? E/ReflectUtils: Exception e: miui.reflect.NoSuchMethodException: Couldn't find method android/app/ActivityManagerProxy.setProcessForeground(IZ)Landroid/os/IBinder;
2019-03-22 10:00:32.460 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.461 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.494 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.495 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.513 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.527 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.528 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.599 16143-16184/? E/WakePathManager: UpdateWakePathTask.doInBackground: isWifiNetwork==false
2019-03-22 10:00:32.600 14683-16187/? E/ActivityThread: Failed to find provider info for com.xiaomi.mihomemanager.whitelistProvider
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/quietImage.png
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: startImage.png
Some time it's working fine, if API data is too small. This is a problem when API data is too large. Please suggest If anyone having a solution?
react-native
1
Sometimes you might not need all the data, but statistics from the data, e.g. total no from a year, or highlighted items from that year, to display to user in the first screen. Once user want more details of a record, you can fetch more data from API. Optimal solution would be provide more API methods which return exactly what the current screen needs, and get more when user interacts. That is the common solution.
– blaz
Mar 22 at 4:50
We need a all data at page load.
– Harleen Kaur Arora
Mar 22 at 6:19
You need to provide more info. How are you fetching the data? It would better if you add your fetch method and sample response from the server.
– Meysam Izadmehr
Mar 22 at 9:56
s.nimbusweb.me/share/2679238/vkbv66hc1fh1gcrzfkn3
– Harleen Kaur Arora
Mar 22 at 14:30
add a comment |
Description::
I'm working on react-native application. If my API data size is more than 500 kb and can be extended to mb value. My Android/IOS app crashes on loading a page for a second time.
I can not add a pagination to the API, because I want all the data on the page load. I am having only 5 records, but each record having huge data. Pagination not resolved this issue for me. Each record containing 1 year schedule for a record.
Error Log::
2019-03-22 10:00:31.048 557-557/? E/lowmemorykiller: Error writing /proc/15420/oom_score_adj; errno=22
2019-03-22 10:00:31.137 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:31.140 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:32.076 1656-1796/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=199, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-03-22 10:00:32.125 467-2617/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2019-03-22 10:00:32.280 2033-2033/? E/QcDataStatusNotification Service: mobile_data3
2019-03-22 10:00:32.337 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.357 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.406 14683-14683/? E/ReflectUtils: Exception e: miui.reflect.NoSuchMethodException: Couldn't find method android/app/ActivityManagerProxy.setProcessForeground(IZ)Landroid/os/IBinder;
2019-03-22 10:00:32.460 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.461 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.494 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.495 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.513 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.527 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.528 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.599 16143-16184/? E/WakePathManager: UpdateWakePathTask.doInBackground: isWifiNetwork==false
2019-03-22 10:00:32.600 14683-16187/? E/ActivityThread: Failed to find provider info for com.xiaomi.mihomemanager.whitelistProvider
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/quietImage.png
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: startImage.png
Some time it's working fine, if API data is too small. This is a problem when API data is too large. Please suggest If anyone having a solution?
react-native
Description::
I'm working on react-native application. If my API data size is more than 500 kb and can be extended to mb value. My Android/IOS app crashes on loading a page for a second time.
I can not add a pagination to the API, because I want all the data on the page load. I am having only 5 records, but each record having huge data. Pagination not resolved this issue for me. Each record containing 1 year schedule for a record.
Error Log::
2019-03-22 10:00:31.048 557-557/? E/lowmemorykiller: Error writing /proc/15420/oom_score_adj; errno=22
2019-03-22 10:00:31.137 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:31.140 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:32.076 1656-1796/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=199, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-03-22 10:00:32.125 467-2617/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2019-03-22 10:00:32.280 2033-2033/? E/QcDataStatusNotification Service: mobile_data3
2019-03-22 10:00:32.337 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.357 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.406 14683-14683/? E/ReflectUtils: Exception e: miui.reflect.NoSuchMethodException: Couldn't find method android/app/ActivityManagerProxy.setProcessForeground(IZ)Landroid/os/IBinder;
2019-03-22 10:00:32.460 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.461 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.494 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.495 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.513 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.527 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.528 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.599 16143-16184/? E/WakePathManager: UpdateWakePathTask.doInBackground: isWifiNetwork==false
2019-03-22 10:00:32.600 14683-16187/? E/ActivityThread: Failed to find provider info for com.xiaomi.mihomemanager.whitelistProvider
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/quietImage.png
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: startImage.png
Some time it's working fine, if API data is too small. This is a problem when API data is too large. Please suggest If anyone having a solution?
react-native
react-native
asked Mar 22 at 4:43
Harleen Kaur AroraHarleen Kaur Arora
5671633
5671633
1
Sometimes you might not need all the data, but statistics from the data, e.g. total no from a year, or highlighted items from that year, to display to user in the first screen. Once user want more details of a record, you can fetch more data from API. Optimal solution would be provide more API methods which return exactly what the current screen needs, and get more when user interacts. That is the common solution.
– blaz
Mar 22 at 4:50
We need a all data at page load.
– Harleen Kaur Arora
Mar 22 at 6:19
You need to provide more info. How are you fetching the data? It would better if you add your fetch method and sample response from the server.
– Meysam Izadmehr
Mar 22 at 9:56
s.nimbusweb.me/share/2679238/vkbv66hc1fh1gcrzfkn3
– Harleen Kaur Arora
Mar 22 at 14:30
add a comment |
1
Sometimes you might not need all the data, but statistics from the data, e.g. total no from a year, or highlighted items from that year, to display to user in the first screen. Once user want more details of a record, you can fetch more data from API. Optimal solution would be provide more API methods which return exactly what the current screen needs, and get more when user interacts. That is the common solution.
– blaz
Mar 22 at 4:50
We need a all data at page load.
– Harleen Kaur Arora
Mar 22 at 6:19
You need to provide more info. How are you fetching the data? It would better if you add your fetch method and sample response from the server.
– Meysam Izadmehr
Mar 22 at 9:56
s.nimbusweb.me/share/2679238/vkbv66hc1fh1gcrzfkn3
– Harleen Kaur Arora
Mar 22 at 14:30
1
1
Sometimes you might not need all the data, but statistics from the data, e.g. total no from a year, or highlighted items from that year, to display to user in the first screen. Once user want more details of a record, you can fetch more data from API. Optimal solution would be provide more API methods which return exactly what the current screen needs, and get more when user interacts. That is the common solution.
– blaz
Mar 22 at 4:50
Sometimes you might not need all the data, but statistics from the data, e.g. total no from a year, or highlighted items from that year, to display to user in the first screen. Once user want more details of a record, you can fetch more data from API. Optimal solution would be provide more API methods which return exactly what the current screen needs, and get more when user interacts. That is the common solution.
– blaz
Mar 22 at 4:50
We need a all data at page load.
– Harleen Kaur Arora
Mar 22 at 6:19
We need a all data at page load.
– Harleen Kaur Arora
Mar 22 at 6:19
You need to provide more info. How are you fetching the data? It would better if you add your fetch method and sample response from the server.
– Meysam Izadmehr
Mar 22 at 9:56
You need to provide more info. How are you fetching the data? It would better if you add your fetch method and sample response from the server.
– Meysam Izadmehr
Mar 22 at 9:56
s.nimbusweb.me/share/2679238/vkbv66hc1fh1gcrzfkn3
– Harleen Kaur Arora
Mar 22 at 14:30
s.nimbusweb.me/share/2679238/vkbv66hc1fh1gcrzfkn3
– Harleen Kaur Arora
Mar 22 at 14:30
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55293041%2fapp-is-crash-if-api-data-size-500kb-and-large-in-react-native%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55293041%2fapp-is-crash-if-api-data-size-500kb-and-large-in-react-native%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Sometimes you might not need all the data, but statistics from the data, e.g. total no from a year, or highlighted items from that year, to display to user in the first screen. Once user want more details of a record, you can fetch more data from API. Optimal solution would be provide more API methods which return exactly what the current screen needs, and get more when user interacts. That is the common solution.
– blaz
Mar 22 at 4:50
We need a all data at page load.
– Harleen Kaur Arora
Mar 22 at 6:19
You need to provide more info. How are you fetching the data? It would better if you add your fetch method and sample response from the server.
– Meysam Izadmehr
Mar 22 at 9:56
s.nimbusweb.me/share/2679238/vkbv66hc1fh1gcrzfkn3
– Harleen Kaur Arora
Mar 22 at 14:30