taofed / react-web

A framework for building web apps with React Native compatible API.
Other
3.36k stars 448 forks source link

TouchableOpacity onPress no response #235

Open sduqlsc opened 7 years ago

sduqlsc commented 7 years ago

In the login page, clicking button without typing any words:

 <TouchableOpacity onPress={this._submitLogin.bind(this, false)}>
                            <View style={styles.loginBtn}>
                                <Text style={styles.loginTxt}>Login</Text>
                            </View>
                        </TouchableOpacity>

there is no response, or wait a long time to get the local validation message.

using chrome to check, in the console, image

image

Dev envrionment:

  "dependencies": {
    "color": "^0.11.3",
    "fetch-jsonp": "^1.0.2",
    "file-loader": "^0.9.0",
    "immutable": "^3.8.1",
    "lodash": "^4.16.2",
    "react": "^15.3.1",
    "react-date-range": "^0.2.4",
    "react-dom": "^15.3.1",
    "react-native": "^0.33.0",
    "react-native-loading-spinner-overlay": "^0.3.0",
    "react-redux": "^4.4.5",
    "react-static-container": "^1.0.1",
    "react-timer-mixin": "^0.13.3",
    "react-web": "git+https://github.com/taobaofed/react-web.git",
    "redux": "^3.6.0",
    "redux-persist": "^3.5.0",
    "redux-thunk": "^2.1.0",
    "remote-redux-devtools": "^0.4.8"
  },
91jason commented 7 years ago

+1+1+1

brainpoint commented 7 years ago

我看了master更新支持到 react15.4; 但是估计更新到15.4就会有这个问题,

91jason commented 7 years ago

我降级了就没问题

sduqlsc commented 7 years ago

@91jason react-web版本降级吗,如何降级?

cssivision commented 7 years ago

@91jason @sduqlsc 先回退到 15.3 版本, 15.4 还需要更多的测试

flyskywhy commented 7 years ago

@sduqlsc @cssivision @brainpoint @91jason , #227 fixed this issue

sduqlsc commented 7 years ago

@cssivision 只回退react版本,还是react-web也需要重新安装?

cssivision commented 7 years ago

@sduqlsc 重新安装

sduqlsc commented 7 years ago

@flyskywhy 感谢回复,运行后正常,感觉没问题: react-web": "git+https://github.com/flyskywhy/react-web.git"

@cssivision 删除node modules,执行 npm cache clear后执行 npm install,会重新出现 https://github.com/taobaofed/react-web/issues/234