'use strict'; var React = require('react'); var { View, WebView } = require('react-native'); 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{transform:translateZ(0);}"}} opaque={false} underlayColor={'transparent'} javaScriptEnabled={true} scrollEnabled={false} /> ); } }); module.exports = Canvas;