Navigation

    论坛 - React Native中文社区

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Search
    1. Home
    2. TMoonY
    T
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    TMoonY

    @TMoonY

    0
    Reputation
    1
    Posts
    326
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    TMoonY Follow

    Best posts made by TMoonY

    This user hasn't posted anything yet.

    Latest posts made by TMoonY

    • Android平台混合开发中原生代码到React Native通信中接受消息的问题。

      Android平台混合开发中原生代码到React Native通信中
      componentDidMount() {
      DeviceEventEmitter.addListener('finishedPay',function(event){
      this._updateHeadPhoto();//这个函数这里调用会崩溃
      var success = event.success;
      if(success){
      }else{
      alert(event.errCode);
      ToastAndroid.show('支付失败',ToastAndroid.SHORT);
      }
      });
      }
      函数是定义在这里的
      _updateHeadPhoto(){
      }
      constructor() {
      super();

      }

      这个 _updateHeadPhoto()调用会出现崩溃..

      posted in 求助专区
      T
      TMoonY