react-native-kenburns-view 4.1.0 → 5.0.0

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 (84) hide show
  1. package/README.md +48 -25
  2. package/example/kenburns-example/App.js +78 -0
  3. package/example/kenburns-example/README.md +32 -0
  4. package/example/kenburns-example/app.json +21 -0
  5. package/example/kenburns-example/babel.config.js +6 -0
  6. package/example/kenburns-example/ios/.xcode.env +11 -0
  7. package/example/kenburns-example/ios/KenBurnsExample/AppDelegate.h +7 -0
  8. package/example/kenburns-example/ios/KenBurnsExample/AppDelegate.mm +62 -0
  9. package/example/kenburns-example/ios/KenBurnsExample/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
  10. package/example/kenburns-example/ios/KenBurnsExample/Images.xcassets/AppIcon.appiconset/Contents.json +14 -0
  11. package/example/{KenBurnsExample/ios/KenBurnsExampleNew → kenburns-example/ios/KenBurnsExample}/Images.xcassets/Contents.json +1 -1
  12. package/example/kenburns-example/ios/KenBurnsExample/Images.xcassets/SplashScreenBackground.colorset/Contents.json +20 -0
  13. package/example/kenburns-example/ios/KenBurnsExample/Info.plist +74 -0
  14. package/example/kenburns-example/ios/KenBurnsExample/KenBurnsExample-Bridging-Header.h +3 -0
  15. package/example/kenburns-example/ios/KenBurnsExample/KenBurnsExample.entitlements +5 -0
  16. package/example/kenburns-example/ios/KenBurnsExample/PrivacyInfo.xcprivacy +37 -0
  17. package/example/kenburns-example/ios/KenBurnsExample/SplashScreen.storyboard +34 -0
  18. package/example/kenburns-example/ios/KenBurnsExample/Supporting/Expo.plist +12 -0
  19. package/example/{KenBurnsExample/ios/KenBurnsExampleNew → kenburns-example/ios/KenBurnsExample}/main.m +1 -7
  20. package/example/kenburns-example/ios/KenBurnsExample/noop-file.swift +4 -0
  21. package/example/kenburns-example/ios/KenBurnsExample.xcodeproj/project.pbxproj +536 -0
  22. package/example/{KenBurnsExample/ios/KenBurnsExampleNew.xcodeproj/xcshareddata/xcschemes/KenBurnsExampleNew.xcscheme → kenburns-example/ios/KenBurnsExample.xcodeproj/xcshareddata/xcschemes/KenBurnsExample.xcscheme} +14 -55
  23. package/example/kenburns-example/ios/KenBurnsExample.xcworkspace/contents.xcworkspacedata +10 -0
  24. package/example/kenburns-example/ios/Podfile +66 -0
  25. package/example/kenburns-example/ios/Podfile.lock +1828 -0
  26. package/example/kenburns-example/ios/Podfile.properties.json +5 -0
  27. package/example/kenburns-example/metro.config.js +17 -0
  28. package/example/kenburns-example/package-lock.json +10971 -0
  29. package/example/kenburns-example/package.json +21 -0
  30. package/lib/KenBurnsView.js +206 -106
  31. package/package.json +2 -5
  32. package/example/KenBurnsExample/.babelrc +0 -3
  33. package/example/KenBurnsExample/.buckconfig +0 -6
  34. package/example/KenBurnsExample/.flowconfig +0 -67
  35. package/example/KenBurnsExample/.gitattributes +0 -1
  36. package/example/KenBurnsExample/.snyk +0 -10
  37. package/example/KenBurnsExample/.watchmanconfig +0 -1
  38. package/example/KenBurnsExample/App.js +0 -64
  39. package/example/KenBurnsExample/android/app/BUCK +0 -65
  40. package/example/KenBurnsExample/android/app/build.gradle +0 -150
  41. package/example/KenBurnsExample/android/app/proguard-rules.pro +0 -17
  42. package/example/KenBurnsExample/android/app/src/main/AndroidManifest.xml +0 -26
  43. package/example/KenBurnsExample/android/app/src/main/java/com/kenburnsexamplenew/MainActivity.java +0 -15
  44. package/example/KenBurnsExample/android/app/src/main/java/com/kenburnsexamplenew/MainApplication.java +0 -45
  45. package/example/KenBurnsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  46. package/example/KenBurnsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  47. package/example/KenBurnsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  48. package/example/KenBurnsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  49. package/example/KenBurnsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  50. package/example/KenBurnsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  51. package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  52. package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  53. package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  54. package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  55. package/example/KenBurnsExample/android/app/src/main/res/values/strings.xml +0 -3
  56. package/example/KenBurnsExample/android/app/src/main/res/values/styles.xml +0 -8
  57. package/example/KenBurnsExample/android/build.gradle +0 -40
  58. package/example/KenBurnsExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  59. package/example/KenBurnsExample/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  60. package/example/KenBurnsExample/android/gradle.properties +0 -20
  61. package/example/KenBurnsExample/android/gradlew +0 -164
  62. package/example/KenBurnsExample/android/gradlew.bat +0 -90
  63. package/example/KenBurnsExample/android/keystores/BUCK +0 -8
  64. package/example/KenBurnsExample/android/keystores/debug.keystore.properties +0 -4
  65. package/example/KenBurnsExample/android/settings.gradle +0 -3
  66. package/example/KenBurnsExample/app.json +0 -4
  67. package/example/KenBurnsExample/index.js +0 -7
  68. package/example/KenBurnsExample/ios/KenBurnsExampleNew/AppDelegate.h +0 -14
  69. package/example/KenBurnsExample/ios/KenBurnsExampleNew/AppDelegate.m +0 -35
  70. package/example/KenBurnsExample/ios/KenBurnsExampleNew/Base.lproj/LaunchScreen.xib +0 -42
  71. package/example/KenBurnsExample/ios/KenBurnsExampleNew/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  72. package/example/KenBurnsExample/ios/KenBurnsExampleNew/Info.plist +0 -56
  73. package/example/KenBurnsExample/ios/KenBurnsExampleNew-tvOS/Info.plist +0 -54
  74. package/example/KenBurnsExample/ios/KenBurnsExampleNew-tvOSTests/Info.plist +0 -24
  75. package/example/KenBurnsExample/ios/KenBurnsExampleNew.xcodeproj/project.pbxproj +0 -1468
  76. package/example/KenBurnsExample/ios/KenBurnsExampleNew.xcodeproj/xcshareddata/xcschemes/KenBurnsExampleNew-tvOS.xcscheme +0 -129
  77. package/example/KenBurnsExample/ios/KenBurnsExampleNewTests/Info.plist +0 -24
  78. package/example/KenBurnsExample/ios/KenBurnsExampleNewTests/KenBurnsExampleNewTests.m +0 -68
  79. package/example/KenBurnsExample/package.json +0 -27
  80. package/yarn.lock +0 -114
  81. /package/example/{KenBurnsExample → kenburns-example/assets}/images/image1.jpg +0 -0
  82. /package/example/{KenBurnsExample → kenburns-example/assets}/images/image2.jpg +0 -0
  83. /package/example/{KenBurnsExample → kenburns-example/assets}/images/image3.jpg +0 -0
  84. /package/example/{KenBurnsExample → kenburns-example/assets}/images/placeholder.jpg +0 -0
