Benefits of Using the React Native Listview Realm Listview

Realm documentation recommends using their ListView implementation:

import { ListView } from 'realm/react-native'; 

But I can not find any information about what the actual difference is and what are the benefits.

Also, with new reactions to native versions coming out every week, will the risk quickly become obsolete?

+7
react-native realm
source share
1 answer

When used with Realm collections (i.e. List or Results ), Realm ListView designed for more CPU / memory than ListView stock. It will also help prevent common mistakes by automatically using static snapshots of collections, which is necessary because Realm collections can change at any time. Therefore, we recommend using it to prevent certain classes of errors, as well as to improve performance.

I am updating the documentation with some information. We are actively monitoring any possible violations in the React Native repo, but it is intended (I hope) not to break for most types of changes in the ListView stock.

+6
source share

All Articles