Skip to content

Commit fa22f0b

Browse files
author
Michaël Villeneuve
committed
Fix issues with example project
1 parent c65c7e5 commit fa22f0b

File tree

7 files changed

+5741
-13
lines changed

7 files changed

+5741
-13
lines changed

Example/index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class Example extends Component {
4343
{this.state.image ?
4444
<Image style={{ flex: 1, width: 300, height: 200 }} source={{ uri: `data:image/jpeg;base64,${this.state.image}`}} resizeMode="contain" /> :
4545
<Scanner
46-
onPictureTaken={data => this.setState({ image: data.image })}
46+
onPictureTaken={data => this.setState({ image: data.croppedImage })}
4747
overlayColor="rgba(255,130,0, 0.7)"
4848
enableTorch={this.state.flashEnabled}
4949
brightness={0.2}

Example/ios/Example.xcodeproj/project.pbxproj

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@
504504
832341AE1AAA6A7D00B99B32 /* Libraries */,
505505
00E356EF1AD99517003FC87E /* ExampleTests */,
506506
83CBBA001A601CBA00E9B192 /* Products */,
507+
D20D56781F83633D00B09EE5 /* Recovered References */,
507508
);
508509
indentWidth = 2;
509510
sourceTree = "<group>";
@@ -520,6 +521,14 @@
520521
name = Products;
521522
sourceTree = "<group>";
522523
};
524+
D20D56781F83633D00B09EE5 /* Recovered References */ = {
525+
isa = PBXGroup;
526+
children = (
527+
3DF46239F8CB42A8B21CDBAC /* libRNPdfScanner.a */,
528+
);
529+
name = "Recovered References";
530+
sourceTree = "<group>";
531+
};
523532
D2D661061F1F336E0008DBCE /* Products */ = {
524533
isa = PBXGroup;
525534
children = (
@@ -622,11 +631,11 @@
622631
TargetAttributes = {
623632
00E356ED1AD99517003FC87E = {
624633
CreatedOnToolsVersion = 6.2;
625-
DevelopmentTeam = MU9D66FNS8;
634+
DevelopmentTeam = G2NJHPDYHV;
626635
TestTargetID = 13B07F861A680F5B00A75B9A;
627636
};
628637
13B07F861A680F5B00A75B9A = {
629-
DevelopmentTeam = MU9D66FNS8;
638+
DevelopmentTeam = G2NJHPDYHV;
630639
};
631640
2D02E47A1E0B4A5D006451C7 = {
632641
CreatedOnToolsVersion = 8.2.1;
@@ -1054,7 +1063,7 @@
10541063
isa = XCBuildConfiguration;
10551064
buildSettings = {
10561065
BUNDLE_LOADER = "$(TEST_HOST)";
1057-
DEVELOPMENT_TEAM = MU9D66FNS8;
1066+
DEVELOPMENT_TEAM = G2NJHPDYHV;
10581067
GCC_PREPROCESSOR_DEFINITIONS = (
10591068
"DEBUG=1",
10601069
"$(inherited)",
@@ -1084,7 +1093,7 @@
10841093
buildSettings = {
10851094
BUNDLE_LOADER = "$(TEST_HOST)";
10861095
COPY_PHASE_STRIP = NO;
1087-
DEVELOPMENT_TEAM = MU9D66FNS8;
1096+
DEVELOPMENT_TEAM = G2NJHPDYHV;
10881097
HEADER_SEARCH_PATHS = (
10891098
"$(inherited)",
10901099
"$(SRCROOT)/../node_modules/react-native-pdf-scanner/ios/**",
@@ -1111,7 +1120,7 @@
11111120
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
11121121
CURRENT_PROJECT_VERSION = 1;
11131122
DEAD_CODE_STRIPPING = NO;
1114-
DEVELOPMENT_TEAM = MU9D66FNS8;
1123+
DEVELOPMENT_TEAM = G2NJHPDYHV;
11151124
HEADER_SEARCH_PATHS = (
11161125
"$(inherited)",
11171126
"$(SRCROOT)/../node_modules/react-native-pdf-scanner/ios/**",
@@ -1134,7 +1143,7 @@
11341143
buildSettings = {
11351144
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
11361145
CURRENT_PROJECT_VERSION = 1;
1137-
DEVELOPMENT_TEAM = MU9D66FNS8;
1146+
DEVELOPMENT_TEAM = G2NJHPDYHV;
11381147
HEADER_SEARCH_PATHS = (
11391148
"$(inherited)",
11401149
"$(SRCROOT)/../node_modules/react-native-pdf-scanner/ios/**",

Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
buildConfiguration = "Debug"
5555
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5656
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57+
language = ""
5758
shouldUseLaunchSchemeArgsEnv = "YES">
5859
<Testables>
5960
<TestableReference
@@ -80,9 +81,10 @@
8081
</AdditionalOptions>
8182
</TestAction>
8283
<LaunchAction
83-
buildConfiguration = "Release"
84+
buildConfiguration = "Debug"
8485
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
8586
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
87+
language = ""
8688
launchStyle = "0"
8789
useCustomWorkingDirectory = "NO"
8890
ignoresPersistentStateOnLaunch = "NO"

0 commit comments

Comments
 (0)