Skip to content

Commit 8b1b8b3

Browse files
committed
Save
1 parent 91dc43c commit 8b1b8b3

File tree

7 files changed

+26
-4
lines changed

7 files changed

+26
-4
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mobile-app/app.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@
5353
}
5454
}
5555
],
56-
"./plugins/withPointerEvents.js"
56+
"./plugins/withPointerEvents.js",
57+
[
58+
"expo-font",
59+
{
60+
"fonts": [
61+
"./assets/fonts/ABCFavorit-Regular.otf",
62+
"./assets/fonts/ABCFavoritExtended-Bold.otf",
63+
"./assets/fonts/ABCFavoritExtended-Regular.otf"
64+
]
65+
}
66+
]
5767
]
5868
}
5969
}

packages/mobile-app/app/(tabs)/ui.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
import { useColorScheme, View, Text } from "react-native";
1+
import * as Font from "expo-font";
2+
import { useColorScheme, View, Text, StyleSheet } from "react-native";
23
import { Button, Box, HStack, VStack } from "@ironfish/tackle-box";
34
import { useState } from "react";
45

6+
const styles = StyleSheet.create({
7+
base: {
8+
fontFamily: "Favorit",
9+
},
10+
});
11+
512
export default function UiKit() {
613
const scheme = useColorScheme();
714
const [count, setCount] = useState(0);
815

16+
const blah = Font.isLoaded("ABCFavorit-Regular");
17+
console.log({ blah });
18+
919
return (
1020
<View
1121
style={{
@@ -14,7 +24,7 @@ export default function UiKit() {
1424
backgroundColor: scheme === "dark" ? "#333" : "#fff",
1525
}}
1626
>
17-
<Text>Count: {count}</Text>
27+
<Text style={styles.base}>Count: {count}</Text>
1828
<Button title="Press me" onClick={() => setCount(count + 1)} />
1929
<Box height="auto" bg="pink" borderWidth={2} borderColor="gray">
2030
<Button title="Press me" onClick={() => setCount(count + 1)} />
Binary file not shown.
Binary file not shown.
Binary file not shown.

packages/mobile-app/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"react-native-svg": "15.2.0",
3636
"zod": "^3.22.4",
3737
"react-native-reanimated": "~3.15.0",
38-
"react-native-gesture-handler": "~2.18.1"
38+
"react-native-gesture-handler": "~2.18.1",
39+
"expo-font": "~12.0.10"
3940
},
4041
"devDependencies": {
4142
"@babel/core": "^7.20.0",

0 commit comments

Comments
 (0)