import React , { FunctionComponent } from "react" ; import { observer } from "mobx-react-lite" ; import { TextStyle , ViewStyle } from "react-native" ; import { IGasConfig } from "@keplr-wallet/hooks" ; import { TextInput } from "./input" ; export const GasInput = observer ( ( { labelStyle , containerStyle , inputContainerStyle , label , gasConfig } ) => { return ( < TextInput labelStyle = { labelStyle } containerStyle = { containerStyle } inputContainerStyle = { inputContainerStyle } label = { label } value = { gasConfig . gasRaw } onChangeText = { ( text ) => { gasConfig . setGas ( text ) ; } } keyboardType = "number-pad" / > ) ; } ) ;