diff --git a/App.js b/App.js index 224d7db..daa1170 100644 --- a/App.js +++ b/App.js @@ -1,16 +1,43 @@ import React, { Component } from 'react'; -import { AppRegistry, Text, View } from 'react-native'; +import { AppRegistry, SectionList, StyleSheet,Text, View } from 'react-native'; export default class App extends Component { render() { return ( - - Open up App.js to start working on your app! - Changes you make will automatically reload. - Shake your phone to open the developer menu. + + {item}} + renderSectionHeader={({section}) => {section.title}} + keyExtractor={(item, index) => index} + /> ); } } +const styles = StyleSheet.create({ + container: { + flex: 1, + paddingTop: 22 + }, + sectionHeader: { + paddingTop: 2, + paddingLeft: 10, + paddingRight: 10, + paddingBottom: 2, + fontSize: 14, + fontWeight: 'bold', + backgroundColor: 'rgba(247,247,247,1.0)', + }, + item: { + padding: 10, + fontSize: 18, + height: 44, + }, +}) + AppRegistry.registerComponent('react-native-tutorial', () => App);