From 57d376254990cdafe0bdae83f4f6c14547479ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E9=B9=8F=E7=BF=94?= Date: Mon, 20 Nov 2017 14:28:45 +0800 Subject: [PATCH 1/2] Update AgoraView.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新适应RN0.40+ --- AgoraView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AgoraView.js b/AgoraView.js index c94226314..33f901c1f 100644 --- a/AgoraView.js +++ b/AgoraView.js @@ -2,7 +2,8 @@ * Created by DB on 2017/6/23. */ -import React, {Component, PropTypes} from 'react' +import React, {Component} from 'react' +import PropTypes from 'prop-types' import { requireNativeComponent, View, @@ -27,4 +28,4 @@ AgoraView.propTypes = { // AgoraView.name = "AgoraView"; -const RCTAgoraView = requireNativeComponent("RCTAgoraView", AgoraView); \ No newline at end of file +const RCTAgoraView = requireNativeComponent("RCTAgoraView", AgoraView); From 22fd5803670dc268019ea21e7a4c6b91b3d0c593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E9=B9=8F=E7=BF=94?= Date: Fri, 1 Dec 2017 20:17:52 +0800 Subject: [PATCH 2/2] Update AgoraView.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 缺少了{} --- AgoraView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AgoraView.js b/AgoraView.js index 33f901c1f..3039a9b83 100644 --- a/AgoraView.js +++ b/AgoraView.js @@ -3,7 +3,7 @@ */ import React, {Component} from 'react' -import PropTypes from 'prop-types' +import {PropTypes} from 'prop-types' import { requireNativeComponent, View,