File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ var Canvas = createReactClass({
1414 propTypes : {
1515 style : PropTypes . object ,
1616 context : PropTypes . object ,
17- render : PropTypes . func . isRequired
17+ render : PropTypes . func . isRequired ,
18+ onLoad : PropTypes . func ,
19+ onLoadEnd : PropTypes . func ,
1820 } ,
1921
2022 render ( ) {
@@ -32,6 +34,8 @@ var Canvas = createReactClass({
3234 style = { this . props . style }
3335 javaScriptEnabled = { true }
3436 scrollEnabled = { false }
37+ onLoad = { this . props . onLoad }
38+ onLoadEnd = { this . props . onLoadEnd }
3539 />
3640 </ View >
3741 ) ;
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ var QRCode = createReactClass({
5353 size : PropTypes . number ,
5454 bgColor : PropTypes . string ,
5555 fgColor : PropTypes . string ,
56+ onLoad : PropTypes . func ,
57+ onLoadEnd : PropTypes . func ,
5658 } ,
5759
5860 getDefaultProps : function ( ) {
@@ -61,6 +63,8 @@ var QRCode = createReactClass({
6163 fgColor : 'white' ,
6264 bgColor : 'black' ,
6365 size : 128 ,
66+ onLoad : ( ) => { } ,
67+ onLoadEnd : ( ) => { } ,
6468 }
6569 } ,
6670
@@ -98,6 +102,8 @@ var QRCode = createReactClass({
98102 cells : qr ( value ) . modules ,
99103 } }
100104 render = { renderCanvas }
105+ onLoad = { this . props . onLoad }
106+ onLoadEnd = { this . props . onLoadEnd }
101107 style = { { height : size , width : size } }
102108 />
103109 </ View >
You can’t perform that action at this time.
0 commit comments