react-native-qrcode-svg 6.3.2 → 6.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/Example/.bundle/config +2 -0
  2. package/Example/.eslintrc.js +4 -0
  3. package/Example/.prettierrc.js +7 -0
  4. package/Example/.watchmanconfig +1 -0
  5. package/Example/Gemfile +9 -0
  6. package/Example/Gemfile.lock +103 -0
  7. package/Example/README.md +48 -0
  8. package/Example/__tests__/App.test.tsx +17 -0
  9. package/Example/android/app/build.gradle +119 -0
  10. package/Example/android/app/debug.keystore +0 -0
  11. package/Example/android/app/proguard-rules.pro +10 -0
  12. package/Example/android/app/src/debug/AndroidManifest.xml +9 -0
  13. package/Example/android/app/src/main/AndroidManifest.xml +25 -0
  14. package/Example/android/app/src/main/java/com/example/MainActivity.kt +22 -0
  15. package/Example/android/app/src/main/java/com/example/MainApplication.kt +45 -0
  16. package/Example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  17. package/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  18. package/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  19. package/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  20. package/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  21. package/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  22. package/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  23. package/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  24. package/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  25. package/Example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  26. package/Example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  27. package/Example/android/app/src/main/res/values/strings.xml +3 -0
  28. package/Example/android/app/src/main/res/values/styles.xml +9 -0
  29. package/Example/android/build.gradle +21 -0
  30. package/Example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  31. package/Example/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  32. package/Example/android/gradle.properties +41 -0
  33. package/Example/android/gradlew +249 -0
  34. package/Example/android/gradlew.bat +92 -0
  35. package/Example/android/settings.gradle +4 -0
  36. package/Example/app.json +4 -0
  37. package/Example/babel.config.js +4 -0
  38. package/Example/dist/index.html +24 -0
  39. package/Example/global.d.ts +7 -0
  40. package/Example/index.js +14 -0
  41. package/Example/ios/.xcode.env +11 -0
  42. package/Example/ios/Example/AppDelegate.h +6 -0
  43. package/Example/ios/Example/AppDelegate.mm +31 -0
  44. package/Example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  45. package/Example/ios/Example/Images.xcassets/Contents.json +6 -0
  46. package/Example/ios/Example/Info.plist +52 -0
  47. package/Example/ios/Example/LaunchScreen.storyboard +47 -0
  48. package/Example/ios/Example/main.m +10 -0
  49. package/Example/ios/Example.xcodeproj/project.pbxproj +698 -0
  50. package/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme +88 -0
  51. package/Example/ios/Example.xcworkspace/contents.xcworkspacedata +10 -0
  52. package/Example/ios/ExampleTests/ExampleTests.m +66 -0
  53. package/Example/ios/ExampleTests/Info.plist +24 -0
  54. package/Example/ios/Podfile +55 -0
  55. package/Example/ios/Podfile.lock +1378 -0
  56. package/Example/jest.config.js +3 -0
  57. package/Example/macos/.xcode.env +1 -0
  58. package/Example/macos/.xcode.env.local +2 -0
  59. package/Example/macos/Example-macOS/AppDelegate.h +6 -0
  60. package/Example/macos/Example-macOS/AppDelegate.mm +40 -0
  61. package/Example/macos/Example-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
  62. package/Example/macos/Example-macOS/Assets.xcassets/Contents.json +6 -0
  63. package/Example/macos/Example-macOS/Base.lproj/Main.storyboard +684 -0
  64. package/Example/macos/Example-macOS/Example.entitlements +12 -0
  65. package/Example/macos/Example-macOS/Info.plist +47 -0
  66. package/Example/macos/Example-macOS/main.m +5 -0
  67. package/Example/macos/Example.xcodeproj/project.pbxproj +567 -0
  68. package/Example/macos/Example.xcodeproj/xcshareddata/xcschemes/Example-macOS.xcscheme +78 -0
  69. package/Example/macos/Example.xcworkspace/contents.xcworkspacedata +10 -0
  70. package/Example/macos/Podfile +26 -0
  71. package/Example/macos/Podfile.lock +1233 -0
  72. package/Example/metro.config.js +47 -0
  73. package/Example/package.json +53 -0
  74. package/Example/src/App.tsx +130 -0
  75. package/Example/src/assets/google.png +0 -0
  76. package/Example/src/assets/ruby.svg +12 -0
  77. package/Example/src/components/Description.tsx +16 -0
  78. package/Example/src/styles.ts +21 -0
  79. package/Example/tsconfig.json +9 -0
  80. package/Example/webpack.config.js +60 -0
  81. package/Example/yarn.lock +8957 -0
  82. package/README.md +0 -6
  83. package/index.d.ts +10 -2
  84. package/package.json +11 -2
  85. package/src/LogoSVG/index.js +22 -0
  86. package/src/LogoSVG/index.native.js +24 -0
  87. package/src/index.js +158 -125
  88. package/src/utils.js +7 -0
  89. package/.github/workflows/npmpublish.yml +0 -31
  90. package/.huskyrc +0 -5
  91. package/.lintstagedrc +0 -3
