brh55 / react-native-masonry

:raised_hands: A pure JS react-native component to render a masonry~ish layout for images with support for dynamic columns, progressive image loading, device rotation, on-press handlers, and headers/captions.
MIT License
1.32k stars 157 forks source link

ListView is deprecated #123

Open AnibalDuarte opened 4 years ago

AnibalDuarte commented 4 years ago

There is no more information that I can provide to explain the error, because it's pretty simple: ListView is deprecated on React-Native and this plugin isn't useable anymore.

Anyone has any solution to it?

AiTranXuan commented 4 years ago

.

NishargShah commented 4 years ago

@brh55 any solution??

rbecharast-chwy commented 4 years ago

@brh55 any solution?

eddyoc commented 4 years ago

I have forked one of @brh55's branches, flat-list-parent, and modernised the component lifecycle and merged in the master branch.

This was a quick and dirty exercise and I've not even looked at the unit tests. However this is now working swimmingly with the latest version of React.

It can be found here, hopefully this will assist in keeping this awesome component moving forwards.

git://github.com/eddyoc/react-native-masonry#flat-list-modernize

mshafex commented 3 years ago

still not fixed ?

j-braun0384 commented 3 years ago

git://github.com/eddyoc/react-native-masonry

i've installed your fork and I'm still recieving the ListView error?

Cetger commented 2 years ago

Guys you can use ListView in react-native-masonry/components/Masonry import { View, ListView, Image, Text, Dimensions } from 'react-native'; change with

import { View, Image, Text, Dimensions } from 'react-native';
import ListView from "deprecated-react-native-listview";

And also you need to add this deprecated library via yarn or npm