Skip to content

Instantly share code, notes, and snippets.

// Edit from http://blog.vjeux.com/2013/javascript/scroll-position-with-react.html
componentDidMount() {
const node = ReactDOM.findDOMNode(this);
node.scrollTop = node.scrollHeight;
}
componentWillUpdate: function() {
const node = this.getDOMNode();
this.shouldScrollBottom = node.scrollTop + node.offsetHeight === node.scrollHeight;
},
@lekaha
lekaha / install_bundle.sh
Created July 1, 2020 11:56
Install .aab file
FILE=app.apks
if test -f "$FILE"; then
echo "Press enter to delete app.apks"
read wait
rm app.apks
fi
if [ -z "$1" ]
then
echo "No aab file path arguments supplied. Exit."