├── .expo-shared └── assets.json ├── .gitignore ├── App.js ├── README.md ├── app.json ├── assets ├── icomoon.ttf ├── icon.png └── splash.png ├── babel.config.js ├── button.js ├── icon.js ├── package.json ├── yarn-error.log └── yarn.lock /.expo-shared/assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "f9155ac790fd02fadcdeca367b02581c04a353aa6d5aa84409a59f6804c87acd": true, 3 | "89ed26367cdb9b771858e026f2eb95bfdb90e5ae943e716575327ec325f39c44": true 4 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/**/* 2 | .expo/* 3 | npm-debug.* 4 | *.jks 5 | *.p8 6 | *.p12 7 | *.key 8 | *.mobileprovision 9 | *.orig.* 10 | web-build/ 11 | web-report/ 12 | 13 | # macOS 14 | .DS_Store 15 | -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from "react"; 2 | import { StyleSheet, View } from "react-native"; 3 | import * as Font from "expo-font"; 4 | import Button from "./button"; 5 | 6 | export default function App() { 7 | const [fontsLoaded, setFontsLoaded] = useState(false); 8 | 9 | const loadFonts = async () => { 10 | await Font.loadAsync({ 11 | icon: require("./assets/icomoon.ttf"), 12 | }); 13 | setFontsLoaded(true); 14 | }; 15 | 16 | useEffect(() => { 17 | loadFonts(); 18 | }, []); 19 | 20 | return {fontsLoaded &&