简体   繁体   中英

React Native get TextInput value and use on the same View using onBlur or onFocus method

I would like to get the value from a TextInput picker (using react-native-material-dropdown) and perform calculations on close of dropdown using the blur method, the dropdown is numeric.

<Dropdown
        label='meals'
        data={data}
        onChangeText={this.onRegularMealChange.bind(this)}
        value={this.props.regularMeal}
      />

would like to do something like:

<View>
          <Text>{amount * this.props.regularMeal}</Text>
        </View>
      </View>

我的减速器有问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM