diff --git a/with-custom-font/App.js b/with-custom-font/App.js index 20d9139..e02db51 100644 --- a/with-custom-font/App.js +++ b/with-custom-font/App.js @@ -1,11 +1,11 @@ import React from 'react'; import { useFonts } from '@use-expo/font'; -import { Text, View } from 'react-native'; +import { Text, View, StyleSheet } from 'react-native'; import { AppLoading } from 'expo'; let customFonts = { - 'OdibeeSans-Regular': require('./assets/fonts/OdibeeSans-Regular.ttf'), + 'Inter-Black': require('./assets/fonts/Inter-Black.otf'), 'Inter-SemiBoldItalic': 'https://rsms.me/inter/font-files/Inter-SemiBoldItalic.otf?v=3.12', }; @@ -15,10 +15,10 @@ export default (props) => { return ; } else { return ( - - Hello, standard font :) - Hello, custom font! - Hello, remote, semi-bold, italic font =P + + Platform Default + Inter Black + Inter SemiBoldItalic ); } diff --git a/with-custom-font/assets/fonts/Inter-Black.otf b/with-custom-font/assets/fonts/Inter-Black.otf new file mode 100644 index 0000000..b3675d6 Binary files /dev/null and b/with-custom-font/assets/fonts/Inter-Black.otf differ diff --git a/with-custom-font/assets/fonts/OdibeeSans-Regular.ttf b/with-custom-font/assets/fonts/OdibeeSans-Regular.ttf deleted file mode 100644 index 2ca43a1..0000000 Binary files a/with-custom-font/assets/fonts/OdibeeSans-Regular.ttf and /dev/null differ