-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from AreaLayer/account-setup
[DEV] BTC Wallet Setup
- Loading branch information
Showing
17 changed files
with
8,983 additions
and
5,194 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,26 @@ | ||
if (typeof __dirname === 'undefined') global.__dirname = '/' | ||
if (typeof __filename === 'undefined') global.__filename = '' | ||
if (typeof process === 'undefined') { | ||
global.process = require('process') | ||
} else { | ||
const bProcess = require('process') | ||
for (var p in bProcess) { | ||
if (!(p in process)) { | ||
process[p] = bProcess[p] | ||
} | ||
} | ||
} | ||
|
||
process.browser = false | ||
if (typeof Buffer === 'undefined') global.Buffer = require('buffer').Buffer | ||
|
||
// global.location = global.location || { port: 80 } | ||
const isDev = typeof __DEV__ === 'boolean' && __DEV__ | ||
process.env['NODE_ENV'] = isDev ? 'development' : 'production' | ||
if (typeof localStorage !== 'undefined') { | ||
localStorage.debug = isDev ? '*' : '' | ||
} | ||
|
||
// If using the crypto shim, uncomment the following line to ensure | ||
// crypto is loaded first, so it can populate global.crypto | ||
require('crypto') |
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,35 @@ | ||
import * as React from 'react'; | ||
import { | ||
VStack, | ||
ToastTitle, | ||
ToastDescription, | ||
Toast, | ||
} from '@gluestack-ui/themed'; | ||
|
||
const DEFAULT_TITLE = 'Error!'; | ||
const DEFAULT_DESCRIPTION = | ||
'There was an error processing your request. Please try again later.'; | ||
const DEFAULT_ACTION = 'info'; | ||
|
||
interface Props { | ||
id: number; | ||
title?: string; | ||
description?: string; | ||
action?: 'info' | 'error' | 'warning' | 'success' | 'attention' | undefined; | ||
} | ||
function ShowToast({ | ||
id, | ||
title = DEFAULT_TITLE, | ||
description = DEFAULT_DESCRIPTION, | ||
action = DEFAULT_ACTION, | ||
}: Props) { | ||
return ( | ||
<Toast nativeID={`toast-${id}`} action={action} variant="solid"> | ||
<VStack space="xs"> | ||
<ToastTitle>{title}</ToastTitle> | ||
<ToastDescription>{description}</ToastDescription> | ||
</VStack> | ||
</Toast> | ||
); | ||
} | ||
export default ShowToast; |
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
export const SCREEN_NAMES = { | ||
interface IScreenNames { | ||
OnboardingHome: 'OnboardingHome'; | ||
CreateWallet: 'CreateWallet'; | ||
ConfirmSeed: 'ConfirmSeed'; | ||
PinSetup: 'PinSetup'; | ||
ConfirmPin: 'ConfirmPin'; | ||
Dashboard: 'Dashboard'; | ||
} | ||
export const SCREEN_NAMES: IScreenNames = { | ||
OnboardingHome: 'OnboardingHome', | ||
CreateWallet: 'CreateWallet', | ||
ConfirmSeed: 'ConfirmSeed', | ||
PinSetup: 'PinSetup', | ||
ConfirmPin: 'ConfirmPin', | ||
Dashboard: 'Dashboard', | ||
}; |
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,30 @@ | ||
import * as React from 'react'; | ||
import {Box, Image, Center, Heading} from '@gluestack-ui/themed'; | ||
import {NavigationProp} from '@react-navigation/native'; | ||
|
||
const LogoImage = require('../../assets/images/logo.png'); | ||
|
||
const HEADING_TEXT_1 = 'Firebolt Wallet'; | ||
const HEADING_TEXT_2 = 'Dashboard'; | ||
|
||
interface Props { | ||
navigation: NavigationProp<any, any>; | ||
} | ||
|
||
function Dashboard({}: Props) { | ||
return ( | ||
<Box bg="$primary400" pb="30%" flex={1} justifyContent={'center'}> | ||
<Center> | ||
<Image alt="Firebolt Logo" source={LogoImage} size="xl" /> | ||
<Heading mt={'$4'} size="2xl" color="white" textAlign={'center'}> | ||
{HEADING_TEXT_1} | ||
</Heading> | ||
<Heading mt={'$4'} size="md" color="white" textAlign={'center'}> | ||
{HEADING_TEXT_2} | ||
</Heading> | ||
</Center> | ||
</Box> | ||
); | ||
} | ||
|
||
export default Dashboard; |
Oops, something went wrong.