Browse Source

Merge pull request #10 from xuepx/master

Update AgoraView.js
少言 7 years ago
parent
commit
acff3c7325
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      AgoraView.js

+ 3
- 2
AgoraView.js View File

@@ -2,7 +2,8 @@
2 2
  * Created by DB on 2017/6/23.
3 3
  */
4 4
 
5
-import  React, {Component, PropTypes} from 'react'
5
+import  React, {Component} from 'react'
6
+import {PropTypes} from 'prop-types'
6 7
 import {
7 8
     requireNativeComponent,
8 9
     View,
@@ -27,4 +28,4 @@ AgoraView.propTypes = {
27 28
 
28 29
 // AgoraView.name = "AgoraView";
29 30
 
30
-const RCTAgoraView = requireNativeComponent("RCTAgoraView", AgoraView);
31
+const RCTAgoraView = requireNativeComponent("RCTAgoraView", AgoraView);