Transfer not working in react native app

ok
thanks I have done.
I have called by useWeb3ExecuteFunction.
But I have another issue.

tokenInst.transfer(receiver, amounti).send({ from: fromAddress }, async function (error, result) { //get callback from function which is your transaction key

  if (!error) {

    alert("success")

    console.log("success")

  } else {

    alert(error)

    console.log(error);

  }

});

In here I have called transfer function.
Then I need to call send function .
how can I call ?

automatically will use send when using useWeb3ExecuteFunction with a non read only function

ok
but when It called send function,we have from parameter.
I have to give that value by that parameter

it may set some default value as current wallet address for that from parameter

how can I give ?

const ShowUniswapObserveValues = () => {

const { web3 } = useMoralis()

const amounti = web3.utils.toWei(‘1’, ‘ether’)

const receiver = “0x97EA4A24535B5b52C3e15912071F469AC2Ebcfb7”

const { data, error, fetch, isFetching, isLoading } = useWeb3ExecuteFunction({

abi: Abi,

contractAddress: “0xb65A60C3EE6D2cb39010e6e51337B2AB6869a5d5”,

functionName: “balanceOf”,

params: {

to :receiver,

value:amounti,

}

});

if (error) {

return (

<View style={styles.marginLarge}>

  <Text>Error:</Text>

  <Text>{JSON.stringify(error)}</Text>

</View>

);

}

return (

<Button

  buttonStyle={{ width: 200, backgroundColor: "green" }}

  containerStyle={{ margin: 5 }}

  disabledStyle={{

    borderWidth: 2,

    borderColor: "#00F",

  }}

  onPress={() => fetch()}

  disabled={isFetching}

  loadingProps={{ animating: true }}

  title="Send transaction"></Button>

{data && <Text>

  {JSON.stringify(data)}

</Text>}

)

}

In this code , what should I fix ?

I don’t know what you should fix, I can not understand all that code

you can see here how to post code on forum:

thank you
After ‘send’ function calling , It is not showing confirm form in metamask app

is there any error, was metamask connected?

yes
It is aready conncected
After ‘transfer’ function calling ,It is redirecting metasmaks app ,then It have to show confirm button.
But It is not showing
can you help me ?

I don’t know how to help, maybe you can share some screen shots too

Screenshot_10
click button
then It is redirecting metamask .


It is not showing transaction confirmation form.

what happens if you click multiple times on that send transaction?

this is wallet connect?

yes
I have used wallet connect and moralis

I have got error in react native while enabling web3 .
Can you help me ?

hi @igamezzhen, how did you fix that error?

hi
{“code”: 141, “error”: “Returned values aren’t valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.”}
what is the reason ?

Can i add new blockchain suppourt to my moralis server?

you could get this error when the ABI is invalid, but I guess that you didn’t provide any ABI?

you can add new blockchain support from the list of available chains

where should I add new blockchain support ?