rn-native-wrapper 1.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.
- package/LICENSE +21 -0
- package/README.md +83 -0
- package/ios/.xcode.env +11 -0
- package/ios/Podfile +63 -0
- package/ios/Podfile.lock +2126 -0
- package/ios/Podfile.properties.json +5 -0
- package/ios/rnnativewrapper/AppDelegate.swift +70 -0
- package/ios/rnnativewrapper/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
- package/ios/rnnativewrapper/Images.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/ios/rnnativewrapper/Images.xcassets/Contents.json +6 -0
- package/ios/rnnativewrapper/Images.xcassets/SplashScreenBackground.colorset/Contents.json +20 -0
- package/ios/rnnativewrapper/Info.plist +77 -0
- package/ios/rnnativewrapper/PrivacyInfo.xcprivacy +48 -0
- package/ios/rnnativewrapper/SplashScreen.storyboard +39 -0
- package/ios/rnnativewrapper/Supporting/Expo.plist +12 -0
- package/ios/rnnativewrapper/rnnativewrapper-Bridging-Header.h +3 -0
- package/ios/rnnativewrapper/rnnativewrapper.entitlements +5 -0
- package/ios/rnnativewrapper.xcodeproj/project.pbxproj +540 -0
- package/ios/rnnativewrapper.xcodeproj/xcshareddata/xcschemes/rnnativewrapper.xcscheme +88 -0
- package/ios/rnnativewrapper.xcworkspace/contents.xcworkspacedata +10 -0
- package/lib/components/RNNativeDatePicker.d.ts +5 -0
- package/lib/components/RNNativeDatePicker.d.ts.map +1 -0
- package/lib/components/RNNativeDatePicker.js +11 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/package.json +72 -0
- package/src/components/RNNativeDatePicker.tsx +12 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import Expo
|
|
2
|
+
import React
|
|
3
|
+
import ReactAppDependencyProvider
|
|
4
|
+
|
|
5
|
+
@UIApplicationMain
|
|
6
|
+
public class AppDelegate: ExpoAppDelegate {
|
|
7
|
+
var window: UIWindow?
|
|
8
|
+
|
|
9
|
+
var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
|
|
10
|
+
var reactNativeFactory: RCTReactNativeFactory?
|
|
11
|
+
|
|
12
|
+
public override func application(
|
|
13
|
+
_ application: UIApplication,
|
|
14
|
+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
|
15
|
+
) -> Bool {
|
|
16
|
+
let delegate = ReactNativeDelegate()
|
|
17
|
+
let factory = ExpoReactNativeFactory(delegate: delegate)
|
|
18
|
+
delegate.dependencyProvider = RCTAppDependencyProvider()
|
|
19
|
+
|
|
20
|
+
reactNativeDelegate = delegate
|
|
21
|
+
reactNativeFactory = factory
|
|
22
|
+
bindReactNativeFactory(factory)
|
|
23
|
+
|
|
24
|
+
#if os(iOS) || os(tvOS)
|
|
25
|
+
window = UIWindow(frame: UIScreen.main.bounds)
|
|
26
|
+
factory.startReactNative(
|
|
27
|
+
withModuleName: "main",
|
|
28
|
+
in: window,
|
|
29
|
+
launchOptions: launchOptions)
|
|
30
|
+
#endif
|
|
31
|
+
|
|
32
|
+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Linking API
|
|
36
|
+
public override func application(
|
|
37
|
+
_ app: UIApplication,
|
|
38
|
+
open url: URL,
|
|
39
|
+
options: [UIApplication.OpenURLOptionsKey: Any] = [:]
|
|
40
|
+
) -> Bool {
|
|
41
|
+
return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Universal Links
|
|
45
|
+
public override func application(
|
|
46
|
+
_ application: UIApplication,
|
|
47
|
+
continue userActivity: NSUserActivity,
|
|
48
|
+
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
|
|
49
|
+
) -> Bool {
|
|
50
|
+
let result = RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
|
|
51
|
+
return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
|
|
56
|
+
// Extension point for config-plugins
|
|
57
|
+
|
|
58
|
+
override func sourceURL(for bridge: RCTBridge) -> URL? {
|
|
59
|
+
// needed to return the correct URL for expo-dev-client.
|
|
60
|
+
bridge.bundleURL ?? bundleURL()
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
override func bundleURL() -> URL? {
|
|
64
|
+
#if DEBUG
|
|
65
|
+
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
|
|
66
|
+
#else
|
|
67
|
+
return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
|
|
68
|
+
#endif
|
|
69
|
+
}
|
|
70
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"components": {
|
|
6
|
+
"alpha": "1.000",
|
|
7
|
+
"blue": "1.00000000000000",
|
|
8
|
+
"green": "1.00000000000000",
|
|
9
|
+
"red": "1.00000000000000"
|
|
10
|
+
},
|
|
11
|
+
"color-space": "srgb"
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"info": {
|
|
17
|
+
"version": 1,
|
|
18
|
+
"author": "expo"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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>CADisableMinimumFrameDurationOnPhone</key>
|
|
6
|
+
<true/>
|
|
7
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
8
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
9
|
+
<key>CFBundleDisplayName</key>
|
|
10
|
+
<string>rn-native-wrapper</string>
|
|
11
|
+
<key>CFBundleExecutable</key>
|
|
12
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
13
|
+
<key>CFBundleIdentifier</key>
|
|
14
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
15
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
16
|
+
<string>6.0</string>
|
|
17
|
+
<key>CFBundleName</key>
|
|
18
|
+
<string>$(PRODUCT_NAME)</string>
|
|
19
|
+
<key>CFBundlePackageType</key>
|
|
20
|
+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
|
21
|
+
<key>CFBundleShortVersionString</key>
|
|
22
|
+
<string>1.0.0</string>
|
|
23
|
+
<key>CFBundleSignature</key>
|
|
24
|
+
<string>????</string>
|
|
25
|
+
<key>CFBundleURLTypes</key>
|
|
26
|
+
<array>
|
|
27
|
+
<dict>
|
|
28
|
+
<key>CFBundleURLSchemes</key>
|
|
29
|
+
<array>
|
|
30
|
+
<string>rnnativewrapper</string>
|
|
31
|
+
<string>com.darshanmri.rn-native-wrapper</string>
|
|
32
|
+
</array>
|
|
33
|
+
</dict>
|
|
34
|
+
</array>
|
|
35
|
+
<key>CFBundleVersion</key>
|
|
36
|
+
<string>1</string>
|
|
37
|
+
<key>LSMinimumSystemVersion</key>
|
|
38
|
+
<string>12.0</string>
|
|
39
|
+
<key>LSRequiresIPhoneOS</key>
|
|
40
|
+
<true/>
|
|
41
|
+
<key>NSAppTransportSecurity</key>
|
|
42
|
+
<dict>
|
|
43
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
44
|
+
<false/>
|
|
45
|
+
<key>NSAllowsLocalNetworking</key>
|
|
46
|
+
<true/>
|
|
47
|
+
</dict>
|
|
48
|
+
<key>RCTNewArchEnabled</key>
|
|
49
|
+
<true/>
|
|
50
|
+
<key>UILaunchStoryboardName</key>
|
|
51
|
+
<string>SplashScreen</string>
|
|
52
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
53
|
+
<array>
|
|
54
|
+
<string>arm64</string>
|
|
55
|
+
</array>
|
|
56
|
+
<key>UIRequiresFullScreen</key>
|
|
57
|
+
<false/>
|
|
58
|
+
<key>UIStatusBarStyle</key>
|
|
59
|
+
<string>UIStatusBarStyleDefault</string>
|
|
60
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
61
|
+
<array>
|
|
62
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
63
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
64
|
+
</array>
|
|
65
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
66
|
+
<array>
|
|
67
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
68
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
69
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
70
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
71
|
+
</array>
|
|
72
|
+
<key>UIUserInterfaceStyle</key>
|
|
73
|
+
<string>Automatic</string>
|
|
74
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
75
|
+
<false/>
|
|
76
|
+
</dict>
|
|
77
|
+
</plist>
|
|
@@ -0,0 +1,48 @@
|
|
|
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>NSPrivacyAccessedAPITypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
9
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
10
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
11
|
+
<array>
|
|
12
|
+
<string>CA92.1</string>
|
|
13
|
+
</array>
|
|
14
|
+
</dict>
|
|
15
|
+
<dict>
|
|
16
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
17
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
18
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
19
|
+
<array>
|
|
20
|
+
<string>0A2A.1</string>
|
|
21
|
+
<string>3B52.1</string>
|
|
22
|
+
<string>C617.1</string>
|
|
23
|
+
</array>
|
|
24
|
+
</dict>
|
|
25
|
+
<dict>
|
|
26
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
27
|
+
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
|
|
28
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
29
|
+
<array>
|
|
30
|
+
<string>E174.1</string>
|
|
31
|
+
<string>85F4.1</string>
|
|
32
|
+
</array>
|
|
33
|
+
</dict>
|
|
34
|
+
<dict>
|
|
35
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
36
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
37
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
38
|
+
<array>
|
|
39
|
+
<string>35F9.1</string>
|
|
40
|
+
</array>
|
|
41
|
+
</dict>
|
|
42
|
+
</array>
|
|
43
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
44
|
+
<array/>
|
|
45
|
+
<key>NSPrivacyTracking</key>
|
|
46
|
+
<false/>
|
|
47
|
+
</dict>
|
|
48
|
+
</plist>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="24093.7" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="EXPO-VIEWCONTROLLER-1">
|
|
3
|
+
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
|
4
|
+
<dependencies>
|
|
5
|
+
<deployment identifier="iOS"/>
|
|
6
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="24053.1"/>
|
|
7
|
+
<capability name="Named colors" minToolsVersion="9.0"/>
|
|
8
|
+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
|
9
|
+
<capability name="System colors in document resources" minToolsVersion="11.0"/>
|
|
10
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
11
|
+
</dependencies>
|
|
12
|
+
<scenes>
|
|
13
|
+
<scene sceneID="EXPO-SCENE-1">
|
|
14
|
+
<objects>
|
|
15
|
+
<viewController storyboardIdentifier="SplashScreenViewController" id="EXPO-VIEWCONTROLLER-1" sceneMemberID="viewController">
|
|
16
|
+
<view key="view" userInteractionEnabled="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="EXPO-ContainerView" userLabel="ContainerView">
|
|
17
|
+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
|
18
|
+
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
|
19
|
+
<subviews/>
|
|
20
|
+
<viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
|
|
21
|
+
<constraints>
|
|
22
|
+
<constraint firstItem="EXPO-SplashScreen" firstAttribute="centerY" secondItem="EXPO-ContainerView" secondAttribute="centerY" id="0VC-Wk-OaO"/>
|
|
23
|
+
<constraint firstItem="EXPO-SplashScreen" firstAttribute="centerX" secondItem="EXPO-ContainerView" secondAttribute="centerX" id="zR4-NK-mVN"/>
|
|
24
|
+
</constraints>
|
|
25
|
+
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
|
26
|
+
</view>
|
|
27
|
+
</viewController>
|
|
28
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
|
29
|
+
</objects>
|
|
30
|
+
<point key="canvasLocation" x="0.0" y="0.0"/>
|
|
31
|
+
</scene>
|
|
32
|
+
</scenes>
|
|
33
|
+
<resources>
|
|
34
|
+
<image name="SplashScreenLogo" width="100" height="90.333335876464844"/>
|
|
35
|
+
<systemColor name="systemBackgroundColor">
|
|
36
|
+
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
|
37
|
+
</systemColor>
|
|
38
|
+
</resources>
|
|
39
|
+
</document>
|
|
@@ -0,0 +1,12 @@
|
|
|
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>EXUpdatesCheckOnLaunch</key>
|
|
6
|
+
<string>ALWAYS</string>
|
|
7
|
+
<key>EXUpdatesEnabled</key>
|
|
8
|
+
<false/>
|
|
9
|
+
<key>EXUpdatesLaunchWaitMs</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</plist>
|