美文网首页
react native 设置登录验证码

react native 设置登录验证码

作者: OK2018 | 来源:发表于2018-06-04 15:53 被阅读0次
    constructor(props){
            super(props);
            this.state = {
                ucodeUri:SERVER+'/org/showimage.jsp?v='+Math.random(),
            }
        }
    
    
    
    <TouchableOpacity 
        onPress={this._handle.bind(this, 2)}
         style={{alignItems: 'center',}}>
         
          <Image style={{height:30, width:65}}
                 source={{uri:this.state.ucodeUri}}  resizeMode='contain'/>
      </TouchableOpacity>
    
      _handle(position){
    
          switch (position) {
            case 2:
              this.setState({
                ucodeUri:SERVER+'/org/showimage.jsp?v='+Math.random(),
              });
              break;
            default:
    
          }
    
        }
    
    
    

    相关文章

      网友评论

          本文标题:react native 设置登录验证码

          本文链接:https://www.haomeiwen.com/subject/vrlysftx.html