Skip to content

Instantly share code, notes, and snippets.

@janicduplessis
Created March 16, 2016 07:10
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 janicduplessis/217b9994e35f960a1793 to your computer and use it in GitHub Desktop.
Save janicduplessis/217b9994e35f960a1793 to your computer and use it in GitHub Desktop.
const React = require('react-native');
const {
StatusBar,
ScrollView,
TextInput,
View,
} = React;
const RefreshControlExample = React.createClass({
statics: {
title: '<Test>',
description: 'test',
},
render() {
const rows = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1,].map((_, i) => {
return (
<View style={{height: 100}} key={i}>
<TextInput />
</View>
);
});
return (
<View style={{flex: 1}}>
<StatusBar translucent />
<ScrollView style={{flex: 1}}>
{rows}
</ScrollView>
</View>
);
},
});
module.exports = RefreshControlExample;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment