Ingen beskrivning

AgoraView.js 527B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Created by DB on 2017/6/23.
  3. */
  4. import React, {Component, PropTypes} from 'react'
  5. import {
  6. requireNativeComponent,
  7. View
  8. } from 'react-native'
  9. export default class AgoraView extends Component {
  10. render() {
  11. return (
  12. <RCTAgoraView {...this.props}/>
  13. )
  14. }
  15. }
  16. AgoraView.propTypes = {
  17. localUid: PropTypes.number,
  18. remoteUid: PropTypes.number,
  19. ...View.propTypes
  20. };
  21. // AgoraView.name = "AgoraView";
  22. const RCTAgoraView = requireNativeComponent("RCTAgoraView", AgoraView);