@jadamsbit/react-native-mapbox-navigation 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.
Files changed (117) hide show
  1. package/.gitattributes +1 -0
  2. package/CONTRIBUTING.md +11 -0
  3. package/LICENSE +21 -0
  4. package/README.md +357 -0
  5. package/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
  6. package/android/.gradle/7.3.3/checksums/md5-checksums.bin +0 -0
  7. package/android/.gradle/7.3.3/checksums/sha1-checksums.bin +0 -0
  8. package/android/.gradle/7.3.3/dependencies-accessors/dependencies-accessors.lock +0 -0
  9. package/android/.gradle/7.3.3/dependencies-accessors/gc.properties +0 -0
  10. package/android/.gradle/7.3.3/executionHistory/executionHistory.lock +0 -0
  11. package/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
  12. package/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
  13. package/android/.gradle/7.3.3/gc.properties +0 -0
  14. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  15. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  16. package/android/.gradle/vcs-1/gc.properties +0 -0
  17. package/android/README.md +14 -0
  18. package/android/build.gradle +99 -0
  19. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  20. package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  21. package/android/gradle.properties +4 -0
  22. package/android/gradlew +244 -0
  23. package/android/gradlew.bat +92 -0
  24. package/android/src/main/AndroidManifest.xml +4 -0
  25. package/android/src/main/java/com/jadamsbit/mapboxnavigation/MapboxNavigationManager.kt +122 -0
  26. package/android/src/main/java/com/jadamsbit/mapboxnavigation/MapboxNavigationPackage.kt +16 -0
  27. package/android/src/main/java/com/jadamsbit/mapboxnavigation/MapboxNavigationView.kt +794 -0
  28. package/android/src/main/res/layout/navigation_view.xml +84 -0
  29. package/android/src/main/res/values/styles.xml +15 -0
  30. package/dist/index.d.ts +3 -0
  31. package/dist/index.js +12 -0
  32. package/dist/typings.d.ts +40 -0
  33. package/dist/typings.js +1 -0
  34. package/example/.buckconfig +6 -0
  35. package/example/.eslintrc.js +4 -0
  36. package/example/.flowconfig +65 -0
  37. package/example/.prettierrc.js +7 -0
  38. package/example/.watchmanconfig +1 -0
  39. package/example/App.js +51 -0
  40. package/example/Gemfile +6 -0
  41. package/example/Gemfile.lock +100 -0
  42. package/example/NavigationComponent.js +56 -0
  43. package/example/__tests__/App-test.js +14 -0
  44. package/example/_bundle/config +2 -0
  45. package/example/_ruby-version +1 -0
  46. package/example/android/.gradle/8.2/checksums/checksums.lock +0 -0
  47. package/example/android/.gradle/8.2/fileChanges/last-build.bin +0 -0
  48. package/example/android/.gradle/8.2/fileHashes/fileHashes.lock +0 -0
  49. package/example/android/.gradle/8.2/gc.properties +0 -0
  50. package/example/android/.gradle/vcs-1/gc.properties +0 -0
  51. package/example/android/app/_BUCK +55 -0
  52. package/example/android/app/build.gradle +232 -0
  53. package/example/android/app/build_defs.bzl +19 -0
  54. package/example/android/app/debug.keystore +0 -0
  55. package/example/android/app/proguard-rules.pro +10 -0
  56. package/example/android/app/src/debug/AndroidManifest.xml +13 -0
  57. package/example/android/app/src/debug/java/com/basicapp/ReactNativeFlipper.java +72 -0
  58. package/example/android/app/src/main/AndroidManifest.xml +30 -0
  59. package/example/android/app/src/main/java/com/basicapp/MainActivity.java +15 -0
  60. package/example/android/app/src/main/java/com/basicapp/MainApplication.java +81 -0
  61. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  62. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  63. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  64. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  65. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  66. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  67. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  68. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  69. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  70. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  71. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  72. package/example/android/app/src/main/res/values/strings.xml +3 -0
  73. package/example/android/app/src/main/res/values/styles.xml +9 -0
  74. package/example/android/build.gradle +55 -0
  75. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  76. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  77. package/example/android/gradle.properties +35 -0
  78. package/example/android/gradlew +185 -0
  79. package/example/android/gradlew.bat +89 -0
  80. package/example/android/settings.gradle +6 -0
  81. package/example/app.json +4 -0
  82. package/example/babel.config.js +24 -0
  83. package/example/index.js +9 -0
  84. package/example/ios/BasicApp/AppDelegate.h +8 -0
  85. package/example/ios/BasicApp/AppDelegate.m +62 -0
  86. package/example/ios/BasicApp/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
  87. package/example/ios/BasicApp/Images.xcassets/Contents.json +6 -0
  88. package/example/ios/BasicApp/Info.plist +62 -0
  89. package/example/ios/BasicApp/LaunchScreen.storyboard +47 -0
  90. package/example/ios/BasicApp/main.m +9 -0
  91. package/example/ios/BasicApp-Bridging-Header.h +4 -0
  92. package/example/ios/BasicApp.xcodeproj/project.pbxproj +690 -0
  93. package/example/ios/BasicApp.xcodeproj/xcshareddata/xcschemes/BasicApp.xcscheme +88 -0
  94. package/example/ios/BasicApp.xcworkspace/contents.xcworkspacedata +10 -0
  95. package/example/ios/BasicApp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  96. package/example/ios/BasicAppTests/BasicAppTests.m +65 -0
  97. package/example/ios/BasicAppTests/Info.plist +24 -0
  98. package/example/ios/BridgeHeader.swift +8 -0
  99. package/example/ios/Podfile +44 -0
  100. package/example/ios/Podfile.lock +473 -0
  101. package/example/metro.config.js +45 -0
  102. package/example/package.json +31 -0
  103. package/img/bridging-header.png +0 -0
  104. package/img/build-setting-linking.png +0 -0
  105. package/img/build-setting-path.png +0 -0
  106. package/ios/MapboxNavigation-Bridging-Header.h +3 -0
  107. package/ios/MapboxNavigation.xcodeproj/project.pbxproj +290 -0
  108. package/ios/MapboxNavigation.xcworkspace/contents.xcworkspacedata +7 -0
  109. package/ios/MapboxNavigation.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  110. package/ios/MapboxNavigationManager.m +20 -0
  111. package/ios/MapboxNavigationManager.swift +10 -0
  112. package/ios/MapboxNavigationView.swift +163 -0
  113. package/package.json +33 -0
  114. package/react-native-mapbox-navigation.podspec +51 -0
  115. package/src/index.tsx +21 -0
  116. package/src/typings.ts +43 -0
  117. package/tsconfig.json +14 -0
