Skip to content

Instantly share code, notes, and snippets.

@edutrul
Created April 22, 2017 17:15
Show Gist options
  • Select an option

  • Save edutrul/22d42431e5d4cf5aca601375d22f0bc7 to your computer and use it in GitHub Desktop.

Select an option

Save edutrul/22d42431e5d4cf5aca601375d22f0bc7 to your computer and use it in GitHub Desktop.
ScrollDown_with_awesome_loop.js
import React, { Component } from 'react';
import { AppRegistry, ScrollView, Image, Text } from 'react-native'
class IScrolledDownAndWhatHappenedNextShockedMe extends Component {
render() {
return (
<ScrollView>
{Array.apply(0 , Array(50)).map(function (x, i) {
return <Text style={{fontSize:1+i, color: 'red'}}>Te amo Alexandra ♡ {i} - {x}</Text>;
})}
</ScrollView>
);
}
}
AppRegistry.registerComponent(
'IScrolledDownAndWhatHappenedNextShockedMe',
() => IScrolledDownAndWhatHappenedNextShockedMe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment