Skip to content

Commit

Permalink
fix: onLoadEnd/onLoad cannot work on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jhihruei committed Jan 3, 2019
1 parent 25ff1d1 commit 6d9997f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Canvas = createReactClass({
automaticallyAdjustContentInsets={false}
scalesPageToFit={Platform.OS === 'android'}
contentInset={{top: 0, right: 0, bottom: 0, left: 0}}
source={{html: "<style>*{margin:0;padding:0;}canvas{transform:translateZ(0);}</style><canvas></canvas><script>var canvas = document.querySelector('canvas');(" + renderString + ").call(" + contextString + ", canvas);</script>"}}
source={{html: "<style>*{margin:0;padding:0;}canvas{transform:translateZ(0);}</style><canvas></canvas><script>var canvas = document.querySelector('canvas');(" + renderString + ").call(" + contextString + ", canvas);</script>", baseUrl: ''}}
opaque={false}
underlayColor={'transparent'}
style={this.props.style}
Expand Down

0 comments on commit 6d9997f

Please sign in to comment.