mirror of
https://github.com/zhigang1992/examples.git
synced 2026-01-12 17:13:21 +08:00
Remove unused
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -25,4 +25,6 @@ with-nextjs/out
|
|||||||
*/ios/Pods
|
*/ios/Pods
|
||||||
|
|
||||||
# Websockets
|
# Websockets
|
||||||
*/backend/.env
|
*/backend/.env
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
import React, { useState, useEffect } from "react";
|
|
||||||
|
|
||||||
import { Text, View, StyleSheet } from "react-native";
|
|
||||||
import { AppLoading } from "expo";
|
import { AppLoading } from "expo";
|
||||||
import * as Font from "expo-font";
|
import * as Font from "expo-font";
|
||||||
|
import React, { useState } from "react";
|
||||||
|
import { Text, View } from "react-native";
|
||||||
|
|
||||||
export default () => {
|
export default function App() {
|
||||||
let [fontsLoaded] = useFonts({
|
let [fontsLoaded] = useFonts({
|
||||||
"Inter-Black": require("./assets/fonts/Inter-Black.otf"),
|
"Inter-Black": require("./assets/fonts/Inter-Black.otf"),
|
||||||
"Inter-SemiBoldItalic":
|
"Inter-SemiBoldItalic":
|
||||||
@@ -23,7 +22,7 @@ export default () => {
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
function useFonts(fontMap) {
|
function useFonts(fontMap) {
|
||||||
let [fontsLoaded, setFontsLoaded] = useState(false);
|
let [fontsLoaded, setFontsLoaded] = useState(false);
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.0 KiB |
Reference in New Issue
Block a user