Skip to main content

@kiroboio/web3-react-native-safe-transfer

Enumerations​

Interfaces​

Functions​

useCurrentMutableState​

â–¸ Const useCurrentMutableState<T>(state): MutableRefObject<T>

Use this hook to mutate the .current value instead of creating new

Two use cases

1) For not adding state to hook deps 2) For getting updated(mutated) state version in async operations

Type parameters​

Name
T

Parameters​

NameType
stateT

Returns​

MutableRefObject<T>


useSwapRates​

â–¸ Const useSwapRates(): void

Returns​

void


useWeb3​

â–¸ Const useWeb3(__namedParameters): IWeb3ReactContext

Parameters​

NameType
__namedParametersObject
__namedParameters.infuraKeystring

Returns​

IWeb3ReactContext