@@ -0,0 +1,88 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "1210"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
+ BuildableName = "Example.app"
19
+ BlueprintName = "Example"
20
+ ReferencedContainer = "container:Example.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ buildConfiguration = "Debug"
27
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+ shouldUseLaunchSchemeArgsEnv = "YES">
30
+ <Testables>
31
+ <TestableReference
32
+ skipped = "NO">
33
+ <BuildableReference
34
+ BuildableIdentifier = "primary"
35
+ BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
+ BuildableName = "ExampleTests.xctest"
37
+ BlueprintName = "ExampleTests"
38
+ ReferencedContainer = "container:Example.xcodeproj">
39
+ </BuildableReference>
40
+ </TestableReference>
41
+ </Testables>
42
+ </TestAction>
43
+ <LaunchAction
44
+ buildConfiguration = "Debug"
45
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
+ launchStyle = "0"
48
+ useCustomWorkingDirectory = "NO"
49
+ ignoresPersistentStateOnLaunch = "NO"
50
+ debugDocumentVersioning = "YES"
51
+ debugServiceExtension = "internal"
52
+ allowLocationSimulation = "YES">
53
+ <BuildableProductRunnable
54
+ runnableDebuggingMode = "0">
55
+ <BuildableReference
56
+ BuildableIdentifier = "primary"
57
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
+ BuildableName = "Example.app"
59
+ BlueprintName = "Example"
60
+ ReferencedContainer = "container:Example.xcodeproj">
61
+ </BuildableReference>
62
+ </BuildableProductRunnable>
63
+ </LaunchAction>
64
+ <ProfileAction
65
+ buildConfiguration = "Release"
66
+ shouldUseLaunchSchemeArgsEnv = "YES"
67
+ savedToolIdentifier = ""
68
+ useCustomWorkingDirectory = "NO"
69
+ debugDocumentVersioning = "YES">
70
+ <BuildableProductRunnable
71
+ runnableDebuggingMode = "0">
72
+ <BuildableReference
73
+ BuildableIdentifier = "primary"
74
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
+ BuildableName = "Example.app"
76
+ BlueprintName = "Example"
77
+ ReferencedContainer = "container:Example.xcodeproj">
78
+ </BuildableReference>
79
+ </BuildableProductRunnable>
80
+ </ProfileAction>
81
+ <AnalyzeAction
82
+ buildConfiguration = "Debug">
83
+ </AnalyzeAction>
84
+ <ArchiveAction
85
+ buildConfiguration = "Release"
86
+ revealArchiveInOrganizer = "YES">
87
+ </ArchiveAction>
88
+ </Scheme>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "group:Example.xcodeproj">
6
+ </FileRef>
7
+ <FileRef
8
+ location = "group:Pods/Pods.xcodeproj">
9
+ </FileRef>
10
+ </Workspace>
@@ -0,0 +1,66 @@
1
+ #import <UIKit/UIKit.h>
2
+ #import <XCTest/XCTest.h>
3
+
4
+ #import <React/RCTLog.h>
5
+ #import <React/RCTRootView.h>
6
+
7
+ #define TIMEOUT_SECONDS 600
8
+ #define TEXT_TO_LOOK_FOR @"Welcome to React"
9
+
10
+ @interface ExampleTests : XCTestCase
11
+
12
+ @end
13
+
14
+ @implementation ExampleTests
15
+
16
+ - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
17
+ {
18
+ if (test(view)) {
19
+ return YES;
20
+ }
21
+ for (UIView *subview in [view subviews]) {
22
+ if ([self findSubviewInView:subview matching:test]) {
23
+ return YES;
24
+ }
25
+ }
26
+ return NO;
27
+ }
28
+
29
+ - (void)testRendersWelcomeScreen
30
+ {
31
+ UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32
+ NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33
+ BOOL foundElement = NO;
34
+
35
+ __block NSString *redboxError = nil;
36
+ #ifdef DEBUG
37
+ RCTSetLogFunction(
38
+ ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
39
+ if (level >= RCTLogLevelError) {
40
+ redboxError = message;
41
+ }
42
+ });
43
+ #endif
44
+
45
+ while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
46
+ [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47
+ [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
48
+
49
+ foundElement = [self findSubviewInView:vc.view
50
+ matching:^BOOL(UIView *view) {
51
+ if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
52
+ return YES;
53
+ }
54
+ return NO;
55
+ }];
56
+ }
57
+
58
+ #ifdef DEBUG
59
+ RCTSetLogFunction(RCTDefaultLogFunction);
60
+ #endif
61
+
62
+ XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
63
+ XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
64
+ }
65
+
66
+ @end
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>BNDL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>1</string>
23
+ </dict>
24
+ </plist>
@@ -0,0 +1,55 @@
1
+ # Resolve react_native_pods.rb with node to allow for hoisting
2
+ require Pod::Executable.execute_command('node', ['-p',
3
+ 'require.resolve(
4
+ "react-native/scripts/react_native_pods.rb",
5
+ {paths: [process.argv[1]]},
6
+ )', __dir__]).strip
7
+
8
+ platform :ios, min_ios_version_supported
9
+ prepare_react_native_project!
10
+
11
+ # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
12
+ # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
13
+ #
14
+ # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
15
+ # ```js
16
+ # module.exports = {
17
+ # dependencies: {
18
+ # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
19
+ # ```
20
+ flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
21
+
22
+ linkage = ENV['USE_FRAMEWORKS']
23
+ if linkage != nil
24
+ Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
25
+ use_frameworks! :linkage => linkage.to_sym
26
+ end
27
+
28
+ target 'Example' do
29
+ config = use_native_modules!
30
+
31
+ use_react_native!(
32
+ :path => config[:reactNativePath],
33
+ # Enables Flipper.
34
+ #
35
+ # Note that if you have use_frameworks! enabled, Flipper will not work and
36
+ # you should disable the next line.
37
+ :flipper_configuration => flipper_config,
38
+ # An absolute path to your application root.
39
+ :app_path => "#{Pod::Config.instance.installation_root}/.."
40
+ )
41
+
42
+ target 'ExampleTests' do
43
+ inherit! :complete
44
+ # Pods for testing
45
+ end
46
+
47
+ post_install do |installer|
48
+ # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
49
+ react_native_post_install(
50
+ installer,
51
+ config[:reactNativePath],
52
+ :mac_catalyst_enabled => false
53
+ )
54
+ end
55
+ end