File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ getInitialState() {
405405takeSnapshot () {
406406 // 'takeSnapshot' takes a config object with the
407407 // following options
408- const snapshot = this .refs . map .takeSnapshot ({
408+ const snapshot = this .map .takeSnapshot ({
409409 width: 300 , // optional, when omitted the view-width is used
410410 height: 300 , // optional, when omitted the view-height is used
411411 region: {..}, // iOS only, optional region to render
@@ -421,7 +421,7 @@ takeSnapshot () {
421421render () {
422422 return (
423423 < View>
424- < MapView initialRegion= {... } ref= " map" >
424+ < MapView initialRegion= {... } ref= { map => { this . map = map }} >
425425 < MapView .Marker coordinate= {this .state .coordinate } / >
426426 < / MapView>
427427 < Image source= {{ uri: this .state .mapSnapshot .uri }} / >
You can’t perform that action at this time.
0 commit comments