From dd18cef0bbaff1f5a9262e15e59ec1de7061f959 Mon Sep 17 00:00:00 2001 From: nacho <25931366+ignaciosantise@users.noreply.github.com> Date: Tue, 20 May 2025 15:46:48 -0300 Subject: [PATCH] chore: improved hooks code, fixed mixed docs with web --- appkit/react-native/core/hooks.mdx | 263 ++++++++++++++---- snippets/appkit/react-native/ethers/hooks.mdx | 29 +- .../appkit/react-native/ethers5/hooks.mdx | 27 +- snippets/appkit/react-native/wagmi/hooks.mdx | 14 - 4 files changed, 234 insertions(+), 99 deletions(-) diff --git a/appkit/react-native/core/hooks.mdx b/appkit/react-native/core/hooks.mdx index 709edc934..3f86bcafe 100644 --- a/appkit/react-native/core/hooks.mdx +++ b/appkit/react-native/core/hooks.mdx @@ -8,53 +8,68 @@ import Ethers5Hooks from "/snippets/appkit/react-native/ethers5/hooks.mdx"; ## useAppKit -Control the modal with the `useAppKit` hook +The `useAppKit` hook provides functions to control the modal's visibility. You can use it to programmatically open or close the modal. ```ts import { useAppKit } from '@reown/appkit-wagmi-react-native' +import { Button } from 'react-native'; export default function Component() { const { open, close } = useAppKit() -open() - -//... + return ( + <> +