Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: implementing expo-font
  • Loading branch information
georgewrmarshall committed Nov 11, 2025
commit 44a9d7834342c80ff18e1de24c9ef72dcded7878
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ storybook-static
dist/
web-build/

# Native directories (generated by expo prebuild)
apps/*/ios/
apps/*/android/

# Native
*.orig.*
*.jks
Expand Down
43 changes: 0 additions & 43 deletions apps/storybook-react-native/.storybook/FontLoader.tsx

This file was deleted.

15 changes: 15 additions & 0 deletions apps/storybook-react-native/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,19 @@ export default ({ config }) => ({
web: {
favicon: './assets/favicon.png',
},
plugins: [
[
'expo-font',
{
fonts: [
'./assets/fonts/Geist/Geist-Regular.otf',
'./assets/fonts/Geist/Geist-Medium.otf',
'./assets/fonts/Geist/Geist-Bold.otf',
'./assets/fonts/MMSans/MMSans-Regular.otf',
'./assets/fonts/MMSans/MMSans-Medium.otf',
'./assets/fonts/MMSans/MMSans-Bold.otf',
],
},
],
],
});
Binary file not shown.
Binary file not shown.
3 changes: 1 addition & 2 deletions apps/storybook-react-native/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ defaultConfig.resolver = {
const withStorybook = require('@storybook/react-native/metro/withStorybook');

module.exports = withStorybook(defaultConfig, {
enabled: process.env.EXPO_PUBLIC_STORYBOOK_ENABLED === 'true',
enabled: true,
configPath: path.resolve(__dirname, './.rnstorybook'),
onDisabledRemoveStorybook: true,
});
2 changes: 2 additions & 0 deletions apps/storybook-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
"@react-native-community/slider": "4.5.5",
"expo": "~52.0.31",
"expo-constants": "~17.0.5",
"expo-font": "^14.0.9",
"expo-splash-screen": "^31.0.10",
"expo-status-bar": "~2.0.1",
"expo-system-ui": "~4.0.9",
"react-native": "^0.76.9",
Expand Down
159 changes: 158 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2792,6 +2792,28 @@ __metadata:
languageName: node
linkType: hard

"@expo/config-plugins@npm:~54.0.2":
version: 54.0.2
resolution: "@expo/config-plugins@npm:54.0.2"
dependencies:
"@expo/config-types": "npm:^54.0.8"
"@expo/json-file": "npm:~10.0.7"
"@expo/plist": "npm:^0.4.7"
"@expo/sdk-runtime-versions": "npm:^1.0.0"
chalk: "npm:^4.1.2"
debug: "npm:^4.3.5"
getenv: "npm:^2.0.0"
glob: "npm:^10.4.2"
resolve-from: "npm:^5.0.0"
semver: "npm:^7.5.4"
slash: "npm:^3.0.0"
slugify: "npm:^1.6.6"
xcode: "npm:^3.0.1"
xml2js: "npm:0.6.0"
checksum: 10/713db02c3e43d57101e0c9b6a28b55363039fa6888bf80968467b184b244600994082195a89ab75e313e57cb19b739e94c28de0df5170b7646f096435d5558ee
languageName: node
linkType: hard

"@expo/config-plugins@npm:~9.0.17":
version: 9.0.17
resolution: "@expo/config-plugins@npm:9.0.17"
Expand Down Expand Up @@ -2821,6 +2843,13 @@ __metadata:
languageName: node
linkType: hard

"@expo/config-types@npm:^54.0.8":
version: 54.0.8
resolution: "@expo/config-types@npm:54.0.8"
checksum: 10/cb975763218101e4c4204705e5e470602038cba64fc973b812a3ed8064b4c3526b3d40739483ab37f4f5ff4f56767860d34a5dbfc0db5a9399918c41608ecc78
languageName: node
linkType: hard

"@expo/config@npm:~10.0.11":
version: 10.0.11
resolution: "@expo/config@npm:10.0.11"
Expand All @@ -2842,6 +2871,27 @@ __metadata:
languageName: node
linkType: hard

"@expo/config@npm:~12.0.10":
version: 12.0.10
resolution: "@expo/config@npm:12.0.10"
dependencies:
"@babel/code-frame": "npm:~7.10.4"
"@expo/config-plugins": "npm:~54.0.2"
"@expo/config-types": "npm:^54.0.8"
"@expo/json-file": "npm:^10.0.7"
deepmerge: "npm:^4.3.1"
getenv: "npm:^2.0.0"
glob: "npm:^10.4.2"
require-from-string: "npm:^2.0.2"
resolve-from: "npm:^5.0.0"
resolve-workspace-root: "npm:^2.0.0"
semver: "npm:^7.6.0"
slugify: "npm:^1.3.4"
sucrase: "npm:3.35.0"
checksum: 10/148be14d85090f43599f5dbb0941d8f65adce8f7bd03d6d26ad28cbae31f7f1eb1c2e3419b0f6fbc92240ebaec1fbe8c752761cd52b28185a3ac8d74eea2e5e5
languageName: node
linkType: hard

"@expo/devcert@npm:^1.1.2":
version: 1.2.0
resolution: "@expo/devcert@npm:1.2.0"
Expand Down Expand Up @@ -2904,7 +2954,25 @@ __metadata:
languageName: node
linkType: hard

"@expo/json-file@npm:^10.0.7":
"@expo/image-utils@npm:^0.8.7":
version: 0.8.7
resolution: "@expo/image-utils@npm:0.8.7"
dependencies:
"@expo/spawn-async": "npm:^1.7.2"
chalk: "npm:^4.0.0"
getenv: "npm:^2.0.0"
jimp-compact: "npm:0.16.1"
parse-png: "npm:^2.1.0"
resolve-from: "npm:^5.0.0"
resolve-global: "npm:^1.0.0"
semver: "npm:^7.6.0"
temp-dir: "npm:~2.0.0"
unique-string: "npm:~2.0.0"
checksum: 10/cd21880fd27ac249d3a2271b6fc7beb70f3504adbd3663e885daff9baf817f5225cec8a4dda5b5f1790fea66f6d6103d2bd9c7451c6610bef1f9b42b745fbeec
languageName: node
linkType: hard

"@expo/json-file@npm:^10.0.7, @expo/json-file@npm:~10.0.7":
version: 10.0.7
resolution: "@expo/json-file@npm:10.0.7"
dependencies:
Expand Down Expand Up @@ -3005,6 +3073,37 @@ __metadata:
languageName: node
linkType: hard

"@expo/plist@npm:^0.4.7":
version: 0.4.7
resolution: "@expo/plist@npm:0.4.7"
dependencies:
"@xmldom/xmldom": "npm:^0.8.8"
base64-js: "npm:^1.2.3"
xmlbuilder: "npm:^15.1.1"
checksum: 10/770a316d2231fb9f53f2f65612c12a9178687a4e63e65d792a82788658fd0781e3c45d69e4750bce6ed2dd655c59e2c8583d05bc5cd32cb7260b57f41d8a77e3
languageName: node
linkType: hard

"@expo/prebuild-config@npm:^54.0.3":
version: 54.0.6
resolution: "@expo/prebuild-config@npm:54.0.6"
dependencies:
"@expo/config": "npm:~12.0.10"
"@expo/config-plugins": "npm:~54.0.2"
"@expo/config-types": "npm:^54.0.8"
"@expo/image-utils": "npm:^0.8.7"
"@expo/json-file": "npm:^10.0.7"
"@react-native/normalize-colors": "npm:0.81.5"
debug: "npm:^4.3.1"
resolve-from: "npm:^5.0.0"
semver: "npm:^7.6.0"
xml2js: "npm:0.6.0"
peerDependencies:
expo: "*"
checksum: 10/5184df1ffa7c4e9ffbb293c23559c4b5562c2ed3a3978b1b1d01993eeb4412ee004b715771b3f9cd47f088c054bdc7aa3186b589ec1f325cfeda4d8850b0d27e
languageName: node
linkType: hard

"@expo/prebuild-config@npm:~8.2.0":
version: 8.2.0
resolution: "@expo/prebuild-config@npm:8.2.0"
Expand Down Expand Up @@ -4029,6 +4128,8 @@ __metadata:
cross-env: "npm:^7.0.3"
expo: "npm:~52.0.31"
expo-constants: "npm:~17.0.5"
expo-font: "npm:^14.0.9"
expo-splash-screen: "npm:^31.0.10"
expo-status-bar: "npm:~2.0.1"
expo-system-ui: "npm:~4.0.9"
prettier: "npm:^3.3.3"
Expand Down Expand Up @@ -4704,6 +4805,13 @@ __metadata:
languageName: node
linkType: hard

"@react-native/normalize-colors@npm:0.81.5":
version: 0.81.5
resolution: "@react-native/normalize-colors@npm:0.81.5"
checksum: 10/9a703b228b0e694436385f4438a684599f3b4f1ea16e3eb06f02b3bc2f9e091e3a754b4d25f0ad43ed7169ef5658603b30d0d78ee6bef338939313f16d85f077
languageName: node
linkType: hard

"@react-native/normalize-colors@npm:^0.74.1":
version: 0.74.89
resolution: "@react-native/normalize-colors@npm:0.74.89"
Expand Down Expand Up @@ -10030,6 +10138,19 @@ __metadata:
languageName: node
linkType: hard

"expo-font@npm:^14.0.9":
version: 14.0.9
resolution: "expo-font@npm:14.0.9"
dependencies:
fontfaceobserver: "npm:^2.1.0"
peerDependencies:
expo: "*"
react: "*"
react-native: "*"
checksum: 10/29511a5ba7b8a2c37d7941d6d2908f9a07d7efbf227b507a85582fc9e24ac3eb9e119e0b8329e37835e8250ec10e65fe80076c4f81cac91904c718fd892386c5
languageName: node
linkType: hard

"expo-font@npm:~13.0.4":
version: 13.0.4
resolution: "expo-font@npm:13.0.4"
Expand Down Expand Up @@ -10079,6 +10200,17 @@ __metadata:
languageName: node
linkType: hard

"expo-splash-screen@npm:^31.0.10":
version: 31.0.10
resolution: "expo-splash-screen@npm:31.0.10"
dependencies:
"@expo/prebuild-config": "npm:^54.0.3"
peerDependencies:
expo: "*"
checksum: 10/19a36272a6a825848183de9d15648927518814184a758070a03c25f4cbe3a7e5c4e31f7026c6ff5677b98f6bee58f19c3b61319040a9fc1441a2ba6277ac6a14
languageName: node
linkType: hard

"expo-status-bar@npm:~2.0.1":
version: 2.0.1
resolution: "expo-status-bar@npm:2.0.1"
Expand Down Expand Up @@ -10817,6 +10949,13 @@ __metadata:
languageName: node
linkType: hard

"getenv@npm:^2.0.0":
version: 2.0.0
resolution: "getenv@npm:2.0.0"
checksum: 10/ba25153e26c0960199b5de1a0c7bdfc661226c00e27bb194f829ed129843510ce230f9daa3b4d06f10056298a9c4e9afbbd358fc7632a545f299e370772b047a
languageName: node
linkType: hard

"git-hooks-list@npm:^3.0.0":
version: 3.1.0
resolution: "git-hooks-list@npm:3.1.0"
Expand Down Expand Up @@ -10897,6 +11036,15 @@ __metadata:
languageName: node
linkType: hard

"global-dirs@npm:^0.1.1":
version: 0.1.1
resolution: "global-dirs@npm:0.1.1"
dependencies:
ini: "npm:^1.3.4"
checksum: 10/10624f5a8ddb8634c22804c6b24f93fb591c3639a6bc78e3584e01a238fc6f7b7965824184e57d63f6df36980b6c191484ad7bc6c35a1599b8f1d64be64c2a4a
languageName: node
linkType: hard

"global-modules@npm:^1.0.0":
version: 1.0.0
resolution: "global-modules@npm:1.0.0"
Expand Down Expand Up @@ -15899,6 +16047,15 @@ __metadata:
languageName: node
linkType: hard

"resolve-global@npm:^1.0.0":
version: 1.0.0
resolution: "resolve-global@npm:1.0.0"
dependencies:
global-dirs: "npm:^0.1.1"
checksum: 10/c4e11d33e84bde7516b824503ffbe4b6cce863d5ce485680fd3db997b7c64da1df98321b1fd0703b58be8bc9bc83bc96bd83043f96194386b45eb47229efb6b6
languageName: node
linkType: hard

"resolve-pkg-maps@npm:^1.0.0":
version: 1.0.0
resolution: "resolve-pkg-maps@npm:1.0.0"
Expand Down