@@ -0,0 +1,185 @@
1
+ #!/usr/bin/env sh
2
+
3
+ #
4
+ # Copyright 2015 the original author or authors.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # https://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ ##############################################################################
20
+ ##
21
+ ## Gradle start up script for UN*X
22
+ ##
23
+ ##############################################################################
24
+
25
+ # Attempt to set APP_HOME
26
+ # Resolve links: $0 may be a link
27
+ PRG="$0"
28
+ # Need this for relative symlinks.
29
+ while [ -h "$PRG" ] ; do
30
+ ls=`ls -ld "$PRG"`
31
+ link=`expr "$ls" : '.*-> \(.*\)$'`
32
+ if expr "$link" : '/.*' > /dev/null; then
33
+ PRG="$link"
34
+ else
35
+ PRG=`dirname "$PRG"`"/$link"
36
+ fi
37
+ done
38
+ SAVED="`pwd`"
39
+ cd "`dirname \"$PRG\"`/" >/dev/null
40
+ APP_HOME="`pwd -P`"
41
+ cd "$SAVED" >/dev/null
42
+
43
+ APP_NAME="Gradle"
44
+ APP_BASE_NAME=`basename "$0"`
45
+
46
+ # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
+ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
+
49
+ # Use the maximum available, or set MAX_FD != -1 to use that value.
50
+ MAX_FD="maximum"
51
+
52
+ warn () {
53
+ echo "$*"
54
+ }
55
+
56
+ die () {
57
+ echo
58
+ echo "$*"
59
+ echo
60
+ exit 1
61
+ }
62
+
63
+ # OS specific support (must be 'true' or 'false').
64
+ cygwin=false
65
+ msys=false
66
+ darwin=false
67
+ nonstop=false
68
+ case "`uname`" in
69
+ CYGWIN* )
70
+ cygwin=true
71
+ ;;
72
+ Darwin* )
73
+ darwin=true
74
+ ;;
75
+ MINGW* )
76
+ msys=true
77
+ ;;
78
+ NONSTOP* )
79
+ nonstop=true
80
+ ;;
81
+ esac
82
+
83
+ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
+
85
+
86
+ # Determine the Java command to use to start the JVM.
87
+ if [ -n "$JAVA_HOME" ] ; then
88
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89
+ # IBM's JDK on AIX uses strange locations for the executables
90
+ JAVACMD="$JAVA_HOME/jre/sh/java"
91
+ else
92
+ JAVACMD="$JAVA_HOME/bin/java"
93
+ fi
94
+ if [ ! -x "$JAVACMD" ] ; then
95
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96
+
97
+ Please set the JAVA_HOME variable in your environment to match the
98
+ location of your Java installation."
99
+ fi
100
+ else
101
+ JAVACMD="java"
102
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103
+
104
+ Please set the JAVA_HOME variable in your environment to match the
105
+ location of your Java installation."
106
+ fi
107
+
108
+ # Increase the maximum file descriptors if we can.
109
+ if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110
+ MAX_FD_LIMIT=`ulimit -H -n`
111
+ if [ $? -eq 0 ] ; then
112
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113
+ MAX_FD="$MAX_FD_LIMIT"
114
+ fi
115
+ ulimit -n $MAX_FD
116
+ if [ $? -ne 0 ] ; then
117
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
118
+ fi
119
+ else
120
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121
+ fi
122
+ fi
123
+
124
+ # For Darwin, add options to specify how the application appears in the dock
125
+ if $darwin; then
126
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127
+ fi
128
+
129
+ # For Cygwin or MSYS, switch paths to Windows format before running java
130
+ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133
+
134
+ JAVACMD=`cygpath --unix "$JAVACMD"`
135
+
136
+ # We build the pattern for arguments to be converted via cygpath
137
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138
+ SEP=""
139
+ for dir in $ROOTDIRSRAW ; do
140
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
141
+ SEP="|"
142
+ done
143
+ OURCYGPATTERN="(^($ROOTDIRS))"
144
+ # Add a user-defined pattern to the cygpath arguments
145
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147
+ fi
148
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
149
+ i=0
150
+ for arg in "$@" ; do
151
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153
+
154
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156
+ else
157
+ eval `echo args$i`="\"$arg\""
158
+ fi
159
+ i=`expr $i + 1`
160
+ done
161
+ case $i in
162
+ 0) set -- ;;
163
+ 1) set -- "$args0" ;;
164
+ 2) set -- "$args0" "$args1" ;;
165
+ 3) set -- "$args0" "$args1" "$args2" ;;
166
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172
+ esac
173
+ fi
174
+
175
+ # Escape application args
176
+ save () {
177
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178
+ echo " "
179
+ }
180
+ APP_ARGS=`save "$@"`
181
+
182
+ # Collect all arguments for the java command, following the shell quoting and substitution rules
183
+ eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184
+
185
+ exec "$JAVACMD" "$@"
@@ -0,0 +1,89 @@
1
+ @rem
2
+ @rem Copyright 2015 the original author or authors.
3
+ @rem
4
+ @rem Licensed under the Apache License, Version 2.0 (the "License");
5
+ @rem you may not use this file except in compliance with the License.
6
+ @rem You may obtain a copy of the License at
7
+ @rem
8
+ @rem https://www.apache.org/licenses/LICENSE-2.0
9
+ @rem
10
+ @rem Unless required by applicable law or agreed to in writing, software
11
+ @rem distributed under the License is distributed on an "AS IS" BASIS,
12
+ @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ @rem See the License for the specific language governing permissions and
14
+ @rem limitations under the License.
15
+ @rem
16
+
17
+ @if "%DEBUG%" == "" @echo off
18
+ @rem ##########################################################################
19
+ @rem
20
+ @rem Gradle startup script for Windows
21
+ @rem
22
+ @rem ##########################################################################
23
+
24
+ @rem Set local scope for the variables with windows NT shell
25
+ if "%OS%"=="Windows_NT" setlocal
26
+
27
+ set DIRNAME=%~dp0
28
+ if "%DIRNAME%" == "" set DIRNAME=.
29
+ set APP_BASE_NAME=%~n0
30
+ set APP_HOME=%DIRNAME%
31
+
32
+ @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33
+ for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34
+
35
+ @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36
+ set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37
+
38
+ @rem Find java.exe
39
+ if defined JAVA_HOME goto findJavaFromJavaHome
40
+
41
+ set JAVA_EXE=java.exe
42
+ %JAVA_EXE% -version >NUL 2>&1
43
+ if "%ERRORLEVEL%" == "0" goto execute
44
+
45
+ echo.
46
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47
+ echo.
48
+ echo Please set the JAVA_HOME variable in your environment to match the
49
+ echo location of your Java installation.
50
+
51
+ goto fail
52
+
53
+ :findJavaFromJavaHome
54
+ set JAVA_HOME=%JAVA_HOME:"=%
55
+ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56
+
57
+ if exist "%JAVA_EXE%" goto execute
58
+
59
+ echo.
60
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61
+ echo.
62
+ echo Please set the JAVA_HOME variable in your environment to match the
63
+ echo location of your Java installation.
64
+
65
+ goto fail
66
+
67
+ :execute
68
+ @rem Setup the command line
69
+
70
+ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71
+
72
+
73
+ @rem Execute Gradle
74
+ "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75
+
76
+ :end
77
+ @rem End local scope for the variables with windows NT shell
78
+ if "%ERRORLEVEL%"=="0" goto mainEnd
79
+
80
+ :fail
81
+ rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82
+ rem the _cmd.exe /c_ return code!
83
+ if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84
+ exit /b 1
85
+
86
+ :mainEnd
87
+ if "%OS%"=="Windows_NT" endlocal
88
+
89
+ :omega
@@ -0,0 +1,6 @@
1
+ rootProject.name = 'BasicApp'
2
+ apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3
+ include ':app'
4
+
5
+ include ':mapboxnavigation'
6
+ project(':mapboxnavigation').projectDir = new File(rootProject.projectDir, '../../android')
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "BasicApp",
3
+ "displayName": "BasicApp"
4
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Metro configuration for React Native
3
+ * https://github.com/facebook/react-native
4
+ *
5
+ * @format
6
+ */
7
+
8
+ const path = require('path');
9
+ const pak = require('../package.json');
10
+
11
+ module.exports = {
12
+ presets: ['module:metro-react-native-babel-preset'],
13
+ plugins: [
14
+ [
15
+ 'module-resolver',
16
+ {
17
+ extensions: ['.tsx', '.ts', '.js', '.json'],
18
+ alias: {
19
+ [pak.name]: path.join(__dirname, '..', pak.source),
20
+ },
21
+ },
22
+ ],
23
+ ],
24
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @format
3
+ */
4
+
5
+ import {AppRegistry} from 'react-native';
6
+ import App from './App';
7
+ import {name as appName} from './app.json';
8
+
9
+ AppRegistry.registerComponent(appName, () => App);
@@ -0,0 +1,8 @@
1
+ #import <React/RCTBridgeDelegate.h>
2
+ #import <UIKit/UIKit.h>
3
+
4
+ @interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
5
+
6
+ @property (nonatomic, strong) UIWindow *window;
7
+
8
+ @end
@@ -0,0 +1,62 @@
1
+ #import "AppDelegate.h"
2
+
3
+ #import <React/RCTBridge.h>
4
+ #import <React/RCTBundleURLProvider.h>
5
+ #import <React/RCTRootView.h>
6
+
7
+ #ifdef FB_SONARKIT_ENABLED
8
+ #import <FlipperKit/FlipperClient.h>
9
+ #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
10
+ #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
11
+ #import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
12
+ #import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
13
+ #import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
14
+
15
+ static void InitializeFlipper(UIApplication *application) {
16
+ FlipperClient *client = [FlipperClient sharedClient];
17
+ SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
18
+ [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
19
+ [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
20
+ [client addPlugin:[FlipperKitReactPlugin new]];
21
+ [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
22
+ [client start];
23
+ }
24
+ #endif
25
+
26
+ @implementation AppDelegate
27
+
28
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
29
+ {
30
+ #ifdef FB_SONARKIT_ENABLED
31
+ InitializeFlipper(application);
32
+ #endif
33
+
34
+ RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
35
+ RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
36
+ moduleName:@"BasicApp"
37
+ initialProperties:nil];
38
+
39
+ if (@available(iOS 13.0, *)) {
40
+ rootView.backgroundColor = [UIColor systemBackgroundColor];
41
+ } else {
42
+ rootView.backgroundColor = [UIColor whiteColor];
43
+ }
44
+
45
+ self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
46
+ UIViewController *rootViewController = [UIViewController new];
47
+ rootViewController.view = rootView;
48
+ self.window.rootViewController = rootViewController;
49
+ [self.window makeKeyAndVisible];
50
+ return YES;
51
+ }
52
+
53
+ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
54
+ {
55
+ #if DEBUG
56
+ return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
57
+ #else
58
+ return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
59
+ #endif
60
+ }
61
+
62
+ @end
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info" : {
3
+ "version" : 1,
4
+ "author" : "xcode"
5
+ }
6
+ }
@@ -0,0 +1,62 @@
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>BasicApp</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>$(EXECUTABLE_NAME)</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</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>NSAppTransportSecurity</key>
28
+ <dict>
29
+ <key>NSExceptionDomains</key>
30
+ <dict>
31
+ <key>localhost</key>
32
+ <dict>
33
+ <key>NSExceptionAllowsInsecureHTTPLoads</key>
34
+ <true/>
35
+ </dict>
36
+ </dict>
37
+ </dict>
38
+ <key>NSLocationWhenInUseUsageDescription</key>
39
+ <string></string>
40
+ <key>UIBackgroundModes</key>
41
+ <array>
42
+ <string>audio</string>
43
+ <string>fetch</string>
44
+ <string>location</string>
45
+ <string>processing</string>
46
+ </array>
47
+ <key>UILaunchStoryboardName</key>
48
+ <string>LaunchScreen</string>
49
+ <key>UIRequiredDeviceCapabilities</key>
50
+ <array>
51
+ <string>armv7</string>
52
+ </array>
53
+ <key>UISupportedInterfaceOrientations</key>
54
+ <array>
55
+ <string>UIInterfaceOrientationPortrait</string>
56
+ <string>UIInterfaceOrientationLandscapeLeft</string>
57
+ <string>UIInterfaceOrientationLandscapeRight</string>
58
+ </array>
59
+ <key>UIViewControllerBasedStatusBarAppearance</key>
60
+ <false/>
61
+ </dict>
62
+ </plist>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <deployment identifier="iOS"/>
6
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+ </dependencies>
10
+ <scenes>
11
+ <!--View Controller-->
12
+ <scene sceneID="EHf-IW-A2E">
13
+ <objects>
14
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="BasicApp" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
+ <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
+ <nil key="highlightedColor"/>
23
+ </label>
24
+ <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="MN2-I3-ftu">
25
+ <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
+ <nil key="highlightedColor"/>
28
+ </label>
29
+ </subviews>
30
+ <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31
+ <constraints>
32
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
+ </constraints>
39
+ <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
+ </view>
41
+ </viewController>
42
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
43
+ </objects>
44
+ <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
+ </scene>
46
+ </scenes>
47
+ </document>
@@ -0,0 +1,9 @@
1
+ #import <UIKit/UIKit.h>
2
+
3
+ #import "AppDelegate.h"
4
+
5
+ int main(int argc, char * argv[]) {
6
+ @autoreleasepool {
7
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
+ }
9
+ }
@@ -0,0 +1,4 @@
1
+ //
2
+ // Use this file to import your target's public headers that you would like to expose to Swift.
3
+ //
4
+