Learn how to show and hide the funding options UI in your React Native application.
client.ui.fundingOptions.show()
client.ui.fundingOptions.hide()
import { useReactiveClient } from '@dynamic-labs/react-hooks'; import { dynamicClient } from './path-to-your-client'; // Replace with your actual client path export const useDynamicClient = () => useReactiveClient(dynamicClient); const FundingComponent = () => { const client = useDynamicClient() const handleShowFunding = () => { client.ui.fundingOptions.show() } const handleHideFunding = () => { client.ui.fundingOptions.hide() } return ( <> <Button onPress={handleShowFunding} title="Add Funds" /> <Button onPress={handleHideFunding} title="Close Funding Options" /> </> ) }
Was this page helpful?