Skip to content

Commit bfad3fb

Browse files
committedJun 7, 2024
add expo-asset folder
1 parent c336c8a commit bfad3fb

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed
 

‎hackathon/spacecraft/app.config.js ‎hackathon/spacecraft/app.config.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
module.exports = {
1+
import type { ConfigContext, ExpoConfig } from "expo/config";
2+
3+
import { version } from "./package.json";
4+
5+
export default ({ config }: ConfigContext): ExpoConfig => ({
6+
...config,
27
name: "spacecraft",
38
description: "Learning materials for the `react-native-bootcamp` repository.",
49
slug: "spacecraft",
510
owner: "weshipit",
6-
version: "1.0.2",
11+
version,
712
orientation: "portrait",
813
icon: "./assets/icon.png",
914
splash: {
@@ -60,5 +65,11 @@ module.exports = {
6065
],
6166
},
6267
],
68+
[
69+
"expo-asset", // Error Error: [android.dangerous]: withAndroidDangerousBaseMod: Could not find MIME for Buffer <null>
70+
{
71+
assets: ["./assets/starships/"],
72+
},
73+
],
6374
],
64-
};
75+
});

‎hackathon/spacecraft/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"license": "MIT",
33
"main": "node_modules/expo/AppEntry.js",
4+
"version": "1.0.2",
45
"scripts": {
56
"start": "expo start",
67
"android": "expo start --android",
@@ -41,7 +42,9 @@
4142
"deepmerge": "^4.3.1",
4243
"expo": "^51.0.0",
4344
"expo-application": "~5.9.1",
45+
"expo-asset": "^10.0.7",
4446
"expo-constants": "~16.0.1",
47+
"expo-dev-client": "^4.0.15",
4548
"expo-image": "~1.12.9",
4649
"expo-linking": "~6.3.1",
4750
"expo-status-bar": "~1.12.1",
@@ -104,4 +107,4 @@
104107
"prettier": "^3.2.5",
105108
"typescript": "~5.3.3"
106109
}
107-
}
110+
}

0 commit comments

Comments
 (0)
Failed to load comments.