react-native-kenburns-view 4.1.0 → 5.1.1
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.
- package/README.md +58 -23
- package/example/kenburns-example/App.js +78 -0
- package/example/kenburns-example/README.md +20 -0
- package/example/kenburns-example/app.json +21 -0
- package/example/kenburns-example/babel.config.js +6 -0
- package/example/kenburns-example/ios/.xcode.env +11 -0
- package/example/kenburns-example/ios/KenBurnsExample/AppDelegate.swift +69 -0
- package/example/kenburns-example/ios/KenBurnsExample/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
- package/example/kenburns-example/ios/KenBurnsExample/Images.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/example/{KenBurnsExample/ios/KenBurnsExampleNew → kenburns-example/ios/KenBurnsExample}/Images.xcassets/Contents.json +1 -1
- package/example/kenburns-example/ios/KenBurnsExample/Images.xcassets/SplashScreenBackground.colorset/Contents.json +20 -0
- package/example/{KenBurnsExample/ios/KenBurnsExampleNew → kenburns-example/ios/KenBurnsExample}/Info.plist +41 -21
- package/example/kenburns-example/ios/KenBurnsExample/KenBurnsExample-Bridging-Header.h +3 -0
- package/example/kenburns-example/ios/KenBurnsExample/KenBurnsExample.entitlements +5 -0
- package/example/kenburns-example/ios/KenBurnsExample/PrivacyInfo.xcprivacy +48 -0
- package/example/kenburns-example/ios/KenBurnsExample/SplashScreen.storyboard +39 -0
- package/example/kenburns-example/ios/KenBurnsExample/Supporting/Expo.plist +12 -0
- package/example/kenburns-example/ios/KenBurnsExample.xcodeproj/project.pbxproj +544 -0
- package/example/{KenBurnsExample/ios/KenBurnsExampleNew.xcodeproj/xcshareddata/xcschemes/KenBurnsExampleNew.xcscheme → kenburns-example/ios/KenBurnsExample.xcodeproj/xcshareddata/xcschemes/KenBurnsExample.xcscheme} +14 -55
- package/example/kenburns-example/ios/KenBurnsExample.xcworkspace/contents.xcworkspacedata +10 -0
- package/example/kenburns-example/ios/Podfile +63 -0
- package/example/kenburns-example/ios/Podfile.lock +2195 -0
- package/example/kenburns-example/ios/Podfile.properties.json +4 -0
- package/example/kenburns-example/metro.config.js +20 -0
- package/example/kenburns-example/package-lock.json +7160 -0
- package/example/kenburns-example/package.json +25 -0
- package/lib/KenBurnsView.js +206 -106
- package/package.json +2 -5
- package/example/KenBurnsExample/.babelrc +0 -3
- package/example/KenBurnsExample/.buckconfig +0 -6
- package/example/KenBurnsExample/.flowconfig +0 -67
- package/example/KenBurnsExample/.gitattributes +0 -1
- package/example/KenBurnsExample/.snyk +0 -10
- package/example/KenBurnsExample/.watchmanconfig +0 -1
- package/example/KenBurnsExample/App.js +0 -64
- package/example/KenBurnsExample/android/app/BUCK +0 -65
- package/example/KenBurnsExample/android/app/build.gradle +0 -150
- package/example/KenBurnsExample/android/app/proguard-rules.pro +0 -17
- package/example/KenBurnsExample/android/app/src/main/AndroidManifest.xml +0 -26
- package/example/KenBurnsExample/android/app/src/main/java/com/kenburnsexamplenew/MainActivity.java +0 -15
- package/example/KenBurnsExample/android/app/src/main/java/com/kenburnsexamplenew/MainApplication.java +0 -45
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/KenBurnsExample/android/app/src/main/res/values/strings.xml +0 -3
- package/example/KenBurnsExample/android/app/src/main/res/values/styles.xml +0 -8
- package/example/KenBurnsExample/android/build.gradle +0 -40
- package/example/KenBurnsExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/KenBurnsExample/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/example/KenBurnsExample/android/gradle.properties +0 -20
- package/example/KenBurnsExample/android/gradlew +0 -164
- package/example/KenBurnsExample/android/gradlew.bat +0 -90
- package/example/KenBurnsExample/android/keystores/BUCK +0 -8
- package/example/KenBurnsExample/android/keystores/debug.keystore.properties +0 -4
- package/example/KenBurnsExample/android/settings.gradle +0 -3
- package/example/KenBurnsExample/app.json +0 -4
- package/example/KenBurnsExample/images/image1.jpg +0 -0
- package/example/KenBurnsExample/images/image2.jpg +0 -0
- package/example/KenBurnsExample/images/image3.jpg +0 -0
- package/example/KenBurnsExample/images/placeholder.jpg +0 -0
- package/example/KenBurnsExample/index.js +0 -7
- package/example/KenBurnsExample/ios/KenBurnsExampleNew/AppDelegate.h +0 -14
- package/example/KenBurnsExample/ios/KenBurnsExampleNew/AppDelegate.m +0 -35
- package/example/KenBurnsExample/ios/KenBurnsExampleNew/Base.lproj/LaunchScreen.xib +0 -42
- package/example/KenBurnsExample/ios/KenBurnsExampleNew/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- package/example/KenBurnsExample/ios/KenBurnsExampleNew/main.m +0 -16
- package/example/KenBurnsExample/ios/KenBurnsExampleNew-tvOS/Info.plist +0 -54
- package/example/KenBurnsExample/ios/KenBurnsExampleNew-tvOSTests/Info.plist +0 -24
- package/example/KenBurnsExample/ios/KenBurnsExampleNew.xcodeproj/project.pbxproj +0 -1468
- package/example/KenBurnsExample/ios/KenBurnsExampleNew.xcodeproj/xcshareddata/xcschemes/KenBurnsExampleNew-tvOS.xcscheme +0 -129
- package/example/KenBurnsExample/ios/KenBurnsExampleNewTests/Info.plist +0 -24
- package/example/KenBurnsExample/ios/KenBurnsExampleNewTests/KenBurnsExampleNewTests.m +0 -68
- package/example/KenBurnsExample/package.json +0 -27
- package/yarn.lock +0 -114
|
@@ -1,14 +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 <UIKit/UIKit.h>
|
|
9
|
-
|
|
10
|
-
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
|
11
|
-
|
|
12
|
-
@property (nonatomic, strong) UIWindow *window;
|
|
13
|
-
|
|
14
|
-
@end
|
|
@@ -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,16 +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 <UIKit/UIKit.h>
|
|
9
|
-
|
|
10
|
-
#import "AppDelegate.h"
|
|
11
|
-
|
|
12
|
-
int main(int argc, char * argv[]) {
|
|
13
|
-
@autoreleasepool {
|
|
14
|
-
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -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>
|