Skip to content

Instantly share code, notes, and snippets.

@JosephDuffy
Created July 4, 2017 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosephDuffy/c013a5858e14e5bea969c969c7fe3487 to your computer and use it in GitHub Desktop.
Save JosephDuffy/c013a5858e14e5bea969c969c7fe3487 to your computer and use it in GitHub Desktop.
import * as React from 'react';
import { ScrollView } from 'react-native';
class Foo extends React.Component {
private scrollView: ScrollView;
render() {
return (
<ScrollView
ref={ref => { this.scrollView = ref }}
/>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment