Skip to content

Instantly share code, notes, and snippets.

@syamjayaraj syamjayaraj/App.js
Created Jul 24, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.