Created
April 22, 2017 17:15
-
-
Save edutrul/22d42431e5d4cf5aca601375d22f0bc7 to your computer and use it in GitHub Desktop.
ScrollDown_with_awesome_loop.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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