-
-
Save karanjagota/2d53cf53635617e60984df9c1a743cac to your computer and use it in GitHub Desktop.
This file contains 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 from 'react'; | |
import { StyleSheet, Text, View,ScrollView } from 'react-native'; | |
export default function App() { | |
const arr = [1,2,3,4,5,6,7,8,9,10,11,12]; | |
return ( | |
<ScrollView> | |
{ | |
arr.map((num)=> | |
<View> | |
<Text style={styles.textstyle}>Scrollable Content Text {num}</Text> | |
</View> | |
)} | |
</ScrollView> | |
); | |
} | |
const styles = StyleSheet.create({ | |
textstyle: { | |
fontSize:18, | |
backgroundColor: '#00B0FF', | |
marginBottom: 5, | |
color:'#000000', | |
padding:20, | |
textAlign: 'center', | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment