Skip to content

Instantly share code, notes, and snippets.

View mablack's full-sized avatar

Michael Black mablack

  • Melbourne, Australia
View GitHub Profile
Verifying that +mablack is my blockchain ID. https://onename.com/mablack
@mablack
mablack / DynamicContentScroller.jsx
Created February 5, 2014 02:47
A React component based on SimpleScroller from react-touch. This component has support for detecting when the scrollable content area has changed size, and will reconfigure the Scroller. The project I'm working on scrolls through a list of captioned images, and the SimpleScroller component would calculate the scrollable dimensions before all the…
/** @jsx React.DOM */
var React = require('react');
var ZyngaScroller = require('react-touch/lib/environment/ZyngaScroller');
var AnimatableContainer = require('react-touch/lib/primitives/AnimatableContainer');
var TouchableArea = require('react-touch/lib/primitives/TouchableArea');
var ANIMATABLE_CONTAINER_STYLE = {
bottom: 0,