Beta
A component that allows the user to call an on-chain function on a contract.
The button has to be wrapped in a ThirdwebProvider in order to function.
ThirdwebProvider
import { Web3Button } from "@thirdweb-dev/react-native";const App = () => { return ( <View> <Web3Button contractAddress="0x..." action={(contract) => contract.erc721.transfer("0x...", 1)} /> </View> )} Copy
import { Web3Button } from "@thirdweb-dev/react-native";const App = () => { return ( <View> <Web3Button contractAddress="0x..." action={(contract) => contract.erc721.transfer("0x...", 1)} /> </View> )}
Generated using TypeDoc
A component that allows the user to call an on-chain function on a contract.
The button has to be wrapped in a
ThirdwebProvider
in order to function.