-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix docs build * add img tuto + css * start test dapp browser * start add iframe * start ui qrcode * qr code and send to contact * onpress hashtag * login module and refacto * add login modal if not connected * fix lint and prettier
- Loading branch information
Showing
138 changed files
with
1,613 additions
and
1,186 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
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,35 +1,29 @@ | ||
import { StripeProvider } from '@stripe/stripe-react-native'; | ||
import { PropsWithChildren, useEffect, useState } from 'react'; | ||
import * as Linking from 'expo-linking'; | ||
import {StripeProvider} from '@stripe/stripe-react-native'; | ||
import Constants from 'expo-constants'; | ||
const EXPO_PUBLIC_MERCHANT_ID_APPLE = process.env.EXPO_PUBLIC_MERCHANT_ID_APPLE | ||
export const StripeProviderContext: React.FC<PropsWithChildren> = ({ children }) => { | ||
const [publishableKey, setPublishableKey] = useState(''); | ||
|
||
const fetchPublishableKey = async () => { | ||
// const key = await fetchKey(); // fetch key from your server here | ||
// setPublishableKey(key); | ||
}; | ||
|
||
useEffect(() => { | ||
fetchPublishableKey(); | ||
}, []); | ||
import * as Linking from 'expo-linking'; | ||
import {PropsWithChildren, useEffect, useState} from 'react'; | ||
const EXPO_PUBLIC_MERCHANT_ID_APPLE = process.env.EXPO_PUBLIC_MERCHANT_ID_APPLE; | ||
export const StripeProviderContext: React.FC<PropsWithChildren> = ({children}) => { | ||
const [publishableKey, setPublishableKey] = useState(''); | ||
|
||
const urlScheme = | ||
Constants.appOwnership === 'expo' | ||
? Linking.createURL('/--/') | ||
: Linking.createURL('') | ||
return ( | ||
<StripeProvider | ||
publishableKey={publishableKey} | ||
merchantIdentifier={EXPO_PUBLIC_MERCHANT_ID_APPLE ?? "merchant.identifier"} // required for Apple Pay | ||
urlScheme={urlScheme ?? "your-url-scheme"}// required for 3D Secure and bank redirects | ||
> | ||
const fetchPublishableKey = async () => { | ||
// const key = await fetchKey(); // fetch key from your server here | ||
// setPublishableKey(key); | ||
}; | ||
|
||
<> | ||
{children} | ||
</> | ||
useEffect(() => { | ||
fetchPublishableKey(); | ||
}, []); | ||
|
||
</StripeProvider> | ||
); | ||
} | ||
const urlScheme = | ||
Constants.appOwnership === 'expo' ? Linking.createURL('/--/') : Linking.createURL(''); | ||
return ( | ||
<StripeProvider | ||
publishableKey={publishableKey} | ||
merchantIdentifier={EXPO_PUBLIC_MERCHANT_ID_APPLE ?? 'merchant.identifier'} // required for Apple Pay | ||
urlScheme={urlScheme ?? 'your-url-scheme'} // required for 3D Secure and bank redirects | ||
> | ||
<>{children}</> | ||
</StripeProvider> | ||
); | ||
}; |
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
6 changes: 3 additions & 3 deletions
6
apps/mobile/src/components/LaunchPad/TokenHolderDetail/index.tsx
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
Oops, something went wrong.