Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature(wallet-mobile): Redirect universal & deeplinks #3155

Merged
merged 5 commits into from
Mar 22, 2024

Conversation

stackchain
Copy link
Member

No description provided.


import {AppRegistry} from 'react-native'

import {name} from './app.json'
import {YoroiApp} from './src/YoroiApp'

enableMapSet()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it makes immer works with sets and maps


const {setInitialUrl, initialUrl} = useInitialLink()
// exchange
const exchangeManager = React.useMemo(() => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the modal was consuming from a context that doesn't exist

// exchange
const exchangeManager = React.useMemo(() => {
const api = exchangeApiMaker({
isProduction: action?.info?.params?.isSandbox !== true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

partners should pass isSandbox to avoid misleading actions

@@ -0,0 +1,6 @@
import {freeze} from 'immer'

export const knownApps: Readonly<Map<string, {name: string; vkey: string}>> = freeze(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explanation in confluence, for trusted communication between client and app.

)

const value = React.useMemo(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theme is everywhere and it rarely changes, memoized

@stackchain stackchain added this to the 4.26.0 milestone Mar 22, 2024
@stackchain stackchain force-pushed the feature/redirect-universal-deeplink branch from fe33067 to e300892 Compare March 22, 2024 00:29
@stackchain stackchain marked this pull request as ready for review March 22, 2024 00:39
@stackchain stackchain merged commit 9b40c1a into develop Mar 22, 2024
2 checks passed
@stackchain stackchain deleted the feature/redirect-universal-deeplink branch March 22, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants