const renderView = props => {
const style = {
...props.style,
display: 'flex',
flexDirection: 'column-reverse'
}
return <div {...props} style={style} />
}
But somehow it stopped working properly and if we use it, the scrollbar starts at the top and doesn't want to go down (only up).
What we want to achieve is similar to what you can see in chats - scroll starting at the bottom and going up.
Here is the example with renderVIew I mentioned: https://codesandbox.io/s/confident-fermi-n3q9q?file=/src/SpringScrollbarsExample.js