# @thirdweb-dev/react-native ## 0.4.11 ### Patch Changes - [#2025](https://github.com/thirdweb-dev/js/pull/2025) [`97ba1fbd`](https://github.com/thirdweb-dev/js/commit/97ba1fbd42d40d4a2ed5c3680115a147a1fa12f0) Thanks [@iketw](https://github.com/iketw)! - Adds version header to ews calls - [#2016](https://github.com/thirdweb-dev/js/pull/2016) [`94559129`](https://github.com/thirdweb-dev/js/commit/9455912932c71f3ef9b67461bf5604f1ea1f71e8) Thanks [@iketw](https://github.com/iketw)! - Share WalletConnectHandler between React and RN to support wallets as receivers - Updated dependencies [[`e79b2935`](https://github.com/thirdweb-dev/js/commit/e79b293562bbcf4af6fbcb4829b2acb4cb3e2cb4), [`8c2d4e5e`](https://github.com/thirdweb-dev/js/commit/8c2d4e5ea7c38b3efa4d8d94c9822a92d271e59b), [`b0ecfd2d`](https://github.com/thirdweb-dev/js/commit/b0ecfd2d8d5cda33dc8f5ea2d20119cb901a0bcb), [`a27b10c5`](https://github.com/thirdweb-dev/js/commit/a27b10c5c3400500ef0138069acc550b3a07ffc6), [`d28097f5`](https://github.com/thirdweb-dev/js/commit/d28097f508739cdbd6625e09c2ed0fe25a922c0f), [`94559129`](https://github.com/thirdweb-dev/js/commit/9455912932c71f3ef9b67461bf5604f1ea1f71e8), [`b8332500`](https://github.com/thirdweb-dev/js/commit/b833250053320c8608109053f5cffe2dc96ce70a), [`8bf3be88`](https://github.com/thirdweb-dev/js/commit/8bf3be88be051178a7142618c4371d2f2ef26271), [`b02fb91a`](https://github.com/thirdweb-dev/js/commit/b02fb91a548a3f66f7677ced24be9397e0f9a7ba), [`f93bd325`](https://github.com/thirdweb-dev/js/commit/f93bd325e119381ddc3380a5ea43fe63fbcf42c0), [`2861dff1`](https://github.com/thirdweb-dev/js/commit/2861dff1f013b5150314fdaccaeadddbcf0d21c9), [`61b6a002`](https://github.com/thirdweb-dev/js/commit/61b6a00214716454222e67fe5fdb47edba391070), [`28fc3736`](https://github.com/thirdweb-dev/js/commit/28fc3736aa30c89690084aa2c62556c183796352), [`50749662`](https://github.com/thirdweb-dev/js/commit/507496627bcd77b49bb027b24996a31c57e04819), [`b3394277`](https://github.com/thirdweb-dev/js/commit/b3394277c77e4af130151111e056e27a28ac893a), [`06805217`](https://github.com/thirdweb-dev/js/commit/06805217c26de203a57c21246acba22def8a78fa), [`2b4f1c8e`](https://github.com/thirdweb-dev/js/commit/2b4f1c8e55de091100fb5279887bcb19ea31d38c), [`4c488aa3`](https://github.com/thirdweb-dev/js/commit/4c488aa31f6fadc13759ff60f30230b929feb314)]: - @thirdweb-dev/react-core@4.1.11 - @thirdweb-dev/wallets@2.1.10 - @thirdweb-dev/sdk@4.0.18 - @thirdweb-dev/chains@0.1.60 - @thirdweb-dev/storage@2.0.6 ## 0.4.10 ### Patch Changes - [#1994](https://github.com/thirdweb-dev/js/pull/1994) [`68288436`](https://github.com/thirdweb-dev/js/commit/68288436acd62256be561395743762965888449d) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Remove `overrides` props from Web3ButtonProps - Updated dependencies [[`4bb8f5b1`](https://github.com/thirdweb-dev/js/commit/4bb8f5b15e58de39c5edccc7476da3e4907d7688), [`47b0ed51`](https://github.com/thirdweb-dev/js/commit/47b0ed5171be5608ae23c19481a1b04948443c6a), [`d4ce855e`](https://github.com/thirdweb-dev/js/commit/d4ce855e5f5e6c4206a3efa250e92e690ae87281), [`b5bbe2bd`](https://github.com/thirdweb-dev/js/commit/b5bbe2bd438179c38451bc2cfa20a54fc79e4f3a)]: - @thirdweb-dev/react-core@4.1.10 - @thirdweb-dev/chains@0.1.59 - @thirdweb-dev/wallets@2.1.9 - @thirdweb-dev/sdk@4.0.17 ## 0.4.9 ### Patch Changes - [#1971](https://github.com/thirdweb-dev/js/pull/1971) [`12d85dec`](https://github.com/thirdweb-dev/js/commit/12d85dec10f47d6520b737a23576e4f832abb47f) Thanks [@iketw](https://github.com/iketw)! - Adds usePersonalWalletAddress hook to React/RN ```typescript // React import { usePersonalWalletAddress } from "@thirdweb-dev/react"; const personalWalletAddress = usePersonalWalletAddress(); ``` ```typescript // React-Native import { usePersonalWalletAddress } from "@thirdweb-dev/react-native"; const personalWalletAddress = usePersonalWalletAddress(); ``` - [#1989](https://github.com/thirdweb-dev/js/pull/1989) [`bf27b887`](https://github.com/thirdweb-dev/js/commit/bf27b8872870c08bb19934d87e574e0477c9550f) Thanks [@iketw](https://github.com/iketw)! - Improves EmbeddedWallet error messages in React Native - Updated dependencies [[`fb0cb676`](https://github.com/thirdweb-dev/js/commit/fb0cb676b996fe386dcc53b5a6dab03f88e76175), [`1094a03a`](https://github.com/thirdweb-dev/js/commit/1094a03a04f3e7ade84af0f7a6073794c0904cb1), [`7c45941b`](https://github.com/thirdweb-dev/js/commit/7c45941b57fb5a6f83be507ee64dbf885d93c9d4), [`12d85dec`](https://github.com/thirdweb-dev/js/commit/12d85dec10f47d6520b737a23576e4f832abb47f)]: - @thirdweb-dev/react-core@4.1.9 - @thirdweb-dev/wallets@2.1.8 - @thirdweb-dev/sdk@4.0.16 ## 0.4.8 ### Patch Changes - Updated dependencies [[`6832b19f`](https://github.com/thirdweb-dev/js/commit/6832b19fc5eedc7c17e69940a361840de0a84881), [`7abb36a7`](https://github.com/thirdweb-dev/js/commit/7abb36a7ec39766dd7da03015ccef401ef7a7863), [`1c4cbedb`](https://github.com/thirdweb-dev/js/commit/1c4cbedb6a3c9f9014ffbf83c02b998768958d96), [`e43beec3`](https://github.com/thirdweb-dev/js/commit/e43beec36a569211b6fe708107aa7dc04bff08ec)]: - @thirdweb-dev/wallets@2.1.7 - @thirdweb-dev/sdk@4.0.15 - @thirdweb-dev/react-core@4.1.8 ## 0.4.7 ### Patch Changes - Updated dependencies [[`ab2dfd4f`](https://github.com/thirdweb-dev/js/commit/ab2dfd4f5cf4256fa62d76f84ca804992afab1e4), [`ab2dfd4f`](https://github.com/thirdweb-dev/js/commit/ab2dfd4f5cf4256fa62d76f84ca804992afab1e4)]: - @thirdweb-dev/sdk@4.0.14 - @thirdweb-dev/wallets@2.1.6 - @thirdweb-dev/storage@2.0.5 - @thirdweb-dev/react-core@4.1.7 ## 0.4.6 ### Patch Changes - [#1945](https://github.com/thirdweb-dev/js/pull/1945) [`69d68f5a`](https://github.com/thirdweb-dev/js/commit/69d68f5a25877bf5ea694719d2cf4ca8388f3091) Thanks [@iketw](https://github.com/iketw)! - Enable Facebook Sign In for embedded wallet - Updated dependencies [[`69d68f5a`](https://github.com/thirdweb-dev/js/commit/69d68f5a25877bf5ea694719d2cf4ca8388f3091)]: - @thirdweb-dev/wallets@2.1.5 - @thirdweb-dev/react-core@4.1.6 ## 0.4.5 ### Patch Changes - Updated dependencies [[`9f993dcc`](https://github.com/thirdweb-dev/js/commit/9f993dcc1e60cc087850b8fb9ce09524073ce0b5)]: - @thirdweb-dev/wallets@2.1.4 - @thirdweb-dev/react-core@4.1.5 ## 0.4.4 ### Patch Changes - [#1944](https://github.com/thirdweb-dev/js/pull/1944) [`6fcdec7c`](https://github.com/thirdweb-dev/js/commit/6fcdec7c12e4a3c0d10f3a67771e19cfad5c8ab5) Thanks [@iketw](https://github.com/iketw)! - Adds tsdoc warnings to enforce a common comments format - Updated dependencies [[`23ab897e`](https://github.com/thirdweb-dev/js/commit/23ab897e329cdd5b316fbe554ea0f64add91f2b4), [`a3f3e160`](https://github.com/thirdweb-dev/js/commit/a3f3e160e07328655a4f0332f41f4edd210a1a8a), [`e79a9520`](https://github.com/thirdweb-dev/js/commit/e79a95206116ea09de0126fdbe30fb4413fdff28), [`6fcdec7c`](https://github.com/thirdweb-dev/js/commit/6fcdec7c12e4a3c0d10f3a67771e19cfad5c8ab5), [`42c74368`](https://github.com/thirdweb-dev/js/commit/42c743682739de77c264c11cc1692ed752f929a6), [`6fcdec7c`](https://github.com/thirdweb-dev/js/commit/6fcdec7c12e4a3c0d10f3a67771e19cfad5c8ab5), [`480ed721`](https://github.com/thirdweb-dev/js/commit/480ed721d1c736049fa8b6ee4cbdbdf3cce18abd), [`16e9e8b6`](https://github.com/thirdweb-dev/js/commit/16e9e8b64d7d1a97a5b32fc855479e992b7ed3a8), [`b1190914`](https://github.com/thirdweb-dev/js/commit/b1190914a97a9c4d9019c4ce8ee49ad345aed18c)]: - @thirdweb-dev/sdk@4.0.13 - @thirdweb-dev/react-core@4.1.4 - @thirdweb-dev/storage@2.0.4 - @thirdweb-dev/wallets@2.1.3 ## 0.4.3 ### Patch Changes - [#1908](https://github.com/thirdweb-dev/js/pull/1908) [`18552f3a`](https://github.com/thirdweb-dev/js/commit/18552f3a225d1c46f0ff19c2b1c9cc44f84e33ac) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add `hideSwitchToPersonalWallet` prop on `ConnectWallet` component to hide the "Switch to Personal wallet" option in the ConnectWallet modal which is shown when wallet is connected as a Smart Wallet - [#1912](https://github.com/thirdweb-dev/js/pull/1912) [`1a421d3b`](https://github.com/thirdweb-dev/js/commit/1a421d3b5d837eade5b7344118a7148ddea35517) Thanks [@iketw](https://github.com/iketw)! - Adds Apple as a social sign in option for EmbeddedWallet You can now do: ```typescript embeddedWallet({ auth: { options: ['apple'], redirectUrl: 'your-apps-redirect-url://', }, }), ``` - [#1943](https://github.com/thirdweb-dev/js/pull/1943) [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3) Thanks [@iketw](https://github.com/iketw)! - Adds tsdoc warnings to enforce a common comments format - [#1929](https://github.com/thirdweb-dev/js/pull/1929) [`06e59cf9`](https://github.com/thirdweb-dev/js/commit/06e59cf91647e4080829d49f8cb91a4d8fdc87f7) Thanks [@iketw](https://github.com/iketw)! - Move addresses' utils to the core package - [#1925](https://github.com/thirdweb-dev/js/pull/1925) [`97fdbc8f`](https://github.com/thirdweb-dev/js/commit/97fdbc8f6443dcd08a7610e4437bd4c9d6b0e8c8) Thanks [@iketw](https://github.com/iketw)! - [RN] Adds walletConnectReceiver prop to EmbeddedWallet and SmartWallet You can pass your own WalletConnect projectId and metadata (highly recommended): ```typescript 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 `true` to the prop and these props will default to our internal WalletConnect projectId and metadata. ```typescript embeddedWallet({ auth: { options: ['email', 'google'], redirectUrl: 'redirect-url', }, walletConnectReceiver: true }), smartWallet(localWallet(), { factoryAddress: 'factory-address', gasless: true, walletConnectReceiver: true }), ``` - [#1942](https://github.com/thirdweb-dev/js/pull/1942) [`6de3a19b`](https://github.com/thirdweb-dev/js/commit/6de3a19b86476cf5f7d67223a366379c4fdb9b74) Thanks [@iketw](https://github.com/iketw)! - Updated react-native-safe-area-context to 4.74 - Updated dependencies [[`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b), [`a81a5285`](https://github.com/thirdweb-dev/js/commit/a81a5285b7ef4ddf47fd2779ab80ebbef4bd9e0e), [`30ea9c6b`](https://github.com/thirdweb-dev/js/commit/30ea9c6bf74b483a98592a1d8d64589b7f1b22a3), [`06e59cf9`](https://github.com/thirdweb-dev/js/commit/06e59cf91647e4080829d49f8cb91a4d8fdc87f7), [`97fdbc8f`](https://github.com/thirdweb-dev/js/commit/97fdbc8f6443dcd08a7610e4437bd4c9d6b0e8c8), [`3f3a484a`](https://github.com/thirdweb-dev/js/commit/3f3a484a3aa6e9f784e4d44458461bac0d3d4c6b)]: - @thirdweb-dev/wallets@2.1.2 - @thirdweb-dev/react-core@4.1.3 - @thirdweb-dev/storage@2.0.3 - @thirdweb-dev/sdk@4.0.12 ## 0.4.2 ### Patch Changes - [#1893](https://github.com/thirdweb-dev/js/pull/1893) [`8e104b44`](https://github.com/thirdweb-dev/js/commit/8e104b443e4a11908be660656c525ad237115835) Thanks [@iketw](https://github.com/iketw)! - Updates Japanese translations - [#1893](https://github.com/thirdweb-dev/js/pull/1893) [`8e104b44`](https://github.com/thirdweb-dev/js/commit/8e104b443e4a11908be660656c525ad237115835) Thanks [@iketw](https://github.com/iketw)! - Adds support for Japanese and Spanish You can now pass 'ja' or 'es' to our ThirdwebProvider: ``` import { ThirdwebProvider } from '@thirdweb-dev/react-native'; ``` - [#1892](https://github.com/thirdweb-dev/js/pull/1892) [`59e55410`](https://github.com/thirdweb-dev/js/commit/59e55410942f3cb08570623f990487868aaed107) Thanks [@iketw](https://github.com/iketw)! - Deprecates magicLink in favor of embedded wallet - [#1900](https://github.com/thirdweb-dev/js/pull/1900) [`9f454d1e`](https://github.com/thirdweb-dev/js/commit/9f454d1e08ebf5280a3266791d1843ddd7e24242) Thanks [@iketw](https://github.com/iketw)! - Export Locale types and improve modal title customization - [#1909](https://github.com/thirdweb-dev/js/pull/1909) [`ba49a824`](https://github.com/thirdweb-dev/js/commit/ba49a82463487735dc19bf33ab2f7a3e9cce08ac) Thanks [@iketw](https://github.com/iketw)! - UI improvements - Updated dependencies [[`0dcb15b7`](https://github.com/thirdweb-dev/js/commit/0dcb15b7e647acd038b0ec8b1a2b200808aae00e), [`fefeaeef`](https://github.com/thirdweb-dev/js/commit/fefeaeef18f52a75462c43da8b85a77975d32e01), [`20d0f53b`](https://github.com/thirdweb-dev/js/commit/20d0f53b46a2975a0a14ddaa4a377f2f758804db), [`91c2352b`](https://github.com/thirdweb-dev/js/commit/91c2352b03d7cf1c3cbbbc98846f248b0f707ea7)]: - @thirdweb-dev/chains@0.1.58 - @thirdweb-dev/sdk@4.0.11 - @thirdweb-dev/wallets@2.1.1 - @thirdweb-dev/react-core@4.1.2 ## 0.4.1 ### Patch Changes - Updated dependencies []: - @thirdweb-dev/react-core@4.1.1 ## 0.4.0 ### Minor Changes - [#1846](https://github.com/thirdweb-dev/js/pull/1846) [`0acc530f`](https://github.com/thirdweb-dev/js/commit/0acc530f8bbee59672d9705724edc278bd853d9a) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - New API to configure authentication options on `embeddedWallet` ```ts // 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](https://github.com/thirdweb-dev/js/pull/1885) [`961ef644`](https://github.com/thirdweb-dev/js/commit/961ef644d1b1adaad08c071903cd53aacac50bb4) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Improved `useSmartWallet()` hook Example with metamask: ```ts const { connect } = useSmartWallet(metamaskWallet(), { factoryAddress: factoryAddress, gasless: true, }); const onClick = async () => { // nothing to do here, all handled internally await connect(); }; ``` ```ts 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(); } }); } ``` ```ts 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`](https://github.com/thirdweb-dev/js/commit/a9d32f3c90251a459e17a19eca803bbfdeeaeb79), [`0acc530f`](https://github.com/thirdweb-dev/js/commit/0acc530f8bbee59672d9705724edc278bd853d9a)]: - @thirdweb-dev/sdk@4.0.10 - @thirdweb-dev/wallets@2.1.0 - @thirdweb-dev/react-core@4.1.0 ## 0.3.16 ### Patch Changes - [#1880](https://github.com/thirdweb-dev/js/pull/1880) [`7461e2a9`](https://github.com/thirdweb-dev/js/commit/7461e2a9145549b7e08bc34d87d44be9bcff2c07) Thanks [@iketw](https://github.com/iketw)! - Fixes wallet icons borders bug - [#1878](https://github.com/thirdweb-dev/js/pull/1878) [`178609a0`](https://github.com/thirdweb-dev/js/commit/178609a0622b571560188a4266247eb342759ea1) Thanks [@iketw](https://github.com/iketw)! - Adds support for Japanese and Spanish You can now pass 'ja' or 'es' to our ThirdwebProvider: ``` import { ThirdwebProvider } from '@thirdweb-dev/react-native'; ``` ## 0.3.15 ### Patch Changes - Updated dependencies [[`a75e4cc8`](https://github.com/thirdweb-dev/js/commit/a75e4cc80a5a36bf6baeeb40e8ae3be485d35618), [`3faa9f21`](https://github.com/thirdweb-dev/js/commit/3faa9f21efb1ae29a57747d6f0b8fb1151930ab4)]: - @thirdweb-dev/chains@0.1.57 - @thirdweb-dev/wallets@2.0.10 - @thirdweb-dev/react-core@4.0.10 - @thirdweb-dev/sdk@4.0.9 ## 0.3.14 ### Patch Changes - [#1806](https://github.com/thirdweb-dev/js/pull/1806) [`4374bd4e`](https://github.com/thirdweb-dev/js/commit/4374bd4e160e04d919980efd8e73ff7cafe473d2) Thanks [@iketw](https://github.com/iketw)! - Custom JWT support in React Native Enables passing a custom JWT to the embeddedWallet: ```javascript 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 (