Skip to content

Commit 58c9ee8

Browse files
committed
Use SvgXml for onboarding images
1 parent 939602f commit 58c9ee8

File tree

13 files changed

+78
-238
lines changed

13 files changed

+78
-238
lines changed

packages/mobile-app/app.json

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"resizeMode": "contain",
1313
"backgroundColor": "#ffffff"
1414
},
15-
"assetBundlePatterns": [
16-
"**/*"
17-
],
15+
"assetBundlePatterns": ["**/*"],
1816
"ios": {
1917
"bundleIdentifier": "com.ironfish.mobileapp",
2018
"infoPlist": {
@@ -45,23 +43,6 @@
4543
},
4644
"package": "com.ironfish.mobileapp"
4745
},
48-
"plugins": [
49-
"expo-router",
50-
"expo-secure-store",
51-
[
52-
"expo-build-properties",
53-
{
54-
"android": {
55-
"newArchEnabled": true
56-
},
57-
"ios": {
58-
"newArchEnabled": true
59-
}
60-
}
61-
],
62-
"./plugins/withPointerEvents.js",
63-
"expo-font",
64-
"expo-sqlite"
65-
]
46+
"plugins": ["expo-router", "expo-secure-store", "expo-font", "expo-sqlite"]
6647
}
6748
}

packages/mobile-app/app/onboarding/create.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { StyleSheet, View, Text } from "react-native";
22
import { LinkButton } from "@/components/LinkButton";
3-
import SecureOctopus from "@/assets/images/secure-octopus.svg";
43
import { useLocalSearchParams } from "expo-router";
5-
4+
import { SecureOctopus } from "@/svgs/SecureOctopus";
65
const styles = StyleSheet.create({
76
container: {
87
alignItems: "center",

packages/mobile-app/app/onboarding/index.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { SafeAreaView } from "react-native-safe-area-context";
33
import { LinkButton } from "../../components/LinkButton";
44
import { LinearGradient } from "expo-linear-gradient";
55

6-
import LogoWithText from "../../assets/images/logo-with-text.svg";
7-
import KeyPlantOrchid from "../../assets/images/key-plant--orchid.svg";
6+
import { KeyPlantOrchid } from "@/svgs/KeyPlantOrchid";
7+
import { LogoWithText } from "@/svgs/LogoWithText";
88

99
const styles = StyleSheet.create({
1010
background: {
@@ -38,16 +38,17 @@ export default function Onboarding() {
3838
style={[StyleSheet.absoluteFillObject, styles.background]}
3939
/>
4040
<View style={styles.verticalStack}>
41-
<LogoWithText height={18} />
41+
<LogoWithText />
4242
<Text style={styles.titleText}>Let's Make Web3 Private</Text>
4343
</View>
4444
<View
4545
style={{
4646
flex: 1,
4747
alignItems: "center",
48+
justifyContent: "center",
4849
}}
4950
>
50-
<KeyPlantOrchid style={{ aspectRatio: 0.5 }} />
51+
<KeyPlantOrchid />
5152
</View>
5253
<View style={styles.buttonStack}>
5354
<LinkButton

packages/mobile-app/assets/icons/arrow-left-bottom.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/mobile-app/assets/icons/arrow-left.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/mobile-app/assets/images/logo-with-text.svg

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)