Created
July 24, 2018 19:44
-
-
Save syamjayaraj/44d35bebdacf3f0812f9c27d1fb62255 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, { Component } from 'react'; | |
import { Text, View, StyleSheet, TouchableOpacity, FlatList } from 'react-native'; | |
| |
export default class FAB extends Component { | |
constructor(props) { | |
super(props); | |
this.state = {}; | |
} | |
| |
render() { | |
return ( | |
<View style={styles.container}> | |
<View style={styles.heading}> | |
<Text style={styles.headingTest}>FAB with FlatList</Text> | |
</View> | |
| |
</View> | |
) | |
} | |
} | |
| |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
}, | |
heading: { | |
height: 60, | |
backgroundColor: '#03A9F4', | |
alignItems: 'center', | |
justifyContent: 'center', | |
}, | |
headingTest: { | |
fontSize: 20, | |
color: 'white', | |
fontWeight: 'bold', | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment