Skip to content

Instantly share code, notes, and snippets.

@syamjayaraj
Created July 24, 2018 19:44
Show Gist options
  • Save syamjayaraj/44d35bebdacf3f0812f9c27d1fb62255 to your computer and use it in GitHub Desktop.
Save syamjayaraj/44d35bebdacf3f0812f9c27d1fb62255 to your computer and use it in GitHub Desktop.
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