Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: GitHub Action <[email protected]>
151 KiB
@thirdweb-dev/react-native
0.6.3
Patch Changes
-
#2197
212b2e7bThanks @MananTank! - - The "Request Testnet funds" button is now hidden by default inConnectWalletDetails Modal- You can add it back by setting
hideTestnetFaucettofalsein theConnectWalletcomponent.
- You can add it back by setting
-
Updated dependencies [
3f2ee85a,ba978f55]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.6.2
Patch Changes
-
#2185
324330d3Thanks @iketw! - Exports standalone ConnectEmbed UIDevs can now show the Connect modal UI directly into their apps. This component will render the wallets defined in our ThirdwebProvider.
<ConnectEmbed modalTitleIconUrl="<my-icon-url>" modalTitle="Sign In" theme={"light"} onConnect={() => { console.log("wallet connected"); }} container={{ paddingVertical: "md", marginHorizontal: "md", borderRadius: "md", }} /> -
Updated dependencies [
9a23de2b,e21f7bb1]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.6.1
Patch Changes
-
#2165
7a74bd9cThanks @iketw! - Upgrade min RN version requirenment to 0.71 and mmkv to 2.11.0 -
Updated dependencies []:
- @thirdweb-dev/[email protected]
0.6.0
Minor Changes
-
#2150
6dac95bdThanks @MananTank! - ### API changed for creating wallet configurator( This is only relevant if you are creating your own wallet configurator - If you are using the wallet configurators provided by thirdweb such as
metamaskWallet(),coinbaseWallet()etc - This API change does not affect you )We have introduce a few changes to how the wallet configurator should be created:
Do not use any wallet connection hooks in the wallet configurator. Only use the
propspassed in theconnectUIandselectUI. The wallet configurator'sconnectUIandselectUInow gets below mentioned additional props so that you can avoid using the wallet connection hooksprops.connect- replaces theuseConnecthook usageprops.connectionStatus- replaces theuseConnectionStatushook usageprops.setConnectionStatus- replaces theuseSetConnectionStatushook usageprops.setConnectedWallet- replaces theuseSetConnectedWallethook usageprops.createWalletInstance- replaces theuseCreateWalletInstancehook usageprops.connectedWalletAddress- replaces theuseAddresshook usage
Example
import { WalletConfig } from "@thirdweb-dev/react-native"; import { MyCustomWallet } from "./MyCustomWallet"; // your custom wallet class // your custom wallet configurator function myCustomWallet(): WalletConfig<MyCustomWallet> { return { id: "MyCustomWallet", meta: { name: "FooBar", iconURL: "https://link-to-the-wallet-icon.png", }, create(walletOptions) { return new MyCustomWallet(walletOptions); }, // only use the props passed in the connectUI and selectUI // do not use any wallet connection hooks that read or write to the wallet connection state connectUI(props) { // const connect = useConnect(); -> old const connect = props.connect; // new return <div> .... </div>; }, selectUI(props) { return <div> .... </div>; }, }; }onLocallyConnectedhas been removed from theconnectUIprops - You no longer need to worry about whether a wallet is part of another wallet's connection flow or not - just use the regularpropspassed in theconnectUIandselectUIand it will be handled automatically.
Patch Changes
-
#2151
415f2aa8Thanks @jnsdls! - improve typechecking for deepMerge function -
#1964
5d567008Thanks @warengonzaga! - Add Filipino language to React and React Native SDK -
#1962
517d9a8fThanks @iketw! - Adds Turkish support as locale 'tr' -
#2158
abbd255eThanks @iketw! - Correctly pass sdkOptions down -
#2160
a11b1d49Thanks @iketw! - Update WalletConnectUI to use new arch -
Updated dependencies [
90a2f2d4,e1001689,d3637a16,27c00ef7,30f16cac,0f9b88ab,eb6544ff,756d5cc9]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.5.6
Patch Changes
-
#2131
f953c72cThanks @iketw! - Fix custom balance token display in details button -
#2137
7d07490eThanks @iketw! - Adds hideDisconnect prop to hide the disconnect button<ConnectWallet hideDisconnect={true} /> -
Updated dependencies [
22571ba0,e66e9066]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.5.5
Patch Changes
-
#2119
cf606665Thanks @MananTank! - Update Links to Docs website -
#2092
4c3c840dThanks @iketw! - Export WalletConnect modal component -
Updated dependencies [
cf606665]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.5.4
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
0.5.3
Patch Changes
-
#2101
7fdb1715Thanks @iketw! - Export types for better reference docs -
#2108
b90fa2ccThanks @iketw! - AddshideSendButtonandhideReceiveButtonto the ConnectWallet component.Both props default to
false.<ConnectWallet hideReceiveButton={true} hideSendButton={true} /> -
Updated dependencies [
b808e942,e46dd025]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.5.2
Patch Changes
-
#2084
c410a1c1Thanks @MananTank! - JSDoc comments Improvements -
#2087
b7d4dee4Thanks @iketw! - Support expo versions =>47 < 50 -
#2099
94a8f796Thanks @iketw! - Updates CoinbaseWallet SDK to fix scheme redirection bug -
Updated dependencies [
c410a1c1,fed1313a,f369bffe,81c46e22,23db97cc]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.5.1
Patch Changes
-
#2074
07fbb799Thanks @iketw! - Adds the ability to login with any arbitrary login payloadawait embeddedWallet.authenticate({ strategy: "auth_endpoint", payload: "SOME_STRING", encryptionKey: "", }); -
#2086
328ef5dcThanks @iketw! - Hide WC modal back button when only WC is defined as a supportedWallet -
Updated dependencies [
c701c388,699f31c2]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.5.0
Minor Changes
-
#2018
33c9f6b1Thanks @iketw! - Enforces passing an encryption key for custom jwt authconst embedded = useEmbeddedWallet(); embedded.connect({ jwt: "<token>", encryptionKey: "<my-key>", strategy: "jwt", });
Patch Changes
-
#2072
2346396bThanks @iketw! - Adds analytics nonce to embedded wallet -
Updated dependencies [
33c9f6b1,de5ebc90,e10173bf,09bafa9a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.14
Patch Changes
- Updated dependencies [
bcfa9463]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.13
Patch Changes
- Updated dependencies [
d2001ca4,85842c15,e595d4d9,497677f3,94966069,15ae5e7f]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.12
Patch Changes
-
#1842
a36c7e83Thanks @MananTank! - JSDoc improvements -
#2042
61c62b3fThanks @MananTank! - Improved JSDoc comments and Type exports -
Updated dependencies [
cfe81b44,34546c24,72c0bb10,ca618ea0,aefc4cda,a36c7e83,4ae1cd63,61c62b3f,7bb054e4,cd87be4a,d20e7898]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.11
Patch Changes
-
#2025
97ba1fbdThanks @iketw! - Adds version header to ews calls -
#2016
94559129Thanks @iketw! - Share WalletConnectHandler between React and RN to support wallets as receivers -
Updated dependencies [
e79b2935,8c2d4e5e,b0ecfd2d,a27b10c5,d28097f5,94559129,b8332500,8bf3be88,b02fb91a,f93bd325,2861dff1,61b6a002,28fc3736,50749662,b3394277,06805217,2b4f1c8e,4c488aa3]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.10
Patch Changes
-
#1994
68288436Thanks @kien-ngo! - Removeoverridesprops from Web3ButtonProps -
Updated dependencies [
4bb8f5b1,47b0ed51,d4ce855e,b5bbe2bd]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.9
Patch Changes
-
#1971
12d85decThanks @iketw! - Adds usePersonalWalletAddress hook to React/RN// React import { usePersonalWalletAddress } from "@thirdweb-dev/react"; const personalWalletAddress = usePersonalWalletAddress();// React-Native import { usePersonalWalletAddress } from "@thirdweb-dev/react-native"; const personalWalletAddress = usePersonalWalletAddress(); -
#1989
bf27b887Thanks @iketw! - Improves EmbeddedWallet error messages in React Native -
Updated dependencies [
fb0cb676,1094a03a,7c45941b,12d85dec]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.8
Patch Changes
- Updated dependencies [
6832b19f,7abb36a7,1c4cbedb,e43beec3]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.7
Patch Changes
- Updated dependencies [
ab2dfd4f,ab2dfd4f]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.6
Patch Changes
-
#1945
69d68f5aThanks @iketw! - Enable Facebook Sign In for embedded wallet -
Updated dependencies [
69d68f5a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.5
Patch Changes
- Updated dependencies [
9f993dcc]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.4
Patch Changes
-
#1944
6fcdec7cThanks @iketw! - Adds tsdoc warnings to enforce a common comments format -
Updated dependencies [
23ab897e,a3f3e160,e79a9520,6fcdec7c,42c74368,6fcdec7c,480ed721,16e9e8b6,b1190914]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.3
Patch Changes
-
#1908
18552f3aThanks @kien-ngo! - AddhideSwitchToPersonalWalletprop onConnectWalletcomponent to hide the "Switch to Personal wallet" option in the ConnectWallet modal which is shown when wallet is connected as a Smart Wallet -
#1912
1a421d3bThanks @iketw! - Adds Apple as a social sign in option for EmbeddedWalletYou can now do:
embeddedWallet({ auth: { options: ['apple'], redirectUrl: 'your-apps-redirect-url://', }, }), -
#1943
30ea9c6bThanks @iketw! - Adds tsdoc warnings to enforce a common comments format -
#1929
06e59cf9Thanks @iketw! - Move addresses' utils to the core package -
#1925
97fdbc8fThanks @iketw! - [RN] Adds walletConnectReceiver prop to EmbeddedWallet and SmartWalletYou can pass your own WalletConnect projectId and metadata (highly recommended):
embeddedWallet({ auth: { options: ['email', 'google'], redirectUrl: 'redirect-url', }, walletConnectReceiver: { walletConnectWalletMetadata?: WCMetadata; walletConnectV2ProjectId?: string; walletConnectV2RelayUrl?: string; }, }), smartWallet(localWallet(), { factoryAddress: 'factory-address', gasless: true, walletConnectReceiver: { walletConnectWalletMetadata?: WCMetadata; walletConnectV2ProjectId?: string; walletConnectV2RelayUrl?: string; }, }),You can just pass
trueto the prop and these props will default to our internal WalletConnect projectId and metadata.embeddedWallet({ auth: { options: ['email', 'google'], redirectUrl: 'redirect-url', }, walletConnectReceiver: true }), smartWallet(localWallet(), { factoryAddress: 'factory-address', gasless: true, walletConnectReceiver: true }), -
#1942
6de3a19bThanks @iketw! - Updated react-native-safe-area-context to 4.74 -
Updated dependencies [
3f3a484a,a81a5285,30ea9c6b,06e59cf9,97fdbc8f,3f3a484a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.2
Patch Changes
-
#1893
8e104b44Thanks @iketw! - Updates Japanese translations -
#1893
8e104b44Thanks @iketw! - Adds support for Japanese and SpanishYou can now pass 'ja' or 'es' to our ThirdwebProvider:
import { ThirdwebProvider } from '@thirdweb-dev/react-native'; <ThirdwebProvider locale={'ja'}> <App /> </ ThirdwebProvider> -
#1892
59e55410Thanks @iketw! - Deprecates magicLink in favor of embedded wallet -
#1900
9f454d1eThanks @iketw! - Export Locale types and improve modal title customization -
Updated dependencies [
0dcb15b7,fefeaeef,20d0f53b,91c2352b]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.4.1
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
0.4.0
Minor Changes
-
#1846
0acc530fThanks @joaquim-verges! - New API to configure authentication options onembeddedWallet// default - google sign in is enabled embeddedWallet(); // this is same as embeddedWallet({ auth: { options: ["email"], }, }); // add google sign in embeddedWallet({ auth: { options: ["email", "google"], redirectUrl: "your_app://deeplink", }, });
Patch Changes
-
#1885
961ef644Thanks @joaquim-verges! - ImproveduseSmartWallet()hookExample with metamask:
const { connect } = useSmartWallet(metamaskWallet(), { factoryAddress: factoryAddress, gasless: true, }); const onClick = async () => { // nothing to do here, all handled internally await connect(); };Example with localWallet: const { connect } = useSmartWallet(localWallet(), { factoryAddress: factoryAddress, gasless: true, }); const onClick = async () => { // function to 'load' the local wallet before using it await connect({ connectPersonalWallet: async (w) => { await w.generate(); await w.connect(); } }); }Example with embeddedWallet: const { connect } = useSmartWallet(embeddedWallet(), { factoryAddress: factoryAddress, gasless: true, }); const onClick = async () => { // function to 'auth' the embedded wallet before using it await connect({ connectPersonalWallet: async (w) => { const authResult = await w.authenticate({ strategy: "google" }); await w.connect({ authResult }); } }); } -
Updated dependencies [
a9d32f3c,0acc530f]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.16
Patch Changes
-
#1880
7461e2a9Thanks @iketw! - Fixes wallet icons borders bug -
#1878
178609a0Thanks @iketw! - Adds support for Japanese and SpanishYou can now pass 'ja' or 'es' to our ThirdwebProvider:
import { ThirdwebProvider } from '@thirdweb-dev/react-native'; <ThirdwebProvider locale={'ja'}> <App /> </ ThirdwebProvider>
0.3.15
Patch Changes
- Updated dependencies [
a75e4cc8,3faa9f21]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.14
Patch Changes
-
#1806
4374bd4eThanks @iketw! - Custom JWT support in React NativeEnables passing a custom JWT to the embeddedWallet:
import { embeddedWallet, useConnect } from "@thirdweb-dev/react-native"; import { Button } from "react-native"; import React from "react"; const AppInner = () => { const connect = useConnect(); const triggerConnect = async () => { connect(embeddedWallet(), { loginType: "jwt", password: "strong-password", jwt: "your-jwt", }); }; return ( <Button title={"Connect with custom JWT"} onPress={triggerConnect} /> ); }; -
#1844
0b748f31Thanks @iketw! - Migrate embedded wallet to new API in React Native -
#1855
b6f72c56Thanks @jnsdls! - require minimum node version:>=18 -
#1839
1934ef5fThanks @vuittont60! - Fix typo in comments -
#1841
b6267599Thanks @iketw! - Update naming for embeddedWallet custom jwt setup -
Updated dependencies [
d1743a32,4fa09df6,6028a881,0358722c,db0bbf51,4cb6e287,80def43d,5917e626,44f258d6,7ff0b4d5,b6f72c56,042459fe,cc651135,1934ef5f]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.13
Patch Changes
-
#1803
a63f5dc7Thanks @iketw! - React Native UI/theme improvements -
#1787
ff996646Thanks @MananTank! - Enable typedoc for packages -
#1799
1cc26e43Thanks @iketw! - Adds localization for the React Native SDKYou can now pass a Locale object to the ThirdwebProvider with your translations:
import { ThirdwebProvicer, en } from @thirdweb-dev/react-native; <ThirdwebProvider locale={{ ...your-translated-strings }}> <App /> </ThirdwebProvider> -
Updated dependencies [
5ffbcfc3,42ba15f2,d27a3dee,ff996646,d8d48a95,aa9f48d1,fd7a9f09,fd7a9f09,2307f11a,64138642,6d1eabe9]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.12
Patch Changes
- Updated dependencies [
137f46a5]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.11
Patch Changes
- Updated dependencies [
07544252]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.10
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.9
Patch Changes
- Updated dependencies [
956b5645]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.8
Patch Changes
-
#1724
fc62b91eThanks @iketw! - Adds Google sign in to embeddedWallet in React NativeYou need to add the
react-native-inappbrowser-rebornpackage to your app, then you can do:<ThirdwebProvider activeChain={activeChain} clientId={"your-client-id"} supportedWallets={[ embeddedWallet({ // if this is true AND oauthOptions is not set we set it to false internally email: true, // if this is set we enable Sign in with Google oauthOptions: { redirectUrl: "test15app://", providers: ["google"], }, }), ]} > <App /> </ThirdwebProvider> -
Updated dependencies [
526176c4,d1f8e951,09120c92,08e9cd20,6573556d]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.7
Patch Changes
-
#1754
dcdb0dcbThanks @iketw! - Fix typos in SmartWallet api -
#1760
f41ee6fbThanks @iketw! - Correctly pass theme via ConnectWallet -
#1753
b3b9edcaThanks @iketw! - Minor bug and UI fix for connecting an external app to a smart wallet -
#1759
513c332eThanks @iketw! - Fixes bug when passing only one wallet as a supportedWallet. The selectUI component must be displayed. -
Updated dependencies [
1f3c64d3,74941603,4b98e487,693f349d,dcdb0dcb,0f12d1f9,b3b9edca,63ad0050]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.6
Patch Changes
- Updated dependencies [
e684d05e]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.5
Patch Changes
-
#1645
79f91ee2Thanks @MananTank! - `WalletConfig.connectUI`` props updated:closeandopenremoved - wallet can no longer "close" the Modalhideandshowadded to only allow hiding and showing the Modalconnectedadded - use this instead ofclosewhen wallet is connected and Modal is safe to close.
-
Updated dependencies [
ce4608bf,79f91ee2,ce4608bf]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.4
Patch Changes
- Updated dependencies [
ec36b13a,6abb8459,a6c36724]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].5
- @thirdweb-dev/[email protected]
0.3.3
Patch Changes
-
#1715
f5caf6a3Thanks @iketw! - Fix encryption/decryption bug in embeddedWallet for React Native -
#1709
6f4c5cd7Thanks @ElasticBottle! - feat(react-native): update iteration count for embedded-wallet for better speed and future updates -
Updated dependencies [
9bd01de5,93127047,d3c8626a,f35fbec1,9bd01de5]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].4
- @thirdweb-dev/[email protected]
0.3.2
Patch Changes
- Updated dependencies [
6d3d76cf,04f2f7b8,15fe4779]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].3
0.3.1
Patch Changes
- Updated dependencies [
f64b7236]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].2
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.3.0
Minor Changes
Patch Changes
-
#1561
5dc372fcThanks @iketw! - Adds EmbeddedWallet (email) to React NativeYou can now do:
import { ThirdwebProvider, embeddedWallet } from "@thirdweb-dev/react-native"; <ThirdwebProvider clientId="your-client-id" supportedWallets={[embeddedWallet()]} > <App /> </ThirdwebProvider>;To use the
embeddedWalletyou need to add the following dependencies to your project:-
"amazon-cognito-identity-js": "^6.3.3" -
react-native-quick-base64
-
react-native-quick-crypto
-
There's an open issue on RN > 0.72: https://github.com/margelo/react-native-quick-crypto/issues/186 which you can fix by adding the following to your
android/app/build.gradlefile:packagingOptions { pickFirst 'lib/x86/libcrypto.so' pickFirst 'lib/x86_64/libcrypto.so' pickFirst 'lib/armeabi-v7a/libcrypto.so' pickFirst 'lib/arm64-v8a/libcrypto.so' } -
When building the iOS app in release mode for RN 0.71 you need to enable the OpenSSL framework in XCode. There are several solutions for this here:
-
-
react-native-aes-gcm-crypto
- This package requires minSdkVersion = 26 on Android
-
-
Updated dependencies [
54f83a50,a9b4b0c5,c7e7ec95,96e832cc,b16c09df,6897ad65,ee028e12,d28b1c0f,c085d690,de05c2da,bdb2ccc7,c7e7ec95]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].1
0.2.62
Patch Changes
-
#1644
2ce89cfeThanks @iketw! - Update ipfs json upload to new endpoint -
#1632
cbbb8ccbThanks @iketw! - Coinbase url listener should only listen for the Coinbase callbackURL -
#1635
57af96c2Thanks @iketw! - Correctly return json uploads results -
Updated dependencies [
64528263,dd3d1a87,9d553746,64528263,d5fafdde,c29042b7,b5b7e524,b6df6b89,94bdcc14,48906a9d,43f188c8,ea5b9c3e,def6d400]:- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.61
Patch Changes
-
#1592
1fe867e2Thanks @iketw! - Improved ConnectWallet UX/DevX :)- Devs can now pass a
recommendedfield tosupportedWalletsto recommend wallets to users.
When recommending a wallet, this wallet will show up at the top of the wallets list.
import { metamaskWallet, ThirdwebProvider } from "@thirdweb-dev/react-native"; <ThirdwebProvider clientId="your-client-id" supportedWallets={[ metamaskWallet({ recommended: true, }), ]} > <App /> </ThirdwebProvider>;- Better theme customization
You can now more easily customize the theme of the ConnectWallet component:
import { ConnectWallet, darkTheme } from "@thirdweb-dev/react-native"; <ConnectWallet theme={darkTheme({ colors: { textPrimary: "yellow", textSecondary: "blue", }, })} buttonTitle="Enter web3" modalTitle="Sign in" />;Note that you can still pass
lightordarkif you want to use one of the predefined thems :)- You can now pass your Privacy Policy and Terms of Service urls, they will show up at the bottom of the modal:
import { ConnectWallet, darkTheme } from "@thirdweb-dev/react-native"; <ConnectWallet privacyPolicyUrl="https://your-privacy-policy" termsOfServiceUrl="https://your-terms-of-service" />;- Fixed a bug when you only specify an email wallet. In this case the app shouldn't auto connect, it should show the email field.
- Devs can now pass a
-
#1550
3f3c63c0Thanks @MananTank! - ConnectWallet v3 updates -
Updated dependencies [
3fd39cea,3f3c63c0,48295c06,48295c06]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected]
0.2.60
Patch Changes
-
#1590
87ed24e1Thanks @iketw! - Sets correct UI types for some React Native componentsType composition in some components was being done incorrectly, which made types be
any, which in turn hide some typescript issues easily recognizable by our linter. -
#1587
4a7f41b3Thanks @iketw! - Remove signer from ThirdwebProvider as it is not being usedThe idea of the React/RN ThirdwebProvider is to provider support for wallets. If devs want to pass their own signer they can directly use ThirdwebSDKProvider
-
#1605
bb320c7eThanks @iketw! - Pass options to download an correctly pass clientId to RN storage. -
Updated dependencies [
c0070c2c,f55fd291,2a873d2f,d50863f4,f9042765,6df24a2e,8b73abfd,3056c34c,defe5fce,2f187d13,7e564163,931ee793]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.59
Patch Changes
- Updated dependencies [
3eb9592e,066b9cfa,a00cbaf7,a023cb8c,2088de1c,1e6f9dcc]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.58
Patch Changes
-
#1546
cdc08c55Thanks @iketw! - Use regular import for coinbase connector in React Native -
Updated dependencies [
926dd7b0,e00dd123]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.57
Patch Changes
- Updated dependencies [
eb463735,adec589e,b30566c6,0f027069,f5aed34d]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.56
Patch Changes
-
#1536
387dddbdThanks @iketw! - Adds switchToActiveChain prop to the ConnectWallet button.When set to true it will show a "Switch Network" button if the wallet is connected to a different chain than the
activeChainprovided inThirdwebProviderNote: IF you support multiple networks in your app this prop should be set to
falseto allow users to switch between networks.Usage:
<ConnectWallet switchToActiveChain={true} /> -
Updated dependencies [
f59b729f,911e14fc,cd6b07b5]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.55
Patch Changes
- Updated dependencies [
586e91db,34a3bb8a,91f0245b,f65578d6,5a373a75,ae74b8ef,bc003c2f,447d9846,f65578d6,088547f7]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.54
Patch Changes
- Updated dependencies [
184c325a,046c9ad6,c12f0874]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.53
Patch Changes
- Updated dependencies [
f97ddf4c]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.52
Patch Changes
0.2.51
Patch Changes
-
#1489
07fb1b5fThanks @iketw! - Adding walletConnect as a supportedWallet in React Nativeimport { localWallet, ThirdwebProvider, walletConnect, } from "@thirdweb-dev/react-native"; import { Ethereum } from "@thirdweb-dev/chains"; const App = () => { const activeChain = Ethereum; return ( <ThirdwebProvider activeChain={activeChain} supportedChains={[activeChain]} clientId="your-client-id" supportedWallets={[ localWallet(), walletConnect({ projectId: "your-wallet-connect-project-id", // optional, but we recommend you get your own for production }), ]} > <AppInner /> </ThirdwebProvider> ); }; -
#1496
26349f31Thanks @iketw! - Improves loading states when disconnecting and fetching balances -
Updated dependencies [
07fb1b5f,300a3c6f,d248aa2c,d248aa2c,8f3b685a,28975765,b91d3e99]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.50
Patch Changes
0.2.49
Patch Changes
-
#1479
14d9a71cThanks @iketw! - Deprecates magicWallet in favor of magicLink for consistency with our React package -
#1477
34b31599Thanks @joaquim-verges! - Pass unauth'd RPCs to wallets when adding new chains
0.2.48
Patch Changes
-
#1458
588b2106Thanks @kien-ngo! - AddhideTestnetFaucetto hide the "Request Testnet funds" button in ConnectWallet details dropdown in@thirdweb-dev/react-nativeand@thirdweb-dev/react.<ConnectWallet hideTestnetFaucet={true} /> -
Updated dependencies [
73462ef1,27c225a5,cb1c9937,70c4a119,a1732663,f0443bd9,cb1c9937,588b2106,269e68c0]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.47
Patch Changes
- Updated dependencies [
4c37af49,4b0e63dc]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.46
Patch Changes
-
#1452
3ba8ba42Thanks @iketw! - Upgrade Coinbase wallet SDK; it adds support for React Native 0.72.3 -
Updated dependencies [
262edc6a,262edc6a,dfd120a3]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.45
Patch Changes
- Updated dependencies [
2a91113a]:
0.2.44
Patch Changes
-
#1429
ab36d84fThanks @iketw! - Pass secretKey in the React SDK for server-side rendering -
Updated dependencies [
a5d0be93,c0a6d2f1,a9f2ff73,fd981655,becbb637,2283d210,fd981655,ab36d84f,c9bf4f05,67b145b9,5ee700e8,9f5adc5c]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.43
Patch Changes
- Updated dependencies [
3b6b0746,b0ec1d80]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.42
Patch Changes
- Updated dependencies [
fbde927a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.41
Patch Changes
- Updated dependencies [
256ee0d5]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.40
Patch Changes
-
#1385
cc5e2ec5Thanks @iketw! - Allow switching between supported chains in the React Native Wallet Details' modal- You can now enable showing a modal to switch between the supported chains defined in your ThirdwebProvider
<NetworkButton chain={chain} enableSwitchModal={true} />- You can also use the
NetworkButtonto switch to the chain represented on it:
<NetworkButton chain={chain} switchChainOnPress={true} onChainSwitched={onChainSwitched} /> -
#1391
ff4fb7d3Thanks @iketw! - Extend the thirdweb SDK and pass the correct React Native storageimport { ThirdwebSDK } from "@thirdweb-dev/react-native"; const newSdk = new ThirdwebSDK("mumbai"); const resp = await newSdk.storage.upload({ foo: "bar" }); -
Updated dependencies [
09b3b339,0a5eb19d,98009cb3,06b4f298,72fa3d22,b1e8c8e2,51b36040,2025b8cb,cbf486c2,01cc5408,53400858,385895ca,9acf6854,48ca58b7,aface46d,60fbb767,3152d4e9,5fe3cec8,8e6e55b1,aa6bdd08,277cfd5c,75587c8b,2025b8cb,cc5e2ec5,a9f9a403,7ae9f4cd,5a02c5ec]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.39
Patch Changes
- Updated dependencies [
7cb55e70]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.38
Patch Changes
- Updated dependencies [
d665954f]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.37
Patch Changes
- Updated dependencies [
02ab92cc,6cc4b8d2]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.36
Patch Changes
-
#1362
44dbf283Thanks @iketw! - Correctly pass clientId in storage -
#1316
d8447146Thanks @iketw! - Adds newclientIdprop to access thirdweb's services.You can create a free
clientIdon the thirdweb Dashboard<ThirdwebProvider clientId="your-client-id" /> -
Updated dependencies [
44dbf283,d8447146,d8447146,d8447146,d8447146,d8447146]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.35
Patch Changes
0.2.34
Patch Changes
- Updated dependencies [
8dd7540c,8dd7540c]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.33
Patch Changes
- Updated dependencies [
0407b2c2]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.32
Patch Changes
- Updated dependencies [
a9093bcf]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.31
Patch Changes
- Updated dependencies [
4393b228]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.30
Patch Changes
- Updated dependencies [
40682191]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.29
Patch Changes
- Updated dependencies [
db68bd04,fd74d791,35f20ceb]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.28
Patch Changes
-
#1283
8672c853Thanks @iketw! - SDK improvements:- You can now pass an
extraRowsprop to the ConnectWallet button. This will render theextraRowsat the bottom of the connected wallet details modal.
import { BaseButton, Box, ConnectWallet, Text, } from "@thirdweb-dev/react-native"; const extraRows = () => { return ( <Box> <Text variant="bodySmallSecondary" textAlign="center" mt="sm"> Extra option </Text> </Box> ); }; <ConnectWallet theme={"dark"} extraRows={extraRows} />;- You can now import a local wallet by a mnemoic as well.
When creating a Local/Guest Wallet the import wallet modal accepts both a privateKey or a mnemonic. This makes it easier for users to import their wallets into your app
- You can now pass an
-
Updated dependencies [
7e044c66,72ada475,2c0bb078,b5c6eedb,10b3a717,b4aee9b5,4961b597]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].9
- @thirdweb-dev/[email protected]
0.2.27
Patch Changes
-
#1278
8a389f12Thanks @jnsdls! - updated various dependencies -
Updated dependencies [
2d088d36,8a389f12,9daf0449,546353a4,a3bb17cb,0135a779]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].8
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.26
Patch Changes
-
#1270
0d5503aaThanks @iketw! - Only handle Coinbase callback URL if Coinbase is added as a supportedWallet -
#1277
2b113539Thanks @joaquim-verges! - remove ethers/lib/utils dependency -
Updated dependencies [
2b113539,c9535715,be606dd3,edcd22d6,5882091e,998e5217]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].7
- @thirdweb-dev/[email protected]
0.2.25
Patch Changes
- Updated dependencies [
ed711c8c,05a7495a,e78da6b3]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].6
0.2.24
Patch Changes
- Updated dependencies [
efb3546e]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].5
0.2.23
Patch Changes
-
#1215
3c5dc480Thanks @iketw! - Migrate wallets to WCV2 and remove WCV1 support.Please, check our changelogs for more info: https://blog.thirdweb.com/changelog/
-
Updated dependencies [
ef4cb092,06ca1c40,620e89dc,ac3e019c,30ac3aef,3c5dc480,ad7dae3b,620e89dc,0fd8aa04]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].4
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.22
Patch Changes
-
#1245
d9fb134aThanks @iketw! - [RN]-
Added the option to import a new wallet in guest mode
-
Added a "Request Testnet Funds" option when on testnets
-
-
#1245
d9fb134aThanks @iketw! - [ReactNative] Export more components for easy development- IconTextButton Component that renders an icon and a text inside a button with border:
<IconTextButton mt="xs" text="Switch Accounts" icon={<SwitchIcon height={10} width={10} />} onPress={() => {}} />- NetworkButton: Used to render a Network
<NetworkButton chainIconUrl={chain?.icon?.url || ""} chainName={chain?.name || "Unknown Network"} onPress={onChangeNetworkPress} />- Exported all icons from the assets folder for external use
-
Updated dependencies [
536b0f12,1d76334d,b626782b,d498c79a,0c5b03b8,9af346ee]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].3
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.21
Patch Changes
-
#1220
3cb298acThanks @iketw! - [RN/Wallets] Fix Coinbase wallet connection rejection errorUnhandled Rejections: We were rethrowing an error in an async function (connect) without any catch block to handle it. We were getting an Unhandled Promise Rejection, which lead to a crash in React Native when rejecting a connection from the Coinbase Wallet.
-
Updated dependencies [
6816219a,48065bcd,3cb298ac,b5e1d3bb,6aa6f7e0,f7f4f207,3ce5f9a0,d4d95507,a388d07a,1ce8558d,483e2b91,c08e6ba9,60fb1889,3d615a62]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].2
0.2.20
Patch Changes
-
#1202
04416e7cThanks @iketw! - [RN] Return connection Promise in wallets hooks for better error handling -
#1205
3ab7d1e9Thanks @iketw! - [RN] Added the option to import a new wallet in guest mode -
#1205
3ab7d1e9Thanks @iketw! - [ReactNative] Export more components for easy development- IconTextButton Component that renders an icon and a text inside a button with border:
<IconTextButton mt="xs" text="Switch Accounts" icon={<SwitchIcon height={10} width={10} />} onPress={() => {}} />- NetworkButton: Used to render a Network
<NetworkButton chainIconUrl={chain?.icon?.url || ""} chainName={chain?.name || "Unknown Network"} onPress={onChangeNetworkPress} />- Exported all icons from the assets folder for external use
-
Updated dependencies [
d9b7360d,8a2d9204,990c665d,3d62278a,c6f44722,45ae105e,f41f1a29,bb7ca20e,23d61cfe,8941b226,e0ce4a37]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].1
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.19
Patch Changes
-
#1182
a0eee749Thanks @iketw! - [RN] Added the option to import a new wallet in guest mode -
Updated dependencies [
cc20f93e,08403dd9,654b8ab3,a430160e,12b07aad,d60e544a,7d2a446e,088f2567,8e28b0f5,01293857,329bccec,20bbad1a,36f3191f]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.18
Patch Changes
-
#1137
dec4c4a8Thanks @iketw! - [ReactNative] Export WCV1 and WCV2 abstract classes to facilitate creation of wallet connect based walletsYou can now extend the abstract classes
WalletConnectV1orWalletConnectV2and set your own metadata when implementing a wallet.Find an example below implementing
MyWalletthat supports theWalletConnectV2protocol.import { WCMeta, WalletConnectV2, WalletOptions, WalletConfig, } from '@thirdweb-dev/react-native'; export class MyWallet extends WalletConnectV2 { static id = 'mywallet' as const; // ID needed to identify your wallet in the SDK. static meta = { name: 'My Wallet', // Name that will show up in our Connect Modal. iconURL: 'my-wallet-icon-url-ipfs-or-png', // Icon that will show up in our Connect Modal. links: { // The WalletConnect mobile links. native: 'mywallet://', universal: 'https://mywallet.com', }, }; getMeta(): WCMeta { return MyWallet.meta; } } /** * The WalletConnectV2 projectId. * * We provide a default projectId but recommend you get your own * when launching your app in production. */ type MyWalletConfig = { projectId?: string }; export const myWallet = (config?: MyWalletConfig): WalletConfig<WalletConnectV2> => { return { id: MyWallet.id, meta: MyWallet.meta, create: (options: WalletOptions) => new MyWallet({ ...options, projectId: config?.projectId, walletId: MyWallet.id, }), }; };You can then use your new wallet in the
ThirdwebProvider'ssupportedWalletsprop:import { ThirdwebProvider } from "@thirdweb-dev/react-native"; <ThirdwebProvider supportedWallets={[myWallet()]}> <App /> </ThirdwebProvider>; -
#1151
2a0294d8Thanks @MananTank! - Fix wrong balance in ConnectWallet -
#1135
15ef4779Thanks @iketw! - [ReactNative] Exports base UI components (react-native/components/base). They can now be used in your application. -
#1144
9ce3eb6aThanks @MananTank! - Remove WalletConfig.config object from wallets -
Updated dependencies [
2a443365,3bf7f375,6a194262,16232de9,54cfd6d8,8687d6ac,645b0303,522453fd,9a015a23,6803c3e9,0cba69ca,56f85e57,197a6838,6a91b6a0,e32faeb5,a5f16b6d,b6728603,ed47fd53,9ce3eb6a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].1
- @thirdweb-dev/[email protected]
0.2.17
Patch Changes
- Updated dependencies [
ce36322b,c60658ed,aa9e952c,564eaccf,6aee0413,21627c03,2283e71a,e93aa70e,51bbd3d1,9b20fc9a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected]
0.2.16
Patch Changes
-
#1103
89102b0cThanks @iketw! - [ReactNative] Fix bug where the wc uri is not being copied in the textinput after scanning it -
Updated dependencies [
23d90b3e,cc56037e,67450789]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].4
- @thirdweb-dev/[email protected]
0.2.15
Patch Changes
-
#1059
56ad0867Thanks @iketw! - [ReactNative] Use walletConfig's selectUI to render the wallet item in the Choose your Wallet dialog -
#1010
bba9767aThanks @iketw! - [ReactNative-Wallets] Enables SmartWallet to connect to an app, with implementation in React Native- Wallets package
- Smart Wallet now supports connecting an external app to it. It acts as an actual wallet implementing the WC protocol
- There are two WalletConnect handlers to manage V1 and V2 WC connections
- Creates a synchronous storage interface used in WCV1
- To have your connector support WC, you need to implement the interface: IWalletConnectReceiver.
- You can now pass the flag enableConnectApp to the smart wallet config to enable a new field in our modal to connect an app to your smart wallet
smartWallet({ factoryAddress: "..." thirdwebApiKey: "apiKey" gasless: true, personalWallets: [localWallet()], enableConnectApp: true, }),- React Native
- Creates new modals for WC SessionRequests and SessionApprovals
- Implements SyncStorage using MMKV
-
#1068
fd7111d5Thanks @MananTank! - addthemeinWalletConfig.selectUIto allow creating selection UI that follows the theme of the wallet Modal -
#1065
bd86661fThanks @iketw! - [ReactNative] Add support for signing in with email/phone using magic sdkDevs can now add a new supportedWallet:
import { Goerli } from '@thirdweb-dev/chains'; import { ThirdwebProvider, magicWallet } from '@thirdweb-dev/react-native'; <ThirdwebProvider activeChain={Goerli} supportedWallets={[ magicWallet({ apiKey: 'magic_api_key', }), ]}> -
#1088
4f99ccb4Thanks @iketw! - [RN/Wallets] Adds send_transaction support for wcv1 Connect to App feature -
#1052
77123a9aThanks @iketw! - [ReactNative] Adds support for WC QRCode scanningBreaking change:
- Users will need to add the dependency
react-native-camerato be able to use this version of the SDK.
- Users will need to add the dependency
-
Updated dependencies [
2f1df0b5,189daf02,afae0873,bba9767a,c6e74ef0,fd7111d5,ee4c7de2,bd86661f,68fa1896,e21bdd03,f7b352a5,4a1d7581,bdabbef7,59206233,292a321a,98efd090,8eecf4c2,bd86661f,f3b2ae3f,d5651006,4f99ccb4,da576108,c85810ee,6fd10f94,5f1e6abb,a034b032,35984362]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].3
- @thirdweb-dev/[email protected]
0.2.14
Patch Changes
- Updated dependencies [
30e5593d,30e5593d]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].2
- @thirdweb-dev/[email protected]
0.2.13
Patch Changes
-
#1025
99ffa8ceThanks @iketw! - [ReactNative] Single global modal. No API changesAdded the capability of using our theme outside the SDK. ThirdwebProvider's children component are now wrapped in a ThemeProvider.
-
Updated dependencies [
b6f48e10,d5123044,3c8c5d56,907d97be]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].1
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.12
Patch Changes
-
#995
482f6d1bThanks @iketw! - [ReactNative] update export local wallet modal UI -
#996
c3645c45Thanks @MananTank! - - addthemeinConfiguredWallet.connectUI's props - to use theme aware UI for wallets- add
useWalletConfighook to get theConfiguredWalletobject for active wallet - add hooks
useSetConnectedWallet,useSetConnectionStatus - rename
useActiveChaintouseChain- keep theuseActiveChainalso with deprecated tag - make
useSafehook await-able by returning the promise of connect() call - add hook
useSmartWallet - allow rendering custom wallet details button via
<ConnectWallet detailsButton={} />prop - Rename "Export" to "Backup" in local wallet UI
- add
-
#1011
470e0a14Thanks @MananTank! - rename ConfiguredWallet to WalletConfig- import { ConfiguredWallet } from '@thirdweb-dev/react'; + import { WalletConfig } from '@thirdweb-dev/react'; -
#1019
8a0dd070Thanks @iketw! - ## [ReactNative] Adds modalTitle, buttonTitle and detailsButton props to the ConnectWallet componentYou can now customize the following props:
buttonTitle
The title of the ConnectWallet button which defaults to: "Connect Wallet":
<ConnectWallet buttonTitle="Connect to claim" />modalTitle
The title of the ConnectWallet modal which defaults to: "Choose your wallet":
<ConnectWallet modalTitle="Select a wallet" />detailsButton
The button that shows the details of the connected wallet. By default it shows the chain icon, wallet balance, account address and wallet icon:
const customDetailsButton = ( <View> <Text>Connected button details</Text> <Text>{shortenWalletAddress(address)}</Text> </View> ); <ConnectWallet detailsButton={customDetailsButton} />;Web3Button
The
buttonTitleandmodalTitleprops are also available in theWeb3Buttonconfig since we show aConnectWalletbutton if you don't have a connected wallet:<Web3Button connectWalletProps={{ buttonTitle: "Connect to claim", modalTitle: "Pick a wallet", }} contractAddress="contract-address" action={(contract) => contract?.erc1155.claim(0, 1)} > Claim Factory </Web3Button> -
#989
8db78299Thanks @iketw! - [React/ReactNative] Updated useThirdwebWallet to useWalletContext -
Updated dependencies [
e9b69300,39bd9630,49ec2d17,799d98e8,c3645c45,470e0a14,b1ede491,738c0ec6,d495a4b8,482f6d1b,e4356e76,9886c858,8db78299,4f843833]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.11
Patch Changes
- Updated dependencies [
32908b76,6a4aab0b,6a4aab0b]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.10
Patch Changes
-
#981
ea0f9479Thanks @iketw! - ## [ReactNative] Allow custom wallets be added to the ConnectWallet button modalWith this new API you can build your own wallet and wallet UI and integrate it into our ConnectWallet modal:
import type { ConfiguredWallet, ConnectUIProps } from '@thirdweb-dev/react-native'; import { createAsyncLocalStorage, ConnectUIProps } from '@thirdweb-dev/react-native'; import { WalletOptions } from '@thirdweb-dev/wallets'; const WALLET_ID = "my-wallet-id"; export const myWallet = (): ConfiguredWallet => { const asyncStorage = createAsyncLocalStorage(WALLET_ID); const configuredWallet = { id: WALLET_ID, meta: { id: WALLET_ID, name: "My Custom Wallet", // This will be displayed in the connect wallet modal iconURL: "ipfs or https url to an image or svg" // This will be used to fetch the icon to show in the connect wallet modal }, create: (options: WalletOptions) => new MyWallet({ ...options, walletStorage: asyncStorage, }), connectUI(props: ConnectUIProps) { return <MyWalletUI {...props} />; // This will show up in the modal after the user selects your wallet }, }; return configuredWallet; };You can then add the wallet to your
supportedWalletsin theThirdwebProvider:import { Goerli } from '@thirdweb-dev/chains'; import { ThirdwebProvider, metamaskWallet, } from '@thirdweb-dev/react-native'; const activeChain = Goerli; const App = () => { return ( <ThirdwebProvider activeChain={activeChain} supportedChains={[activeChain]} supportedWallets={[ myWallet(), metamaskWallet(), ]}> <AppInner /> </ThirdwebProvider> ); };This new version exposes some utility functions:
formatWalletConnectDisplayUri
Formats the wallet connect
wc://url for usage with custom wallet linksshortenWalletAddress
Shortens a wallet address for display purposes
createAsyncLocalStorageandcreateSecureStorage
You can use these methods to get wallet compatible storage types.
createAsyncLocalStorageuses MMKV in the backgroundcreateSecureStorageuses Expo SecureStore in the background
-
#969
12ad7feaThanks @iketw! - [ReactNative] Remove gap prop for backward compat -
#966
87021ceeThanks @MananTank! - Connect Wallet UI improvements- Allow from EOA => smart wallet / safe
- Add warning to backup wallet for guest wallet
- Show "Guest" instead of address for guest wallet
-
#977
93bd5733Thanks @MananTank! - Fix Connect Wallet Open/Close issues -
#968
9640e073Thanks @iketw! - [ReactNative] Add guest mode warnings -
Updated dependencies [
93bdec06,ea0f9479,05ebbc15,5305b42d,4ca557ae,7d7685e3,87021cee,eb521d24,af4b5356,93bd5733,a2df187b,aa9b6acc]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.9
Patch Changes
-
#935
45d2ffcfThanks @iketw! - [ReactNative] Allow guest mode to be directly connected when no supported wallets are passed inWhen passing an empty
supportedWalletsarray and settingguestModeto true:<ThirdwebProvider activeChain={activeChain} supportedChains={[activeChain]} guestMode={true} supportedWallets={[]}Pressing on the ConnectWallet button will automatically create a
LocalWalletfor you and connect the user without any further prompts -
#937
7012513bThanks @iketw! - [ReactNative] Adding Smart Wallet to React Native as an option in the ConnectWallet button -
#787
d2c7f6d7Thanks @iketw! - [ReactNative] Adds Device Wallet -
#955
c7c2530cThanks @MananTank! - Local wallet UI refactor and other fixes -
#956
4a69f8c8Thanks @iketw! - [ReactNative] Allow switching between personal wallet and smart wallet- Updates SmartWallet and LocalWallet icons
- Adds "Learn More" links to both new wallets
-
#936
4828c876Thanks @iketw! - [ReactNative] Enable copying the address by pressing on it -
#943
465d8e2cThanks @iketw! - [ReactNative] Enforce web3button action to return a promise to make sure onSuccess and onError are triggered correctly -
#927
1e9fad77Thanks @MananTank! - safe, deviceWallet and smartWallet autoconnect -
#925
07194b06Thanks @iketw! - [ReactNative] Directly call connect when there's only one supported wallet defined in the provider -
Updated dependencies [
7012513b,5d67b280,f12a80a4,5a67d5d8,d2c7f6d7,c7c2530c,f12a80a4,bf6df267,e22e4a47,1e4ac672,fc96e147,4a69f8c8,26cd91ff,8f962bc1,28b5d1eb,0186721b,0bf29745,f0279c22,1e9fad77,7af99d9a,00d0d01e,fc96e147,8cfb4f38]:- @thirdweb-dev/[email protected].9
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.8
Patch Changes
-
#874
49922de9Thanks @iketw! - [RN] Adds Auth to React Native- Adds an optional
secureStorageto authConfig - Adds
expo-secure-storeto store the JWT token securely in React Native, passing a default value - Stores the token in secure storage to be accessed by subsequent calls
- Returns the token in
useLoginto be used by the user
How I tested:
- Tested in Android/iOS/Web
Usage:
<ThirdwebProvider activeChain="ethereum" supportedWallets={[metamaskWallet(), rainbowWallet()]} authConfig={{ domain: https://your-domain.com, authUrl: '/api/auth', }}> <AppInner /> </ThirdwebProvider>const { login } = useLogin(); const { logout } = useLogout(); const { user, isLoggedIn } = useUser(); ... const token = await login(); - Adds an optional
-
#886
51e6b414Thanks @iketw! - [ReactNative] Fixes Coinbase wallet on iOS- Adds connect wallet hooks for the supported wallets:
- useMetaMaskWallet
- useCoinbaseWallet
- useRainbowWallet
- useTrustWallet
Usage:
const connect = useMetaMaskWallet(); connect(); -
#916
0b1f5229Thanks @iketw! - [ReactNative] Improve customization of buttons background and text colorsYou can now pass custom background and text colors without having to create the full theme object. Alternatively, you can complete customize the theme:
import { ConnectWallet, darkTheme } from '@thirdweb-dev/react-native'; <ConnectWallet theme={darkTheme({ buttonBackgroundColor: '#new-color', buttonTextColor: '#another-color' })} />import { Web3Button, lightTheme } from '@thirdweb-dev/react-native'; <Web3Button theme={lightTheme({ buttonBackgroundColor: '#new-color', buttonTextColor: '#another-color' })} />Customizing theme beyond the button:
import { ConnectWallet, darkTheme } from '@thirdweb-dev/react-native'; const darkThemeCustom = darkTheme(); <ConnectWallet theme={{ ...darkThemeCustom, colors: { ...darkThemeCustom.colors, backgroundHighlight: 'blue', }, }} /> -
Updated dependencies [
abe88599,49922de9,4acb2b55,82bea3fa,ea04edf4,77224646,c9ee9b32,00f4355f,a6610f12,06cc1df3,29146e00,77224646,430a5f79,664d1cd0,bfdd8493,c2fec930,477324ec]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].8
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.7
Patch Changes
- Updated dependencies [
ac8fa0b3,b616dca7,2545a440,b75bcef5,229a4741,c9027fce,0db0cc75]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].7
0.2.6
Patch Changes
0.2.5
Patch Changes
- Updated dependencies [
1547d76c,235eb046,b5648aee,1b8f812f,235eb046]:- @thirdweb-dev/[email protected].8
- @thirdweb-dev/[email protected].5
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.4
Patch Changes
- Updated dependencies [
c5c2d947,2dd192a5]:- @thirdweb-dev/[email protected].4
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].7
0.2.3
Patch Changes
- Updated dependencies [
1137a20d,1137a20d]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].3
- @thirdweb-dev/[email protected].7
- @thirdweb-dev/[email protected]
0.2.2
Patch Changes
- Updated dependencies [
b7fcae6e,b7fcae6e,1f2df55b,839fce1f,839fce1f,839fce1f]:- @thirdweb-dev/[email protected].2
- @thirdweb-dev/[email protected].6
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.2.1
Patch Changes
- Updated dependencies [
e2581f21,9b303829]:- @thirdweb-dev/[email protected].1
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].5
- @thirdweb-dev/[email protected]
0.2.0
Minor Changes
-
#584
d01b135dThanks @MananTank! - [Wallets, RN, React, ReactCore] New Wallets SDK implementationBreaking changes:
React and React Native
- Replaced
walletConnectorswithsupportedWalletsin the ThirdwebProvider.
import { coinbaseWallet, metamaskWallet, ThirdwebProvider } from "@thirdweb-dev/react"; const App = () => { - return <ThirdwebProvider walletConnectors={["metamask", "coinbaseWallet"]}>{...}</ThirdwebProvider> + return <ThirdwebProvider supportedWallets={[metamaskWallet(), coinbaseWallet()]}>{...}</ThirdwebProvider> }-
magicLinkConnectornot yet implemented in this version -
Removed
desiredChainId, useactiveChaininstead -
DAppMetaDatatype now requires theurlfield to be passed in -
Removed
chainRpcprop from the ThirdwebProvider. You can pass custom rpcs in the Chain object through theactiveChainandsupportedChainsprops. -
Replaced the
useNetworkhook foruseChainanduseSwitchChain -
Updated
ConnectWalletbutton in React:
- Removed
accentColorandcolorMode - Added a
themeprop withdarkandlightvalues
- Updated the
Web3Buttonbutton in React:
- Removed
accentColorandcolorMode - Added a
themeprop withdarkandlightvalues
Patch Changes
- You can now pass a
themeprop to the ThirdwebProvider. Values arelightanddark
import { ThirdwebProvider } from "@thirdweb-dev/react"; const App = () => { return <ThirdwebProvider theme='light'>{...}</ThirdwebProvider> }-
New wallet hooks added
- useWallet()
- useConenct()
- useConnectionStatus()
- useSwitchChain()
-
Removed
wagmidependency from thereact-native-compatpackage and updated shims -
New
ConnectWalletandWeb3Buttoncomponents in React Native -
New wallets package with support for the most common wallets. MetaMask, Coinbase, WalletConnect V1 and V2 and PaperWallet
-
Added
autoSwitchprop to the ThirdwebProvider to control whether or not to automatically switch to wallet's network to active chain
import { ThirdwebProvider } from "@thirdweb-dev/react"; const App = () => { return <ThirdwebProvider autoSwitch>{...}</ThirdwebProvider> } - Replaced
-
#584
d01b135dThanks @MananTank! - [Wallets] New and updated wallets. [RN] UI Components and Wallets support.
Patch Changes
-
#757
9ea43969Thanks @iketw! - switch tothirdwebcdn.comfor default IPFS gateway -
#813
b97cf2e5Thanks @iketw! - [ReactNative] Fix react-native-modal ios flicker -
#825
4bdeefe6Thanks @iketw! - [Core,React,RN,Wallets] Allow for wallets to be created without props where possibleYou can now create wallets without having to worry about it's params. We provide sensible defaults.
const w = new WalletConnectV1(); w.connect(); const w1 = new WalletConnect(); w1.connect(); const cb = new CoinbaseWallet() w1.connect(); const safe = new SafeWallet(); const device = new DeviceBrowserWallet(); -
#771
e3161e59Thanks @iketw! - [ReactNativeSDK] Use wallet metadata from the wallet class -
#800
d6ae520aThanks @iketw! - [ReactCore/RN] Fix useActiveChain hook -
#735
ba9f593bThanks @jnsdls! -New Hooks
useWatchTransactions()- watch for transactions on the blockchain (real-time)
Example: Listen to all transactions on USD Coin (USDC) contract address.
import { useWatchTransactions } from "@thirdweb-dev/react"; const MyComponent = () => { const transactions = useWatchTransactions({ network: "ethereum", contractAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", }); if (!transactions.length) { return <div>No transactions, yet.</div>; } return ( <div> {transactions.map((transaction) => ( <div key={transaction.hash}> <div>Hash: {transaction.hash}</div> <div>From: {transaction.from}</div> <div>To: {transaction.to}</div> <div>Value: {transaction.value}</div> </div> ))} </div> ); };Note
This hook is available in
@thirdweb-dev/react,@thirdweb-dev/react-nativeand@thirdweb-dev/react-corepackages, the usage is the same. (The only difference is the import path.) -
#807
79768d4cThanks @iketw! - [ReactNative] Updated code comments for supportedWallets -
Updated dependencies [
d01b135d,6e9b9dba,93eca1de,a6fce0f6,9ea43969,3ff8eecf,2ec28021,4bdeefe6,805896c7,b56511e2,8ef5a6f2,4cbbad98,e3161e59,d6ae520a,5f0493d0,71532e5a,33d1cc7f,de7b6196,6b145d4b,83e99dbf,1baed0b1,52d37f01,485abd06,95bcfa6d,682f1c67,4d07b4b4,4d5fdda9,d8c1c943,08507611,e2ec70c4,ba9f593b,6b31a9bc,04775954,4b77bc9b,d01b135d,1baed0b1,8463a176,e47ceafe,4d5fdda9,6c0c6538,208d97e6,ddc1c33a,49eceaa0,5c7c0923,ba9f593b,2221f97d,9fa628f8,5c7c0923,abf609a4,9a4a542c,b2d0ffb0,bd40bc2e]:- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected].4
- @thirdweb-dev/[email protected]
0.1.9
Patch Changes
- Updated dependencies [
713d3187]:
0.1.8
Patch Changes
0.1.7
Patch Changes
0.1.6
Patch Changes
-
#665
6ef52dc9Thanks @shift4id! - Fix spelling throughout all packages -
Updated dependencies [
a7e908b5,61ef6964,2f4cd928,6ae39277,8a8a37f6,8f46a2ee,8d5b418e,63f552d7,fb346ffd,e081075b,7832041c,d8dec9fc,478780f6,b83ea525,541dfeea,6ef52dc9,0c883044,85250cf7,2676fc01,0666f37c,85250cf7,e33bd2a8,b80024c6,8845bf96,2335f000,696c384a,4355518a,3740a0bf,cc7ce8b1,91f5a2fd,23cd88ec,87a101ad,537785fe,29c1cf7e,b6b0855b,2a8cc289,1e1a3912,dc08aa73,bd6be0ba]:- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected].0
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.1.5
Patch Changes
- Updated dependencies [
d7deaa4,b7a5b45]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.1.4
Patch Changes
- Updated dependencies [
a3472a1,5712650,5712650]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.1.3
Patch Changes
- Updated dependencies [
3d644fb]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.1.2
Patch Changes
-
Updated dependencies [
f3408d0,66cf1fb]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
0.1.1
Patch Changes
- Updated dependencies [
f0de81d,300fe4a,f580b8a]:- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]
- @thirdweb-dev/[email protected]