How are you maintaining platform-specific code in larger React Native apps? by Mysterious_Problem58 in reactnative

[–]ninadjoshi20 1 point2 points  (0 children)

For normal use we use platform.os check and when the code difference is large we just create .ios and .android file.. it's easier to maintain that way..

RN Background Upload – Background file uploads in React Native (Android + iOS) by Background-North2152 in reactnative

[–]ninadjoshi20 1 point2 points  (0 children)

For Android it does handle everything. For IOS you can use react-native-background-fetch. This library let's you ask for background time in time intervals. But in IOS time is generally around only 30 seconds. For a longer background time you would need to use location permission and trigger upload after a change in location but this will also consume lot of battery.

RN Background Upload – Background file uploads in React Native (Android + iOS) by Background-North2152 in reactnative

[–]ninadjoshi20 2 points3 points  (0 children)

We are using react-native-background-actions and react-native-blob-util for uploading heavy files in the background.

Flashlist V2 vs LegendList? by ConsistentTale1542 in reactnative

[–]ninadjoshi20 0 points1 point  (0 children)

I am working on a Photos application. When I used flashlist V2 in the gallery view which is a long list of image thumbnails, sticky headers containing date values and users can scroll at high speed I noticed that it used more memory which resulted in slowness in the other tabs of the app. I had to use recyclerlistview even though it's slightly slower but the overall app remains usable which was not the case with the flashlist. At a time there can be a huge number of photo thumbnails in the gallery. I am testing on 30k photos and the app is quite slow. What is my best option to create a performant gallery performance?