Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheever committed May 13, 2020
1 parent d42ee74 commit 6c6addb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
18 changes: 9 additions & 9 deletions example/App.tsx
@@ -1,15 +1,15 @@
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { AppLoading } from 'expo';
import { useFonts, Limelight_400Regular } from '@expo-google-fonts/limelight';
import { useFonts, BalsamiqSans_400Regular } from '@expo-google-fonts/balsamiq-sans';
import {
SourceSansPro_400Regular_Italic,
SourceSansPro_700Bold,
} from '@expo-google-fonts/source-sans-pro';

export default function App() {
let [fontsLoaded] = useFonts({
Limelight_400Regular,
BalsamiqSans_400Regular,
SourceSansPro_400Regular_Italic,
SourceSansPro_700Bold,
});
Expand All @@ -19,14 +19,14 @@ export default function App() {
} else {
return (
<View style={styles.container}>
<Text style={[styles.text, { fontFamily: 'Limelight_400Regular' }]}>
Limelight_400Regular
</Text>
<Text style={[styles.text, { fontFamily: 'SourceSansPro_400Regular_Italic' }]}>
SourceSansPro_400Regular_Italic
Source Sans Pro Italic
</Text>
<Text style={[styles.text, { fontFamily: 'SourceSansPro_700Bold' }]}>
SourceSansPro_700Bold
Source Sans Pro Bold
</Text>
<Text style={[styles.text, { fontFamily: 'BalsamiqSans_400Regular' }]}>
Balsamiq Sans Regular
</Text>
<Text style={[styles.text]}>Platform Default</Text>
</View>
Expand All @@ -37,13 +37,13 @@ export default function App() {
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ffddaa',
backgroundColor: 'white',
alignItems: 'center',
justifyContent: 'center',
},
text: {
fontSize: 24,
color: '#222222',
color: 'black',
paddingVertical: 10,
},
});
1 change: 1 addition & 0 deletions example/package.json
Expand Up @@ -8,6 +8,7 @@
"eject": "expo eject"
},
"dependencies": {
"@expo-google-fonts/balsamiq-sans": "../font-packages/balsamiq-sans",
"@expo-google-fonts/inter": "../font-packages/inter",
"@expo-google-fonts/limelight": "../font-packages/limelight",
"@expo-google-fonts/source-sans-pro": "../font-packages/source-sans-pro",
Expand Down
3 changes: 3 additions & 0 deletions example/yarn.lock
Expand Up @@ -924,6 +924,9 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@expo-google-fonts/balsamiq-sans@../font-packages/balsamiq-sans":
version "0.1.0"

"@expo-google-fonts/inter@../font-packages/inter":
version "0.1.0"

Expand Down

0 comments on commit 6c6addb

Please sign in to comment.