@@ -1,35 +0,0 @@
1
- /**
2
- * Copyright (c) 2015-present, Facebook, Inc.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import "AppDelegate.h"
9
-
10
- #import <React/RCTBundleURLProvider.h>
11
- #import <React/RCTRootView.h>
12
-
13
- @implementation AppDelegate
14
-
15
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
16
- {
17
- NSURL *jsCodeLocation;
18
-
19
- jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
20
-
21
- RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
22
- moduleName:@"KenBurnsExampleNew"
23
- initialProperties:nil
24
- launchOptions:launchOptions];
25
- rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
26
-
27
- self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
28
- UIViewController *rootViewController = [UIViewController new];
29
- rootViewController.view = rootView;
30
- self.window.rootViewController = rootViewController;
31
- [self.window makeKeyAndVisible];
32
- return YES;
33
- }
34
-
35
- @end
@@ -1,42 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
3
- <dependencies>
4
- <deployment identifier="iOS"/>
5
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
6
- <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
7
- </dependencies>
8
- <objects>
9
- <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
- <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
- <view contentMode="scaleToFill" id="iN0-l3-epB">
12
- <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
13
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
14
- <subviews>
15
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
16
- <rect key="frame" x="20" y="439" width="441" height="21"/>
17
- <fontDescription key="fontDescription" type="system" pointSize="17"/>
18
- <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
19
- <nil key="highlightedColor"/>
20
- </label>
21
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="KenBurnsExampleNew" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
22
- <rect key="frame" x="20" y="140" width="441" height="43"/>
23
- <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
24
- <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
25
- <nil key="highlightedColor"/>
26
- </label>
27
- </subviews>
28
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
29
- <constraints>
30
- <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
31
- <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
32
- <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
33
- <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
34
- <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
35
- <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
36
- </constraints>
37
- <nil key="simulatedStatusBarMetrics"/>
38
- <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
39
- <point key="canvasLocation" x="548" y="455"/>
40
- </view>
41
- </objects>
42
- </document>
@@ -1,38 +0,0 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "size" : "29x29",
6
- "scale" : "2x"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "size" : "29x29",
11
- "scale" : "3x"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "size" : "40x40",
16
- "scale" : "2x"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "size" : "40x40",
21
- "scale" : "3x"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "size" : "60x60",
26
- "scale" : "2x"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "size" : "60x60",
31
- "scale" : "3x"
32
- }
33
- ],
34
- "info" : {
35
- "version" : 1,
36
- "author" : "xcode"
37
- }
38
- }
@@ -1,56 +0,0 @@
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>CFBundleDisplayName</key>
8
- <string>KenBurnsExampleNew</string>
9
- <key>CFBundleExecutable</key>
10
- <string>$(EXECUTABLE_NAME)</string>
11
- <key>CFBundleIdentifier</key>
12
- <string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
13
- <key>CFBundleInfoDictionaryVersion</key>
14
- <string>6.0</string>
15
- <key>CFBundleName</key>
16
- <string>$(PRODUCT_NAME)</string>
17
- <key>CFBundlePackageType</key>
18
- <string>APPL</string>
19
- <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
21
- <key>CFBundleSignature</key>
22
- <string>????</string>
23
- <key>CFBundleVersion</key>
24
- <string>1</string>
25
- <key>LSRequiresIPhoneOS</key>
26
- <true/>
27
- <key>UILaunchStoryboardName</key>
28
- <string>LaunchScreen</string>
29
- <key>UIRequiredDeviceCapabilities</key>
30
- <array>
31
- <string>armv7</string>
32
- </array>
33
- <key>UISupportedInterfaceOrientations</key>
34
- <array>
35
- <string>UIInterfaceOrientationPortrait</string>
36
- <string>UIInterfaceOrientationLandscapeLeft</string>
37
- <string>UIInterfaceOrientationLandscapeRight</string>
38
- </array>
39
- <key>UIViewControllerBasedStatusBarAppearance</key>
40
- <false/>
41
- <key>NSLocationWhenInUseUsageDescription</key>
42
- <string></string>
43
- <key>NSAppTransportSecurity</key>
44
- <!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
45
- <dict>
46
- <key>NSExceptionDomains</key>
47
- <dict>
48
- <key>localhost</key>
49
- <dict>
50
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
51
- <true/>
52
- </dict>
53
- </dict>
54
- </dict>
55
- </dict>
56
- </plist>
@@ -1,54 +0,0 @@
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>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</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>APPL</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
- <key>LSRequiresIPhoneOS</key>
24
- <true/>
25
- <key>UILaunchStoryboardName</key>
26
- <string>LaunchScreen</string>
27
- <key>UIRequiredDeviceCapabilities</key>
28
- <array>
29
- <string>armv7</string>
30
- </array>
31
- <key>UISupportedInterfaceOrientations</key>
32
- <array>
33
- <string>UIInterfaceOrientationPortrait</string>
34
- <string>UIInterfaceOrientationLandscapeLeft</string>
35
- <string>UIInterfaceOrientationLandscapeRight</string>
36
- </array>
37
- <key>UIViewControllerBasedStatusBarAppearance</key>
38
- <false/>
39
- <key>NSLocationWhenInUseUsageDescription</key>
40
- <string></string>
41
- <key>NSAppTransportSecurity</key>
42
- <!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
43
- <dict>
44
- <key>NSExceptionDomains</key>
45
- <dict>
46
- <key>localhost</key>
47
- <dict>
48
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
49
- <true/>
50
- </dict>
51
- </dict>
52
- </dict>
53
- </dict>
54
- </plist>
@@ -1,24 +0,0 @@
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>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</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>