'use strict'; var React = require('react'); var PropTypes = require('prop-types'); var createReactClass = require('create-react-class'); var { View, WebView } = require('react-native'); var Canvas = createReactClass({ propTypes: { style: PropTypes.object, context: PropTypes.object, render: 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'} style={this.props.style} javaScriptEnabled={true} scrollEnabled={false} /> ); } }); module.exports = Canvas;