Open maboelsoud opened 6 years ago
Did you resolved it ? I am also facing the same issue
Any progress on this? Having troubles with this issue as well
temporary solution
constructor(props) {
super(props);
this.state = {
data,
columns: 3,
};
}
componentDidMount() {
setTimeout(() => {
this.setState({ columns: 2, padding: 5 });
}, 500);
}
The same thing happens to me but @vijaychouhan-rails solutions do not work for me :/, any help?
See the same issue on iOS. Need help ! Setting the columns to 3 and then back to 2 is not the correct way to handle this...
+1
Expected Behavior
the expected behaviour should be that the masonry is rendered correctly
Current Behavior
when you refresh the app, the masonry fails to render all but the last column
Possible Solution
inspecting the code, it seems that all the bricks are given a width and height of 'Nan', but only the bricks in the last column get called with "_setParentDimensions" in Mansonry.js.
Steps to Reproduce
Link to the expo repo: https://snack.expo.io/BJITHeTm7 Make sure the preview is activated and the phone used for the preview is an android.
Context (Environment)
Detailed Description
Possible Implementation