File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed
ios/ViewShotExample.xcodeproj Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 7777 <sourceFolder url =" file://$MODULE_DIR$/src/test/java" isTestSource =" true" />
7878 <sourceFolder url =" file://$MODULE_DIR$/src/test/rs" isTestSource =" true" />
7979 <sourceFolder url =" file://$MODULE_DIR$/src/test/shaders" isTestSource =" true" />
80+ <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/annotations" />
8081 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/blame" />
8182 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/bundles" />
83+ <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/classes" />
8284 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/incremental" />
85+ <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
86+ <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/jniLibs" />
8387 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/lint" />
8488 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/manifests" />
8589 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/res" />
8690 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/rs" />
8791 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/shaders" />
8892 <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/symbols" />
93+ <excludeFolder url =" file://$MODULE_DIR$/build/intermediates/transforms" />
8994 <excludeFolder url =" file://$MODULE_DIR$/build/outputs" />
95+ <excludeFolder url =" file://$MODULE_DIR$/build/tmp" />
9096 </content >
9197 <orderEntry type =" jdk" jdkName =" Android API 26 Platform" jdkType =" Android SDK" />
9298 <orderEntry type =" sourceFolder" forTests =" false" />
Original file line number Diff line number Diff line change @@ -53,9 +53,12 @@ export default class App extends Component {
5353 snapshotContentContainer : false
5454 }
5555 } ;
56-
56+
5757 snapshot = refname => ( ) =>
58- ( refname ? captureRef ( this . refs [ refname ] , this . state . value ) : captureScreen ( this . state . value ) )
58+ ( refname
59+ ? captureRef ( this . refs [ refname ] , this . state . value )
60+ : captureScreen ( this . state . value )
61+ )
5962 . then (
6063 res =>
6164 this . state . value . result !== "tmpfile"
@@ -149,7 +152,7 @@ export default class App extends Component {
149152 < Btn label = "📷 MapView" onPress = { this . snapshot ( "mapview" ) } />
150153 < Btn label = "📷 WebView" onPress = { this . snapshot ( "webview" ) } />
151154 < Btn label = "📷 Video" onPress = { this . snapshot ( "video" ) } />
152- < Btn label = "📷 Native Screenshot" onPress = { this . snapshot ( ) } />
155+ < Btn label = "📷 Native Screenshot" onPress = { this . snapshot ( ) } />
153156 < Btn
154157 label = "📷 Empty View (should crash)"
155158 onPress = { this . snapshot ( "empty" ) }
Original file line number Diff line number Diff line change 475475 name = Products;
476476 sourceTree = "<group>";
477477 };
478+ 34FEAEFB1F779AA000EAD7B5 /* Recovered References */ = {
479+ isa = PBXGroup;
480+ children = (
481+ 79F086C5FD034CB6AFA5417A /* libRCTVideo.a */,
482+ AD1B20B979EC412D9AD1D350 /* libRNSVG.a */,
483+ );
484+ name = "Recovered References";
485+ sourceTree = "<group>";
486+ };
478487 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
479488 isa = PBXGroup;
480489 children = (
531540 13B07FAE1A68108700A75B9A /* ViewShotExample */,
532541 832341AE1AAA6A7D00B99B32 /* Libraries */,
533542 83CBBA001A601CBA00E9B192 /* Products */,
543+ 34FEAEFB1F779AA000EAD7B5 /* Recovered References */,
534544 );
535545 indentWidth = 2;
536546 sourceTree = "<group>";
Original file line number Diff line number Diff line change 1515 "react-native" : " ^0.47.0" ,
1616 "react-native-maps" : " ^0.16.2" ,
1717 "react-native-svg" : " ^5.4.1" ,
18- "react-native-svg-uri" : " ^1.2.1 " ,
18+ "react-native-svg-uri" : " github:gre/react-native-svg-uri#onLoad " ,
1919 "react-native-video" : " ^2.0.0" ,
2020 "react-native-view-shot" : " file:.." ,
2121 "react-native-windows" : " ^0.47.0-rc.4"
You can’t perform that action at this time.
0 commit comments