React-native-windows: TextInput onChangeText

Created on 13 Sep 2017  ·  5Comments  ·  Source: microsoft/react-native-windows

Environment

  1. react-native -v:

react-native-cli: 2.0.1
react-native: 0.47.2

  1. npm ls rnpm-plugin-windows:

rnpm-plugin-windows@0.2.7

  1. npm ls react-native-windows:

react-native-windows@0.47.0-rc.5

  1. node -v:

v8.1.3

  1. npm -v:

5.0.3

  1. yarn --version:

0.27.5

Then, specify:

  • Target Platform: UWP

  • Target Platform Version(s):10.0.10586

  • Target Device(s):Desktop

Steps to Reproduce

Run the following code

<TextInput style={{width: 350, height: 50}} onChangeText={(text) => {console.log('TextInput onChange Run:', text)}} />

Expected Behavior

onChangeText must run when text is changed not on mounting component

Actual Behavior

If you run application , and never change the text , onChangeText is runned when component mounted , for Android and iOS it is okay

image

Reproducible Demo

N/A

All 5 comments

@sm2017 closing as a dupe of https://github.com/Microsoft/react-native-windows/issues/907, but will take a look this week.

@rozele Just for reminding

@rozele @kevinvangelder can we expect a bug fix soon?

@victorileaf This isn't currently a priority in the project I'm working on, but I may be able to see if I can reproduce the issue if I get any free time.

@rozele is this commit merged to the master?
i'm still able to reproduce this issue in "react-native-windows": "^0.50.0-rc.2"

Was this page helpful?
0 / 5 - 0 ratings