App.tsx
import { useFonts } from 'expo-font';
import fonts from './src/atoms/fonts';
const App = () => {
const [loaded] = useFonts(fonts);
return !loaded ? null : (
<SafeAreaProvider>
<AuthContextProvider>
<Navigator />
</AuthContextProvider>
</SafeAreaProvider>
);
}
export default App;
export default {
SCDream1: require('./assets/fonts/SCDream1.otf'),
SCDream2: require('./assets/fonts/SCDream2.otf'),
SCDream3: require('./assets/fonts/SCDream3.otf'),
SCDream4: require('./assets/fonts/SCDream4.otf'),
SCDream5: require('./assets/fonts/SCDream5.otf'),
SCDream6: require('./assets/fonts/SCDream6.otf'),
SCDream7: require('./assets/fonts/SCDream7.otf'),
SCDream8: require('./assets/fonts/SCDream8.otf'),
SCDream9: require('./assets/fonts/SCDream9.otf'),
}
적용
fontFamily:"SCDream8"