This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 115
WIP: LIVE-1792 - Onboarding #2510
Draft
alexandremgo
wants to merge
9
commits into
develop
Choose a base branch
from
feat/LIVE-1792
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b27c2d1
chore: access onboarding state extract feature from llc
alexandremgo f672b35
feat: sync onboarding logic and screen
alexandremgo 20c63e1
feat: WIP select a nano for sync onboarding
alexandremgo 15af348
fix(SyncOnboarding): retry strategy on errors while polling
alexandremgo ee56996
feat(SyncOnboarding): Typed navigator for SyncOnboarding
alexandremgo 917e6dd
feat(deeplink): enable deep linking to onboarding steps
alexandremgo cddfb33
feat(SyncOnboarding): handle disconnected device
alexandremgo 19fc643
fix(SyncOnboarding): trigger phone pairing before moving to onboarding
alexandremgo 81e9c48
fix(SyncOnboarding): use theme colors
alexandremgo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 React from "react"; | ||
import { createStackNavigator } from "@react-navigation/stack"; | ||
import { Device } from "@ledgerhq/live-common/lib/hw/actions/types"; | ||
import { ScreenName } from "../../const"; | ||
import { SyncOnboarding } from "../../screens/SyncOnboarding"; | ||
|
||
// TODO - https://reactnavigation.org/docs/typescript/ | ||
// With route type, do we still need https://github.com/LedgerHQ/ledger-live-mobile/blob/develop/src/const/navigation.js | ||
// ? Need to cast each name to be able to use the const and the navigator typing | ||
export type SyncOnboardingStackParamList = { | ||
SyncOnboardingWelcome: { pairedDevice: Device | null }; | ||
}; | ||
|
||
const Stack = createStackNavigator<SyncOnboardingStackParamList>(); | ||
|
||
export const SyncOnboardingNavigator = () => ( | ||
<Stack.Navigator | ||
screenOptions={{ | ||
headerShown: false, | ||
headerTitle: "", | ||
headerShadowVisible: false, | ||
}} | ||
> | ||
<Stack.Screen | ||
name={ScreenName.SyncOnboardingWelcome as "SyncOnboardingWelcome"} | ||
component={SyncOnboarding} | ||
initialParams={{ pairedDevice: null }} | ||
/> | ||
</Stack.Navigator> | ||
); |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call this Nano FTS for consistency, even if it means nothing?