-
-
Save amandeepmittal/3285b1ec02c77f16618aa670980e09d3 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 { | |
StyleSheet, | |
Text, | |
View, | |
TouchableOpacity, | |
TextInput, | |
ScrollView | |
} from 'react-native'; | |
// ... | |
import TodoList from './TodoList'; | |
// ... | |
return ( | |
<View style={styles.container}> | |
{/* ... */} | |
<ScrollView style={{ width: '100%' }}> | |
{todos.map(item => ( | |
<TodoList text={item.text} key={item.key} /> | |
))} | |
</ScrollView> | |
</View> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment