Skip to content

Instantly share code, notes, and snippets.

@abinashpanda
Last active December 29, 2017 04:38
Show Gist options
  • Save abinashpanda/755d20f27756e6944577efdc5a931b7e to your computer and use it in GitHub Desktop.
Save abinashpanda/755d20f27756e6944577efdc5a931b7e to your computer and use it in GitHub Desktop.
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
const FAB_SIZE = 56;
const ICON_SIZE = 24;
const Fab = () => (
<View style={styles.container}>
<MaterialIcons name="share" size={ICON_SIZE} color="#fff" />
</View>
);
const styles = StyleSheet.create({
container: {
width: FAB_SIZE,
height: FAB_SIZE,
borderRadius: FAB_SIZE / 2,
backgroundColor: '#2196F3',
elevation: 6,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment