cooperka / react-native-immutable-list-view

:scroll: Drop-in replacement for ListView, FlatList, and VirtualizedList.
MIT License
205 stars 30 forks source link

Warning: ListView is deprecated and will be removed in a future release. #41

Closed diegolaciar closed 5 years ago

diegolaciar commented 5 years ago

Hi I get this warning and don' t know way?

"Warning: ListView is deprecated and will be removed in a future release. "

I'm using expo sdk 35.0.0

I just replaced my Flatlist with this code

 <ImmutableVirtualizedList
      immutableData={messageList}
      renderItem={renderItemImmutable}
    />
cooperka commented 5 years ago

Hi @diegolaciar, are you sure you aren't using ImmutableListView or regular ListView anywhere else in your app? ~I'm not sure why you'd be seeing this warning otherwise.~

If you link to an example app with this issue I can look into it further. Thanks.

diegolaciar commented 5 years ago

Hi @cooperka ,

Yes I'm sure I'm not using ListView anywhere else.

Also I wanted to comment I'm not able to import VirtualizedList from react-native. I don't know why or if it' s because I' m using using expo sdk 35.0.0 and typescript.

cooperka commented 5 years ago

My mistake, ImmutableListView was being exported from the main index.js file and therefore being included automatically even if you were only using ImmutableVirtualizedList.

This has been fixed in the latest v2.0 release; please upgrade to get rid of the warning. Thanks for the report!