mirror of
https://github.com/zhigang1992/examples.git
synced 2026-06-16 18:39:39 +08:00
26 lines
676 B
JavaScript
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',
|
|
},
|
|
});
|