mirror of
https://github.com/alibaba/GCanvas.git
synced 2025-12-08 17:36:42 +00:00
19 lines
498 B
JavaScript
19 lines
498 B
JavaScript
import React, { Component, PropTypes } from 'react';
|
|
import { requireNativeComponent, View, Platform, findNodeHandle } from 'react-native';
|
|
|
|
var CanvasView = Platform.select({
|
|
ios: requireNativeComponent('RCTGCanvasView', null),
|
|
android: requireNativeComponent('GCanvasView', null)
|
|
});
|
|
|
|
export default class GCanvasView extends Component {
|
|
static propTypes = {
|
|
// isOffscreen: PropTypes.bool,
|
|
...View.propTypes
|
|
};
|
|
|
|
render() {
|
|
return ( <CanvasView {...this.props} /> );
|
|
};
|
|
}
|