'use strict'; var React = require('react-native'); var { View, WebView } = React; var Canvas = React.createClass({ propTypes: { style: React.PropTypes.object, context: React.PropTypes.object, render: React.PropTypes.func.isRequired }, render() { var contextString = JSON.stringify(this.props.context); var renderString = this.props.render.toString(); return ( *{margin:0;padding:0;}canvas{position:absolute;transform:translateZ(0);}"} opaque={false} underlayColor={'transparent'} style={this.props.style} /> ); } }); module.exports = Canvas;