Files
examples/with-icons/App.js
Evan Bacon 3d2432e460 Created icons example
fix #72
2020-02-04 16:23:43 -08:00

26 lines
676 B
JavaScript

import { FontAwesome, MaterialIcons } from '@expo/vector-icons';
import React from 'react';
import { StyleSheet, View } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<FontAwesome name="apple" size={25} />
<MaterialIcons name="star" color="blue" size={25} />
{/* Create a button */}
<FontAwesome.Button name="facebook" backgroundColor="#3b5998" onPress={() => {}}>
Login with Facebook
</FontAwesome.Button>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});