-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: onboarding * fix: allow deleting storage item * fix: upgrade packages * fix: remove button * fix: use securestorage * fix: onboarding redirect * fix: onboarding redirects * fix: button styles, copy * fix: secondary button text color --------- Co-authored-by: Roland Bewick <[email protected]>
- Loading branch information
Showing
11 changed files
with
155 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Onboarding } from "../pages/Onboarding"; | ||
|
||
export default function Page() { | ||
return <Onboarding />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { openURL } from "expo-linking"; | ||
import { Link, Stack, router } from "expo-router"; | ||
import React from "react"; | ||
import { View } from "react-native"; | ||
import { Button } from "~/components/ui/button"; | ||
import { Text } from "~/components/ui/text"; | ||
import { secureStorage } from "~/lib/secureStorage"; | ||
|
||
export function Onboarding() { | ||
async function finish() { | ||
secureStorage.setItem("hasOnboarded", "true"); | ||
router.replace("/"); | ||
} | ||
|
||
return ( | ||
<View className="flex-1 flex flex-col p-6 gap-3"> | ||
<Stack.Screen | ||
options={{ | ||
title: "Onboarding", | ||
headerShown: false, | ||
}} | ||
/> | ||
<View className="flex-1 flex items-center justify-center gap-4"> | ||
<Text className="font-semibold2 text-4xl text-center text-foreground">Hello there 👋</Text> | ||
<Text className="font-medium2 text-xl text-primary-foreground text-center"> | ||
<Text className="font-semibold2 text-xl text-primary-foreground">Alby Go</Text> is a simple mobile wallet interface for your Alby Hub or other lightning nodes and wallets. | ||
</Text> | ||
</View> | ||
<Link href="/" asChild> | ||
<Button size="lg" onPress={finish}> | ||
<Text>Connect Wallet</Text> | ||
</Button> | ||
</Link> | ||
<Button variant="secondary" size="lg" onPress={() => openURL("https://albyhub.com/")}> | ||
<Text>Learn more</Text> | ||
</Button> | ||
</View> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.