├── .buckconfig
├── .dooboo
├── react-native
└── typescript
├── .eslintrc.js
├── .gitattributes
├── .gitignore
├── .ncurc.json
├── .prettierrc.js
├── .watchmanconfig
├── Gemfile
├── LICENSE
├── README.md
├── _node-version
├── android
├── app
│ ├── build.gradle
│ ├── debug.keystore
│ ├── proguard-rules.pro
│ └── src
│ │ ├── debug
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── reactnavigationv6
│ │ │ └── ReactNativeFlipper.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── reactnavigationv6
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MainApplication.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── rn_edit_text_material.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── ic_launcher_round.png
│ │ │ └── values
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── release
│ │ └── java
│ │ └── com
│ │ └── reactnavigationv6
│ │ └── ReactNativeFlipper.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── app.json
├── assets
├── icons
│ ├── mask.png
│ ├── mask@2x.png
│ └── mask@3x.png
└── langs
│ ├── en.json
│ └── ko.json
├── babel.config.js
├── codecov.yml
├── environment.d.ts
├── index.js
├── ios
├── .xcode.env
├── Podfile
├── Podfile.lock
├── ReactNavigationV6.xcodeproj
│ ├── project.pbxproj
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── ReactNavigationV6.xcscheme
├── ReactNavigationV6.xcworkspace
│ └── contents.xcworkspacedata
├── ReactNavigationV6
│ ├── AppDelegate.h
│ ├── AppDelegate.mm
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ └── Contents.json
│ ├── Info.plist
│ ├── LaunchScreen.storyboard
│ └── main.m
└── ReactNavigationV6Tests
│ ├── Info.plist
│ └── ReactNavigationV6Tests.m
├── jest.config.js
├── metro.config.js
├── package.json
├── src
├── App.tsx
├── apis
│ └── sample.ts
├── components
│ ├── navigation
│ │ ├── BottomTabNavigator.tsx
│ │ ├── DrawerNavigator.tsx
│ │ ├── MaterialBottomTabNavigator.tsx
│ │ ├── MaterialTopTabNavigator.tsx
│ │ ├── StackNavigator.tsx
│ │ └── SwitchNavigator.tsx
│ ├── screen
│ │ ├── DrawerScreen1.tsx
│ │ ├── DrawerScreen2.tsx
│ │ ├── Intro.tsx
│ │ ├── Screen1.tsx
│ │ ├── Screen2.tsx
│ │ ├── Screen3.tsx
│ │ ├── Screen4.tsx
│ │ └── Temp.tsx
│ ├── shared
│ │ └── Button.tsx
│ └── ui
│ │ └── Buttons.ts
├── providers
│ ├── AppProvider.tsx
│ ├── MyTestProvider.tsx
│ ├── MyTestProvider2.tsx
│ ├── ThemeProvider.tsx
│ ├── index.tsx
│ └── myProvider.tsx
├── styled.d.ts
├── theme.ts
├── types
│ └── index.ts
└── utils
│ ├── Icons.ts
│ ├── Styles.ts
│ └── createCtx.ts
├── test
├── assetsTransformer.js
├── jestSetup.ts
└── testUtils.tsx
├── tsconfig.jest.json
├── tsconfig.json
└── yarn.lock
/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/.dooboo/react-native:
--------------------------------------------------------------------------------
1 | /**
2 | * dooboo-cli by dooboolab
3 | * Do not delete this folder and files if you are using dooboo-cli
4 | * https://www.npmjs.com/package/dooboo-cli
5 | */
6 |
--------------------------------------------------------------------------------
/.dooboo/typescript:
--------------------------------------------------------------------------------
1 | /**
2 | * dooboo-cli by dooboolab
3 | * Do not delete this folder and files if you are using dooboo-cli
4 | * https://www.npmjs.com/package/dooboo-cli
5 | */
6 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | extends: '@dooboo/eslint-config-react-native',
4 | };
5 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | dist/
36 | node_modules/
37 | npm-debug.log
38 | yarn-error.log
39 |
40 | # BUCK
41 | buck-out/
42 | \.buckd/
43 | *.keystore
44 | !android/app/debug.keystore
45 |
46 | # fastlane
47 | #
48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
49 | # screenshots whenever they are needed.
50 | # For more information about the recommended setup visit:
51 | # https://docs.fastlane.tools/best-practices/source-control/
52 |
53 | */fastlane/report.xml
54 | */fastlane/Preview.html
55 | */fastlane/screenshots
56 |
57 | # Bundle artifact
58 | *.jsbundle
59 | .jest/
60 |
61 | coverage/
62 | package-lock.json
63 |
64 | ios/Pods/
65 |
66 | .vscode
--------------------------------------------------------------------------------
/.ncurc.json:
--------------------------------------------------------------------------------
1 | {
2 | "upgrade": true,
3 | "reject": [
4 | "react",
5 | "react-dom",
6 | "react-test-renderer"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/.prettierrc.js:
--------------------------------------------------------------------------------
1 | // prettier.config.js or .prettierrc.js
2 | module.exports = {
3 | arrowParens: 'always',
4 | bracketSameLine: true,
5 | bracketSpacing: false,
6 | singleQuote: true,
7 | trailingComma: 'all',
8 | };
9 |
--------------------------------------------------------------------------------
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4 | ruby File.read(File.join(__dir__, '.ruby-version')).strip
5 |
6 | gem 'cocoapods', '~> 1.11', '>= 1.11.3'
7 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 dooboolab
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # React Navigation v6 Examples
2 |
3 | ### StackNavigator
4 |
5 | 
6 |
7 | - [Api doc](https://reactnavigation.org/docs/en/next/stack-navigator.html)
8 |
9 | ### DrawerNavigator
10 |
11 | 
12 |
13 | - [Api doc](https://reactnavigation.org/docs/en/next/drawer-navigator.html)
14 |
15 | ### BottomTabNavigator
16 |
17 | 
18 |
19 | - [Api doc](https://reactnavigation.org/docs/en/next/bottom-tab-navigator.html)
20 |
21 | ### MaterialTopTabNavigator
22 |
23 | 
24 |
25 | - [Api doc](https://reactnavigation.org/docs/en/next/material-top-tab-navigator.html)
26 |
27 | ### MaterialBottomTabNavigator
28 |
29 | 
30 |
31 | - [Api doc](https://reactnavigation.org/docs/en/next/material-bottom-tab-navigator.html)
32 |
--------------------------------------------------------------------------------
/_node-version:
--------------------------------------------------------------------------------
1 | 16
2 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 | apply plugin: "com.facebook.react"
3 |
4 | import com.android.build.OutputFile
5 |
6 | /**
7 | * This is the configuration block to customize your React Native Android app.
8 | * By default you don't need to apply any configuration, just uncomment the lines you need.
9 | */
10 | react {
11 | /* Folders */
12 | // The root of your project, i.e. where "package.json" lives. Default is '..'
13 | // root = file("../")
14 | // The folder where the react-native NPM package is. Default is ../node_modules/react-native
15 | // reactNativeDir = file("../node_modules/react-native")
16 | // The folder where the react-native Codegen package is. Default is ../node_modules/react-native-codegen
17 | // codegenDir = file("../node_modules/react-native-codegen")
18 | // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
19 | // cliFile = file("../node_modules/react-native/cli.js")
20 |
21 | /* Variants */
22 | // The list of variants to that are debuggable. For those we're going to
23 | // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
24 | // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
25 | // debuggableVariants = ["liteDebug", "prodDebug"]
26 |
27 | /* Bundling */
28 | // A list containing the node command and its flags. Default is just 'node'.
29 | // nodeExecutableAndArgs = ["node"]
30 | //
31 | // The command to run when bundling. By default is 'bundle'
32 | // bundleCommand = "ram-bundle"
33 | //
34 | // The path to the CLI configuration file. Default is empty.
35 | // bundleConfig = file(../rn-cli.config.js)
36 | //
37 | // The name of the generated asset file containing your JS bundle
38 | // bundleAssetName = "MyApplication.android.bundle"
39 | //
40 | // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
41 | // entryFile = file("../js/MyApplication.android.js")
42 | //
43 | // A list of extra flags to pass to the 'bundle' commands.
44 | // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
45 | // extraPackagerArgs = []
46 |
47 | /* Hermes Commands */
48 | // The hermes compiler command to run. By default it is 'hermesc'
49 | // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
50 | //
51 | // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
52 | // hermesFlags = ["-O", "-output-source-map"]
53 | }
54 |
55 | /**
56 | * Set this to true to create four separate APKs instead of one,
57 | * one for each native architecture. This is useful if you don't
58 | * use App Bundles (https://developer.android.com/guide/app-bundle/)
59 | * and want to have separate APKs to upload to the Play Store.
60 | */
61 | def enableSeparateBuildPerCPUArchitecture = false
62 |
63 | /**
64 | * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
65 | */
66 | def enableProguardInReleaseBuilds = false
67 |
68 | /**
69 | * The preferred build flavor of JavaScriptCore (JSC)
70 | *
71 | * For example, to use the international variant, you can use:
72 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
73 | *
74 | * The international variant includes ICU i18n library and necessary data
75 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
76 | * give correct results when using with locales other than en-US. Note that
77 | * this variant is about 6MiB larger per architecture than default.
78 | */
79 | def jscFlavor = 'org.webkit:android-jsc:+'
80 |
81 | /**
82 | * Private function to get the list of Native Architectures you want to build.
83 | * This reads the value from reactNativeArchitectures in your gradle.properties
84 | * file and works together with the --active-arch-only flag of react-native run-android.
85 | */
86 | def reactNativeArchitectures() {
87 | def value = project.getProperties().get("reactNativeArchitectures")
88 | return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
89 | }
90 |
91 | android {
92 | ndkVersion rootProject.ext.ndkVersion
93 |
94 | compileSdkVersion rootProject.ext.compileSdkVersion
95 |
96 | namespace "com.reactnavigationv6"
97 | defaultConfig {
98 | applicationId "com.reactnavigationv6"
99 | minSdkVersion rootProject.ext.minSdkVersion
100 | targetSdkVersion rootProject.ext.targetSdkVersion
101 | versionCode 1
102 | versionName "1.0"
103 | }
104 |
105 | splits {
106 | abi {
107 | reset()
108 | enable enableSeparateBuildPerCPUArchitecture
109 | universalApk false // If true, also generate a universal APK
110 | include (*reactNativeArchitectures())
111 | }
112 | }
113 | signingConfigs {
114 | debug {
115 | storeFile file('debug.keystore')
116 | storePassword 'android'
117 | keyAlias 'androiddebugkey'
118 | keyPassword 'android'
119 | }
120 | }
121 | buildTypes {
122 | debug {
123 | signingConfig signingConfigs.debug
124 | }
125 | release {
126 | // Caution! In production, you need to generate your own keystore file.
127 | // see https://reactnative.dev/docs/signed-apk-android.
128 | signingConfig signingConfigs.debug
129 | minifyEnabled enableProguardInReleaseBuilds
130 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
131 | }
132 | }
133 |
134 | // applicationVariants are e.g. debug, release
135 | applicationVariants.all { variant ->
136 | variant.outputs.each { output ->
137 | // For each separate APK per architecture, set a unique version code as described here:
138 | // https://developer.android.com/studio/build/configure-apk-splits.html
139 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
140 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
141 | def abi = output.getFilter(OutputFile.ABI)
142 | if (abi != null) { // null for the universal-debug, universal-release variants
143 | output.versionCodeOverride =
144 | defaultConfig.versionCode * 1000 + versionCodes.get(abi)
145 | }
146 |
147 | }
148 | }
149 | }
150 |
151 | dependencies {
152 | // The version of react-native is set by the React Native Gradle Plugin
153 | implementation("com.facebook.react:react-android")
154 |
155 | implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")
156 |
157 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
158 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
159 | exclude group:'com.squareup.okhttp3', module:'okhttp'
160 | }
161 |
162 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
163 | if (hermesEnabled.toBoolean()) {
164 | implementation("com.facebook.react:hermes-android")
165 | } else {
166 | implementation jscFlavor
167 | }
168 | }
169 |
170 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
171 |
--------------------------------------------------------------------------------
/android/app/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/debug.keystore
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/android/app/src/debug/java/com/reactnavigationv6/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Meta Platforms, Inc. and affiliates.
3 | *
4 | *
This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package com.reactnavigationv6;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
21 | import com.facebook.react.ReactInstanceEventListener;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | /**
28 | * Class responsible of loading Flipper inside your React Native application. This is the debug
29 | * flavor of it. Here you can add your own plugins and customize the Flipper setup.
30 | */
31 | public class ReactNativeFlipper {
32 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
33 | if (FlipperUtils.shouldEnableFlipper(context)) {
34 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
35 |
36 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
37 | client.addPlugin(new DatabasesFlipperPlugin(context));
38 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
39 | client.addPlugin(CrashReporterPlugin.getInstance());
40 |
41 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
42 | NetworkingModule.setCustomClientBuilder(
43 | new NetworkingModule.CustomClientBuilder() {
44 | @Override
45 | public void apply(OkHttpClient.Builder builder) {
46 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
47 | }
48 | });
49 | client.addPlugin(networkFlipperPlugin);
50 | client.start();
51 |
52 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
53 | // Hence we run if after all native modules have been initialized
54 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
55 | if (reactContext == null) {
56 | reactInstanceManager.addReactInstanceEventListener(
57 | new ReactInstanceEventListener() {
58 | @Override
59 | public void onReactContextInitialized(ReactContext reactContext) {
60 | reactInstanceManager.removeReactInstanceEventListener(this);
61 | reactContext.runOnNativeModulesQueueThread(
62 | new Runnable() {
63 | @Override
64 | public void run() {
65 | client.addPlugin(new FrescoFlipperPlugin());
66 | }
67 | });
68 | }
69 | });
70 | } else {
71 | client.addPlugin(new FrescoFlipperPlugin());
72 | }
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/reactnavigationv6/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.reactnavigationv6;
2 |
3 | import android.os.Bundle;
4 | import com.facebook.react.ReactActivity;
5 | import com.facebook.react.ReactActivityDelegate;
6 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
7 | import com.facebook.react.defaults.DefaultReactActivityDelegate;
8 |
9 | public class MainActivity extends ReactActivity {
10 |
11 | @Override
12 | protected void onCreate(Bundle savedInstanceState) {
13 | super.onCreate(null);
14 | }
15 |
16 | /**
17 | * Returns the name of the main component registered from JavaScript. This is used to schedule
18 | * rendering of the component.
19 | */
20 | @Override
21 | protected String getMainComponentName() {
22 | return "ReactNavigationV6";
23 | }
24 |
25 | /**
26 | * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
27 | * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
28 | * (aka React 18) with two boolean flags.
29 | */
30 | @Override
31 | protected ReactActivityDelegate createReactActivityDelegate() {
32 | return new DefaultReactActivityDelegate(
33 | this,
34 | getMainComponentName(),
35 | // If you opted-in for the New Architecture, we enable the Fabric Renderer.
36 | DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled
37 | // If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18).
38 | DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled
39 | );
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/reactnavigationv6/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.reactnavigationv6;
2 |
3 | import android.app.Application;
4 | import com.facebook.react.PackageList;
5 | import com.facebook.react.ReactApplication;
6 | import com.facebook.react.ReactNativeHost;
7 | import com.facebook.react.ReactPackage;
8 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
9 | import com.facebook.react.defaults.DefaultReactNativeHost;
10 | import com.facebook.soloader.SoLoader;
11 | import java.util.List;
12 |
13 | public class MainApplication extends Application implements ReactApplication {
14 |
15 | private final ReactNativeHost mReactNativeHost =
16 | new DefaultReactNativeHost(this) {
17 | @Override
18 | public boolean getUseDeveloperSupport() {
19 | return BuildConfig.DEBUG;
20 | }
21 |
22 | @Override
23 | protected List getPackages() {
24 | @SuppressWarnings("UnnecessaryLocalVariable")
25 | List packages = new PackageList(this).getPackages();
26 | // Packages that cannot be autolinked yet can be added manually here, for example:
27 | // packages.add(new MyReactNativePackage());
28 | return packages;
29 | }
30 |
31 | @Override
32 | protected String getJSMainModuleName() {
33 | return "index";
34 | }
35 |
36 | @Override
37 | protected boolean isNewArchEnabled() {
38 | return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
39 | }
40 |
41 | @Override
42 | protected Boolean isHermesEnabled() {
43 | return BuildConfig.IS_HERMES_ENABLED;
44 | }
45 | };
46 |
47 | @Override
48 | public ReactNativeHost getReactNativeHost() {
49 | return mReactNativeHost;
50 | }
51 |
52 | @Override
53 | public void onCreate() {
54 | super.onCreate();
55 | SoLoader.init(this, /* native exopackage */ false);
56 | if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
57 | // If you opted-in for the New Architecture, we load the native entry point for this app.
58 | DefaultNewArchitectureEntryPoint.load();
59 | }
60 | ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/rn_edit_text_material.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
21 |
22 |
23 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | ReactNavigationV6
3 |
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/app/src/release/java/com/reactnavigationv6/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Meta Platforms, Inc. and affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package com.reactnavigationv6;
8 |
9 | import android.content.Context;
10 | import com.facebook.react.ReactInstanceManager;
11 |
12 | /**
13 | * Class responsible of loading Flipper inside your React Native application. This is the release
14 | * flavor of it so it's empty as we don't want to load Flipper.
15 | */
16 | public class ReactNativeFlipper {
17 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
18 | // Do nothing as we don't want to initialize Flipper on Release.
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = "33.0.0"
6 | minSdkVersion = 21
7 | compileSdkVersion = 33
8 | targetSdkVersion = 33
9 |
10 | // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
11 | ndkVersion = "23.1.7779620"
12 | }
13 | repositories {
14 | google()
15 | mavenCentral()
16 | }
17 | dependencies {
18 | classpath("com.android.tools.build:gradle:7.3.1")
19 | classpath("com.facebook.react:react-native-gradle-plugin")
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | # AndroidX package structure to make it clearer which packages are bundled with the
21 | # Android operating system, and which are packaged with your app's APK
22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
23 | android.useAndroidX=true
24 | # Automatically convert third-party libraries to use AndroidX
25 | android.enableJetifier=true
26 |
27 | # Version of flipper SDK to use with React Native
28 | FLIPPER_VERSION=0.125.0
29 |
30 | # Use this property to specify which architecture you want to build.
31 | # You can also override it from the CLI using
32 | # ./gradlew -PreactNativeArchitectures=x86_64
33 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
34 |
35 | # Use this property to enable support to the new architecture.
36 | # This will allow you to use TurboModules and the Fabric render in
37 | # your application. You should enable this flag either if you want
38 | # to write custom TurboModules/Fabric components OR use libraries that
39 | # are providing them.
40 | newArchEnabled=false
41 |
42 | # Use this property to enable or disable the Hermes JS engine.
43 | # If set to false, you will be using JSC instead.
44 | hermesEnabled=true
45 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015-2021 the original 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 POSIX generated by Gradle.
22 | #
23 | # Important for running:
24 | #
25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26 | # noncompliant, but you have some other compliant shell such as ksh or
27 | # bash, then to run this script, type that shell name before the whole
28 | # command line, like:
29 | #
30 | # ksh Gradle
31 | #
32 | # Busybox and similar reduced shells will NOT work, because this script
33 | # requires all of these POSIX shell features:
34 | # * functions;
35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37 | # * compound commands having a testable exit status, especially «case»;
38 | # * various built-in commands including «command», «set», and «ulimit».
39 | #
40 | # Important for patching:
41 | #
42 | # (2) This script targets any POSIX shell, so it avoids extensions provided
43 | # by Bash, Ksh, etc; in particular arrays are avoided.
44 | #
45 | # The "traditional" practice of packing multiple parameters into a
46 | # space-separated string is a well documented source of bugs and security
47 | # problems, so this is (mostly) avoided, by progressively accumulating
48 | # options in "$@", and eventually passing that to Java.
49 | #
50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52 | # see the in-line comments for details.
53 | #
54 | # There are tweaks for specific operating systems such as AIX, CygWin,
55 | # Darwin, MinGW, and NonStop.
56 | #
57 | # (3) This script is generated from the Groovy template
58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59 | # within the Gradle project.
60 | #
61 | # You can find Gradle at https://github.com/gradle/gradle/.
62 | #
63 | ##############################################################################
64 |
65 | # Attempt to set APP_HOME
66 |
67 | # Resolve links: $0 may be a link
68 | app_path=$0
69 |
70 | # Need this for daisy-chained symlinks.
71 | while
72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73 | [ -h "$app_path" ]
74 | do
75 | ls=$( ls -ld "$app_path" )
76 | link=${ls#*' -> '}
77 | case $link in #(
78 | /*) app_path=$link ;; #(
79 | *) app_path=$APP_HOME$link ;;
80 | esac
81 | done
82 |
83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84 |
85 | APP_NAME="Gradle"
86 | APP_BASE_NAME=${0##*/}
87 |
88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90 |
91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
92 | MAX_FD=maximum
93 |
94 | warn () {
95 | echo "$*"
96 | } >&2
97 |
98 | die () {
99 | echo
100 | echo "$*"
101 | echo
102 | exit 1
103 | } >&2
104 |
105 | # OS specific support (must be 'true' or 'false').
106 | cygwin=false
107 | msys=false
108 | darwin=false
109 | nonstop=false
110 | case "$( uname )" in #(
111 | CYGWIN* ) cygwin=true ;; #(
112 | Darwin* ) darwin=true ;; #(
113 | MSYS* | MINGW* ) msys=true ;; #(
114 | NONSTOP* ) nonstop=true ;;
115 | esac
116 |
117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118 |
119 |
120 | # Determine the Java command to use to start the JVM.
121 | if [ -n "$JAVA_HOME" ] ; then
122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123 | # IBM's JDK on AIX uses strange locations for the executables
124 | JAVACMD=$JAVA_HOME/jre/sh/java
125 | else
126 | JAVACMD=$JAVA_HOME/bin/java
127 | fi
128 | if [ ! -x "$JAVACMD" ] ; then
129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130 |
131 | Please set the JAVA_HOME variable in your environment to match the
132 | location of your Java installation."
133 | fi
134 | else
135 | JAVACMD=java
136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137 |
138 | Please set the JAVA_HOME variable in your environment to match the
139 | location of your Java installation."
140 | fi
141 |
142 | # Increase the maximum file descriptors if we can.
143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144 | case $MAX_FD in #(
145 | max*)
146 | MAX_FD=$( ulimit -H -n ) ||
147 | warn "Could not query maximum file descriptor limit"
148 | esac
149 | case $MAX_FD in #(
150 | '' | soft) :;; #(
151 | *)
152 | ulimit -n "$MAX_FD" ||
153 | warn "Could not set maximum file descriptor limit to $MAX_FD"
154 | esac
155 | fi
156 |
157 | # Collect all arguments for the java command, stacking in reverse order:
158 | # * args from the command line
159 | # * the main class name
160 | # * -classpath
161 | # * -D...appname settings
162 | # * --module-path (only if needed)
163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
164 |
165 | # For Cygwin or MSYS, switch paths to Windows format before running java
166 | if "$cygwin" || "$msys" ; then
167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169 |
170 | JAVACMD=$( cygpath --unix "$JAVACMD" )
171 |
172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
173 | for arg do
174 | if
175 | case $arg in #(
176 | -*) false ;; # don't mess with options #(
177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
178 | [ -e "$t" ] ;; #(
179 | *) false ;;
180 | esac
181 | then
182 | arg=$( cygpath --path --ignore --mixed "$arg" )
183 | fi
184 | # Roll the args list around exactly as many times as the number of
185 | # args, so each arg winds up back in the position where it started, but
186 | # possibly modified.
187 | #
188 | # NB: a `for` loop captures its iteration list before it begins, so
189 | # changing the positional parameters here affects neither the number of
190 | # iterations, nor the values presented in `arg`.
191 | shift # remove old arg
192 | set -- "$@" "$arg" # push replacement arg
193 | done
194 | fi
195 |
196 | # Collect all arguments for the java command;
197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198 | # shell script including quotes and variable substitutions, so put them in
199 | # double quotes to make sure that they get re-expanded; and
200 | # * put everything else in single quotes, so that it's not re-expanded.
201 |
202 | set -- \
203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
204 | -classpath "$CLASSPATH" \
205 | org.gradle.wrapper.GradleWrapperMain \
206 | "$@"
207 |
208 | # Use "xargs" to parse quoted args.
209 | #
210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
211 | #
212 | # In Bash we could simply go:
213 | #
214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
215 | # set -- "${ARGS[@]}" "$@"
216 | #
217 | # but POSIX shell has neither arrays nor command substitution, so instead we
218 | # post-process each arg (as a line of input to sed) to backslash-escape any
219 | # character that might be a shell metacharacter, then use eval to reverse
220 | # that process (while maintaining the separation between arguments), and wrap
221 | # the whole thing up as a single "set" statement.
222 | #
223 | # This will of course break if any of these variables contains a newline or
224 | # an unmatched quote.
225 | #
226 |
227 | eval "set -- $(
228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
229 | xargs -n1 |
230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
231 | tr '\n' ' '
232 | )" '"$@"'
233 |
234 | exec "$JAVACMD" "$@"
235 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
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
90 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'ReactNavigationV6'
2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3 | include ':app'
4 | includeBuild('../node_modules/react-native-gradle-plugin')
5 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ReactNavigationV6",
3 | "displayName": "ReactNavigationV6",
4 | "entryPoint": "index.js",
5 | "packagerOpts": {
6 | "assetExts": ["ttf", "png"],
7 | "sourceExts": ["ts", "tsx"]
8 | }
9 | }
--------------------------------------------------------------------------------
/assets/icons/mask.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/assets/icons/mask.png
--------------------------------------------------------------------------------
/assets/icons/mask@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/assets/icons/mask@2x.png
--------------------------------------------------------------------------------
/assets/icons/mask@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hyochan/react-navigation-sample/e6baefc7a5f2c2f0b21ed345968fdfc379922765/assets/icons/mask@3x.png
--------------------------------------------------------------------------------
/assets/langs/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "HELLO": "Hello",
3 | "LOGIN": "Login",
4 | "EMAIL": "Email",
5 | "PASSWORD": "Password",
6 | "SIGNUP": "SIGN UP",
7 | "FORGOT_PW": "Forgot password?",
8 | "NAVIGATE": "Navigate",
9 | "CHANGE_THEME": "Change theme"
10 | }
11 |
--------------------------------------------------------------------------------
/assets/langs/ko.json:
--------------------------------------------------------------------------------
1 | {
2 | "HELLO": "안녕하세요",
3 | "LOGIN": "로그인",
4 | "EMAIL": "이메일",
5 | "PASSWORD": "패스워드",
6 | "SIGNUP": "회원가입",
7 | "FORGOT_PW": "비밀번호를 잊어버리셨나요?",
8 | "NAVIGATE": "이동하기",
9 | "CHANGE_THEME": "테마 변경"
10 | }
11 |
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | plugins: ['react-native-reanimated/plugin', 'babel-plugin-styled-components'],
4 | };
5 |
--------------------------------------------------------------------------------
/codecov.yml:
--------------------------------------------------------------------------------
1 | codecov:
2 | token: e1a38301-c4c4-4256-b0a3-e717f24881e5
3 | notify:
4 | require_ci_to_pass: yes
5 |
6 | coverage:
7 | precision: 2
8 | round: down
9 | range: '70...100'
10 |
11 | status:
12 | project: yes
13 | patch: yes
14 | changes: no
15 |
16 | parsers:
17 | gcov:
18 | branch_detection:
19 | conditional: yes
20 | loop: yes
21 | method: no
22 | macro: no
23 |
24 | comment:
25 | layout: 'header, diff'
26 | behavior: default
27 | require_changes: no
28 |
--------------------------------------------------------------------------------
/environment.d.ts:
--------------------------------------------------------------------------------
1 | import type {IconType} from './src/types';
2 |
3 | declare module '*.svg' {
4 | const content: IconType;
5 | export default content;
6 | }
7 |
8 | declare module '*.json' {
9 | const content;
10 | export default content;
11 | }
12 |
13 | declare module '*.png' {
14 | const content;
15 | export default content;
16 | }
17 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import App from './src/App';
6 | import {AppRegistry} from 'react-native';
7 | import {name as appName} from './app.json';
8 |
9 | AppRegistry.registerComponent(appName, () => App);
10 |
--------------------------------------------------------------------------------
/ios/.xcode.env:
--------------------------------------------------------------------------------
1 | # This `.xcode.env` file is versioned and is used to source the environment
2 | # used when running script phases inside Xcode.
3 | # To customize your local environment, you can create an `.xcode.env.local`
4 | # file that is not versioned.
5 |
6 | # NODE_BINARY variable contains the PATH to the node executable.
7 | #
8 | # Customize the NODE_BINARY variable here.
9 | # For example, to use nvm with brew, add the following line
10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use
11 | export NODE_BINARY=$(command -v node)
12 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | require_relative '../node_modules/react-native/scripts/react_native_pods'
2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3 |
4 | platform :ios, min_ios_version_supported
5 | prepare_react_native_project!
6 |
7 | # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
8 | # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
9 | #
10 | # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
11 | # ```js
12 | # module.exports = {
13 | # dependencies: {
14 | # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
15 | # ```
16 | flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
17 |
18 | linkage = ENV['USE_FRAMEWORKS']
19 | if linkage != nil
20 | Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
21 | use_frameworks! :linkage => linkage.to_sym
22 | end
23 |
24 | target 'ReactNavigationV6' do
25 | config = use_native_modules!
26 |
27 | # Flags change depending on the env values.
28 | flags = get_default_flags()
29 |
30 | use_react_native!(
31 | :path => config[:reactNativePath],
32 | # Hermes is now enabled by default. Disable by setting this flag to false.
33 | # Upcoming versions of React Native may rely on get_default_flags(), but
34 | # we make it explicit here to aid in the React Native upgrade process.
35 | :hermes_enabled => flags[:hermes_enabled],
36 | :fabric_enabled => flags[:fabric_enabled],
37 | # Enables Flipper.
38 | #
39 | # Note that if you have use_frameworks! enabled, Flipper will not work and
40 | # you should disable the next line.
41 | :flipper_configuration => flipper_config,
42 | # An absolute path to your application root.
43 | :app_path => "#{Pod::Config.instance.installation_root}/.."
44 | )
45 |
46 | target 'ReactNavigationV6Tests' do
47 | inherit! :complete
48 | # Pods for testing
49 | end
50 |
51 | post_install do |installer|
52 | react_native_post_install(
53 | installer,
54 | # Set `mac_catalyst_enabled` to `true` in order to apply patches
55 | # necessary for Mac Catalyst builds
56 | :mac_catalyst_enabled => false
57 | )
58 | __apply_Xcode_12_5_M1_post_install_workaround(installer)
59 | end
60 | end
61 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - boost (1.76.0)
3 | - CocoaAsyncSocket (7.6.5)
4 | - DoubleConversion (1.1.6)
5 | - FBLazyVector (0.71.1)
6 | - FBReactNativeSpec (0.71.1):
7 | - RCT-Folly (= 2021.07.22.00)
8 | - RCTRequired (= 0.71.1)
9 | - RCTTypeSafety (= 0.71.1)
10 | - React-Core (= 0.71.1)
11 | - React-jsi (= 0.71.1)
12 | - ReactCommon/turbomodule/core (= 0.71.1)
13 | - Flipper (0.125.0):
14 | - Flipper-Folly (~> 2.6)
15 | - Flipper-RSocket (~> 1.4)
16 | - Flipper-Boost-iOSX (1.76.0.1.11)
17 | - Flipper-DoubleConversion (3.2.0.1)
18 | - Flipper-Fmt (7.1.7)
19 | - Flipper-Folly (2.6.10):
20 | - Flipper-Boost-iOSX
21 | - Flipper-DoubleConversion
22 | - Flipper-Fmt (= 7.1.7)
23 | - Flipper-Glog
24 | - libevent (~> 2.1.12)
25 | - OpenSSL-Universal (= 1.1.1100)
26 | - Flipper-Glog (0.5.0.5)
27 | - Flipper-PeerTalk (0.0.4)
28 | - Flipper-RSocket (1.4.3):
29 | - Flipper-Folly (~> 2.6)
30 | - FlipperKit (0.125.0):
31 | - FlipperKit/Core (= 0.125.0)
32 | - FlipperKit/Core (0.125.0):
33 | - Flipper (~> 0.125.0)
34 | - FlipperKit/CppBridge
35 | - FlipperKit/FBCxxFollyDynamicConvert
36 | - FlipperKit/FBDefines
37 | - FlipperKit/FKPortForwarding
38 | - SocketRocket (~> 0.6.0)
39 | - FlipperKit/CppBridge (0.125.0):
40 | - Flipper (~> 0.125.0)
41 | - FlipperKit/FBCxxFollyDynamicConvert (0.125.0):
42 | - Flipper-Folly (~> 2.6)
43 | - FlipperKit/FBDefines (0.125.0)
44 | - FlipperKit/FKPortForwarding (0.125.0):
45 | - CocoaAsyncSocket (~> 7.6)
46 | - Flipper-PeerTalk (~> 0.0.4)
47 | - FlipperKit/FlipperKitHighlightOverlay (0.125.0)
48 | - FlipperKit/FlipperKitLayoutHelpers (0.125.0):
49 | - FlipperKit/Core
50 | - FlipperKit/FlipperKitHighlightOverlay
51 | - FlipperKit/FlipperKitLayoutTextSearchable
52 | - FlipperKit/FlipperKitLayoutIOSDescriptors (0.125.0):
53 | - FlipperKit/Core
54 | - FlipperKit/FlipperKitHighlightOverlay
55 | - FlipperKit/FlipperKitLayoutHelpers
56 | - YogaKit (~> 1.18)
57 | - FlipperKit/FlipperKitLayoutPlugin (0.125.0):
58 | - FlipperKit/Core
59 | - FlipperKit/FlipperKitHighlightOverlay
60 | - FlipperKit/FlipperKitLayoutHelpers
61 | - FlipperKit/FlipperKitLayoutIOSDescriptors
62 | - FlipperKit/FlipperKitLayoutTextSearchable
63 | - YogaKit (~> 1.18)
64 | - FlipperKit/FlipperKitLayoutTextSearchable (0.125.0)
65 | - FlipperKit/FlipperKitNetworkPlugin (0.125.0):
66 | - FlipperKit/Core
67 | - FlipperKit/FlipperKitReactPlugin (0.125.0):
68 | - FlipperKit/Core
69 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.125.0):
70 | - FlipperKit/Core
71 | - FlipperKit/SKIOSNetworkPlugin (0.125.0):
72 | - FlipperKit/Core
73 | - FlipperKit/FlipperKitNetworkPlugin
74 | - fmt (6.2.1)
75 | - glog (0.3.5)
76 | - hermes-engine (0.71.1):
77 | - hermes-engine/Pre-built (= 0.71.1)
78 | - hermes-engine/Pre-built (0.71.1)
79 | - libevent (2.1.12)
80 | - OpenSSL-Universal (1.1.1100)
81 | - RCT-Folly (2021.07.22.00):
82 | - boost
83 | - DoubleConversion
84 | - fmt (~> 6.2.1)
85 | - glog
86 | - RCT-Folly/Default (= 2021.07.22.00)
87 | - RCT-Folly/Default (2021.07.22.00):
88 | - boost
89 | - DoubleConversion
90 | - fmt (~> 6.2.1)
91 | - glog
92 | - RCT-Folly/Futures (2021.07.22.00):
93 | - boost
94 | - DoubleConversion
95 | - fmt (~> 6.2.1)
96 | - glog
97 | - libevent
98 | - RCTRequired (0.71.1)
99 | - RCTTypeSafety (0.71.1):
100 | - FBLazyVector (= 0.71.1)
101 | - RCTRequired (= 0.71.1)
102 | - React-Core (= 0.71.1)
103 | - React (0.71.1):
104 | - React-Core (= 0.71.1)
105 | - React-Core/DevSupport (= 0.71.1)
106 | - React-Core/RCTWebSocket (= 0.71.1)
107 | - React-RCTActionSheet (= 0.71.1)
108 | - React-RCTAnimation (= 0.71.1)
109 | - React-RCTBlob (= 0.71.1)
110 | - React-RCTImage (= 0.71.1)
111 | - React-RCTLinking (= 0.71.1)
112 | - React-RCTNetwork (= 0.71.1)
113 | - React-RCTSettings (= 0.71.1)
114 | - React-RCTText (= 0.71.1)
115 | - React-RCTVibration (= 0.71.1)
116 | - React-callinvoker (0.71.1)
117 | - React-Codegen (0.71.1):
118 | - FBReactNativeSpec
119 | - hermes-engine
120 | - RCT-Folly
121 | - RCTRequired
122 | - RCTTypeSafety
123 | - React-Core
124 | - React-jsi
125 | - React-jsiexecutor
126 | - ReactCommon/turbomodule/bridging
127 | - ReactCommon/turbomodule/core
128 | - React-Core (0.71.1):
129 | - glog
130 | - RCT-Folly (= 2021.07.22.00)
131 | - React-Core/Default (= 0.71.1)
132 | - React-cxxreact (= 0.71.1)
133 | - React-jsi (= 0.71.1)
134 | - React-jsiexecutor (= 0.71.1)
135 | - React-perflogger (= 0.71.1)
136 | - Yoga
137 | - React-Core/CoreModulesHeaders (0.71.1):
138 | - glog
139 | - RCT-Folly (= 2021.07.22.00)
140 | - React-Core/Default
141 | - React-cxxreact (= 0.71.1)
142 | - React-jsi (= 0.71.1)
143 | - React-jsiexecutor (= 0.71.1)
144 | - React-perflogger (= 0.71.1)
145 | - Yoga
146 | - React-Core/Default (0.71.1):
147 | - glog
148 | - RCT-Folly (= 2021.07.22.00)
149 | - React-cxxreact (= 0.71.1)
150 | - React-jsi (= 0.71.1)
151 | - React-jsiexecutor (= 0.71.1)
152 | - React-perflogger (= 0.71.1)
153 | - Yoga
154 | - React-Core/DevSupport (0.71.1):
155 | - glog
156 | - RCT-Folly (= 2021.07.22.00)
157 | - React-Core/Default (= 0.71.1)
158 | - React-Core/RCTWebSocket (= 0.71.1)
159 | - React-cxxreact (= 0.71.1)
160 | - React-jsi (= 0.71.1)
161 | - React-jsiexecutor (= 0.71.1)
162 | - React-jsinspector (= 0.71.1)
163 | - React-perflogger (= 0.71.1)
164 | - Yoga
165 | - React-Core/RCTActionSheetHeaders (0.71.1):
166 | - glog
167 | - RCT-Folly (= 2021.07.22.00)
168 | - React-Core/Default
169 | - React-cxxreact (= 0.71.1)
170 | - React-jsi (= 0.71.1)
171 | - React-jsiexecutor (= 0.71.1)
172 | - React-perflogger (= 0.71.1)
173 | - Yoga
174 | - React-Core/RCTAnimationHeaders (0.71.1):
175 | - glog
176 | - RCT-Folly (= 2021.07.22.00)
177 | - React-Core/Default
178 | - React-cxxreact (= 0.71.1)
179 | - React-jsi (= 0.71.1)
180 | - React-jsiexecutor (= 0.71.1)
181 | - React-perflogger (= 0.71.1)
182 | - Yoga
183 | - React-Core/RCTBlobHeaders (0.71.1):
184 | - glog
185 | - RCT-Folly (= 2021.07.22.00)
186 | - React-Core/Default
187 | - React-cxxreact (= 0.71.1)
188 | - React-jsi (= 0.71.1)
189 | - React-jsiexecutor (= 0.71.1)
190 | - React-perflogger (= 0.71.1)
191 | - Yoga
192 | - React-Core/RCTImageHeaders (0.71.1):
193 | - glog
194 | - RCT-Folly (= 2021.07.22.00)
195 | - React-Core/Default
196 | - React-cxxreact (= 0.71.1)
197 | - React-jsi (= 0.71.1)
198 | - React-jsiexecutor (= 0.71.1)
199 | - React-perflogger (= 0.71.1)
200 | - Yoga
201 | - React-Core/RCTLinkingHeaders (0.71.1):
202 | - glog
203 | - RCT-Folly (= 2021.07.22.00)
204 | - React-Core/Default
205 | - React-cxxreact (= 0.71.1)
206 | - React-jsi (= 0.71.1)
207 | - React-jsiexecutor (= 0.71.1)
208 | - React-perflogger (= 0.71.1)
209 | - Yoga
210 | - React-Core/RCTNetworkHeaders (0.71.1):
211 | - glog
212 | - RCT-Folly (= 2021.07.22.00)
213 | - React-Core/Default
214 | - React-cxxreact (= 0.71.1)
215 | - React-jsi (= 0.71.1)
216 | - React-jsiexecutor (= 0.71.1)
217 | - React-perflogger (= 0.71.1)
218 | - Yoga
219 | - React-Core/RCTSettingsHeaders (0.71.1):
220 | - glog
221 | - RCT-Folly (= 2021.07.22.00)
222 | - React-Core/Default
223 | - React-cxxreact (= 0.71.1)
224 | - React-jsi (= 0.71.1)
225 | - React-jsiexecutor (= 0.71.1)
226 | - React-perflogger (= 0.71.1)
227 | - Yoga
228 | - React-Core/RCTTextHeaders (0.71.1):
229 | - glog
230 | - RCT-Folly (= 2021.07.22.00)
231 | - React-Core/Default
232 | - React-cxxreact (= 0.71.1)
233 | - React-jsi (= 0.71.1)
234 | - React-jsiexecutor (= 0.71.1)
235 | - React-perflogger (= 0.71.1)
236 | - Yoga
237 | - React-Core/RCTVibrationHeaders (0.71.1):
238 | - glog
239 | - RCT-Folly (= 2021.07.22.00)
240 | - React-Core/Default
241 | - React-cxxreact (= 0.71.1)
242 | - React-jsi (= 0.71.1)
243 | - React-jsiexecutor (= 0.71.1)
244 | - React-perflogger (= 0.71.1)
245 | - Yoga
246 | - React-Core/RCTWebSocket (0.71.1):
247 | - glog
248 | - RCT-Folly (= 2021.07.22.00)
249 | - React-Core/Default (= 0.71.1)
250 | - React-cxxreact (= 0.71.1)
251 | - React-jsi (= 0.71.1)
252 | - React-jsiexecutor (= 0.71.1)
253 | - React-perflogger (= 0.71.1)
254 | - Yoga
255 | - React-CoreModules (0.71.1):
256 | - RCT-Folly (= 2021.07.22.00)
257 | - RCTTypeSafety (= 0.71.1)
258 | - React-Codegen (= 0.71.1)
259 | - React-Core/CoreModulesHeaders (= 0.71.1)
260 | - React-jsi (= 0.71.1)
261 | - React-RCTImage (= 0.71.1)
262 | - ReactCommon/turbomodule/core (= 0.71.1)
263 | - React-cxxreact (0.71.1):
264 | - boost (= 1.76.0)
265 | - DoubleConversion
266 | - glog
267 | - RCT-Folly (= 2021.07.22.00)
268 | - React-callinvoker (= 0.71.1)
269 | - React-jsi (= 0.71.1)
270 | - React-jsinspector (= 0.71.1)
271 | - React-logger (= 0.71.1)
272 | - React-perflogger (= 0.71.1)
273 | - React-runtimeexecutor (= 0.71.1)
274 | - React-hermes (0.71.1):
275 | - DoubleConversion
276 | - glog
277 | - hermes-engine
278 | - RCT-Folly (= 2021.07.22.00)
279 | - RCT-Folly/Futures (= 2021.07.22.00)
280 | - React-cxxreact (= 0.71.1)
281 | - React-jsiexecutor (= 0.71.1)
282 | - React-jsinspector (= 0.71.1)
283 | - React-perflogger (= 0.71.1)
284 | - React-jsi (0.71.1):
285 | - boost (= 1.76.0)
286 | - DoubleConversion
287 | - glog
288 | - hermes-engine
289 | - RCT-Folly (= 2021.07.22.00)
290 | - React-jsiexecutor (0.71.1):
291 | - DoubleConversion
292 | - glog
293 | - RCT-Folly (= 2021.07.22.00)
294 | - React-cxxreact (= 0.71.1)
295 | - React-jsi (= 0.71.1)
296 | - React-perflogger (= 0.71.1)
297 | - React-jsinspector (0.71.1)
298 | - React-logger (0.71.1):
299 | - glog
300 | - react-native-pager-view (6.1.2):
301 | - React-Core
302 | - react-native-safe-area-context (4.5.0):
303 | - RCT-Folly
304 | - RCTRequired
305 | - RCTTypeSafety
306 | - React-Core
307 | - ReactCommon/turbomodule/core
308 | - React-perflogger (0.71.1)
309 | - React-RCTActionSheet (0.71.1):
310 | - React-Core/RCTActionSheetHeaders (= 0.71.1)
311 | - React-RCTAnimation (0.71.1):
312 | - RCT-Folly (= 2021.07.22.00)
313 | - RCTTypeSafety (= 0.71.1)
314 | - React-Codegen (= 0.71.1)
315 | - React-Core/RCTAnimationHeaders (= 0.71.1)
316 | - React-jsi (= 0.71.1)
317 | - ReactCommon/turbomodule/core (= 0.71.1)
318 | - React-RCTAppDelegate (0.71.1):
319 | - RCT-Folly
320 | - RCTRequired
321 | - RCTTypeSafety
322 | - React-Core
323 | - ReactCommon/turbomodule/core
324 | - React-RCTBlob (0.71.1):
325 | - RCT-Folly (= 2021.07.22.00)
326 | - React-Codegen (= 0.71.1)
327 | - React-Core/RCTBlobHeaders (= 0.71.1)
328 | - React-Core/RCTWebSocket (= 0.71.1)
329 | - React-jsi (= 0.71.1)
330 | - React-RCTNetwork (= 0.71.1)
331 | - ReactCommon/turbomodule/core (= 0.71.1)
332 | - React-RCTImage (0.71.1):
333 | - RCT-Folly (= 2021.07.22.00)
334 | - RCTTypeSafety (= 0.71.1)
335 | - React-Codegen (= 0.71.1)
336 | - React-Core/RCTImageHeaders (= 0.71.1)
337 | - React-jsi (= 0.71.1)
338 | - React-RCTNetwork (= 0.71.1)
339 | - ReactCommon/turbomodule/core (= 0.71.1)
340 | - React-RCTLinking (0.71.1):
341 | - React-Codegen (= 0.71.1)
342 | - React-Core/RCTLinkingHeaders (= 0.71.1)
343 | - React-jsi (= 0.71.1)
344 | - ReactCommon/turbomodule/core (= 0.71.1)
345 | - React-RCTNetwork (0.71.1):
346 | - RCT-Folly (= 2021.07.22.00)
347 | - RCTTypeSafety (= 0.71.1)
348 | - React-Codegen (= 0.71.1)
349 | - React-Core/RCTNetworkHeaders (= 0.71.1)
350 | - React-jsi (= 0.71.1)
351 | - ReactCommon/turbomodule/core (= 0.71.1)
352 | - React-RCTSettings (0.71.1):
353 | - RCT-Folly (= 2021.07.22.00)
354 | - RCTTypeSafety (= 0.71.1)
355 | - React-Codegen (= 0.71.1)
356 | - React-Core/RCTSettingsHeaders (= 0.71.1)
357 | - React-jsi (= 0.71.1)
358 | - ReactCommon/turbomodule/core (= 0.71.1)
359 | - React-RCTText (0.71.1):
360 | - React-Core/RCTTextHeaders (= 0.71.1)
361 | - React-RCTVibration (0.71.1):
362 | - RCT-Folly (= 2021.07.22.00)
363 | - React-Codegen (= 0.71.1)
364 | - React-Core/RCTVibrationHeaders (= 0.71.1)
365 | - React-jsi (= 0.71.1)
366 | - ReactCommon/turbomodule/core (= 0.71.1)
367 | - React-runtimeexecutor (0.71.1):
368 | - React-jsi (= 0.71.1)
369 | - ReactCommon/turbomodule/bridging (0.71.1):
370 | - DoubleConversion
371 | - glog
372 | - RCT-Folly (= 2021.07.22.00)
373 | - React-callinvoker (= 0.71.1)
374 | - React-Core (= 0.71.1)
375 | - React-cxxreact (= 0.71.1)
376 | - React-jsi (= 0.71.1)
377 | - React-logger (= 0.71.1)
378 | - React-perflogger (= 0.71.1)
379 | - ReactCommon/turbomodule/core (0.71.1):
380 | - DoubleConversion
381 | - glog
382 | - RCT-Folly (= 2021.07.22.00)
383 | - React-callinvoker (= 0.71.1)
384 | - React-Core (= 0.71.1)
385 | - React-cxxreact (= 0.71.1)
386 | - React-jsi (= 0.71.1)
387 | - React-logger (= 0.71.1)
388 | - React-perflogger (= 0.71.1)
389 | - RNGestureHandler (2.9.0):
390 | - React-Core
391 | - RNReanimated (2.14.4):
392 | - DoubleConversion
393 | - FBLazyVector
394 | - FBReactNativeSpec
395 | - glog
396 | - RCT-Folly
397 | - RCTRequired
398 | - RCTTypeSafety
399 | - React-callinvoker
400 | - React-Core
401 | - React-Core/DevSupport
402 | - React-Core/RCTWebSocket
403 | - React-CoreModules
404 | - React-cxxreact
405 | - React-jsi
406 | - React-jsiexecutor
407 | - React-jsinspector
408 | - React-RCTActionSheet
409 | - React-RCTAnimation
410 | - React-RCTBlob
411 | - React-RCTImage
412 | - React-RCTLinking
413 | - React-RCTNetwork
414 | - React-RCTSettings
415 | - React-RCTText
416 | - ReactCommon/turbomodule/core
417 | - Yoga
418 | - RNScreens (3.19.0):
419 | - React-Core
420 | - React-RCTImage
421 | - RNVectorIcons (9.2.0):
422 | - React-Core
423 | - SocketRocket (0.6.0)
424 | - Yoga (1.14.0)
425 | - YogaKit (1.18.1):
426 | - Yoga (~> 1.14)
427 |
428 | DEPENDENCIES:
429 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
430 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
431 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
432 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
433 | - Flipper (= 0.125.0)
434 | - Flipper-Boost-iOSX (= 1.76.0.1.11)
435 | - Flipper-DoubleConversion (= 3.2.0.1)
436 | - Flipper-Fmt (= 7.1.7)
437 | - Flipper-Folly (= 2.6.10)
438 | - Flipper-Glog (= 0.5.0.5)
439 | - Flipper-PeerTalk (= 0.0.4)
440 | - Flipper-RSocket (= 1.4.3)
441 | - FlipperKit (= 0.125.0)
442 | - FlipperKit/Core (= 0.125.0)
443 | - FlipperKit/CppBridge (= 0.125.0)
444 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.125.0)
445 | - FlipperKit/FBDefines (= 0.125.0)
446 | - FlipperKit/FKPortForwarding (= 0.125.0)
447 | - FlipperKit/FlipperKitHighlightOverlay (= 0.125.0)
448 | - FlipperKit/FlipperKitLayoutPlugin (= 0.125.0)
449 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.125.0)
450 | - FlipperKit/FlipperKitNetworkPlugin (= 0.125.0)
451 | - FlipperKit/FlipperKitReactPlugin (= 0.125.0)
452 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.125.0)
453 | - FlipperKit/SKIOSNetworkPlugin (= 0.125.0)
454 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
455 | - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
456 | - libevent (~> 2.1.12)
457 | - OpenSSL-Universal (= 1.1.1100)
458 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
459 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
460 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
461 | - React (from `../node_modules/react-native/`)
462 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
463 | - React-Codegen (from `build/generated/ios`)
464 | - React-Core (from `../node_modules/react-native/`)
465 | - React-Core/DevSupport (from `../node_modules/react-native/`)
466 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
467 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
468 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
469 | - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`)
470 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
471 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
472 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
473 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
474 | - react-native-pager-view (from `../node_modules/react-native-pager-view`)
475 | - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
476 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
477 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
478 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
479 | - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`)
480 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
481 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
482 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
483 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
484 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
485 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
486 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
487 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
488 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
489 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
490 | - RNReanimated (from `../node_modules/react-native-reanimated`)
491 | - RNScreens (from `../node_modules/react-native-screens`)
492 | - RNVectorIcons (from `../node_modules/react-native-vector-icons`)
493 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
494 |
495 | SPEC REPOS:
496 | trunk:
497 | - CocoaAsyncSocket
498 | - Flipper
499 | - Flipper-Boost-iOSX
500 | - Flipper-DoubleConversion
501 | - Flipper-Fmt
502 | - Flipper-Folly
503 | - Flipper-Glog
504 | - Flipper-PeerTalk
505 | - Flipper-RSocket
506 | - FlipperKit
507 | - fmt
508 | - libevent
509 | - OpenSSL-Universal
510 | - SocketRocket
511 | - YogaKit
512 |
513 | EXTERNAL SOURCES:
514 | boost:
515 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
516 | DoubleConversion:
517 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
518 | FBLazyVector:
519 | :path: "../node_modules/react-native/Libraries/FBLazyVector"
520 | FBReactNativeSpec:
521 | :path: "../node_modules/react-native/React/FBReactNativeSpec"
522 | glog:
523 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
524 | hermes-engine:
525 | :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
526 | RCT-Folly:
527 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
528 | RCTRequired:
529 | :path: "../node_modules/react-native/Libraries/RCTRequired"
530 | RCTTypeSafety:
531 | :path: "../node_modules/react-native/Libraries/TypeSafety"
532 | React:
533 | :path: "../node_modules/react-native/"
534 | React-callinvoker:
535 | :path: "../node_modules/react-native/ReactCommon/callinvoker"
536 | React-Codegen:
537 | :path: build/generated/ios
538 | React-Core:
539 | :path: "../node_modules/react-native/"
540 | React-CoreModules:
541 | :path: "../node_modules/react-native/React/CoreModules"
542 | React-cxxreact:
543 | :path: "../node_modules/react-native/ReactCommon/cxxreact"
544 | React-hermes:
545 | :path: "../node_modules/react-native/ReactCommon/hermes"
546 | React-jsi:
547 | :path: "../node_modules/react-native/ReactCommon/jsi"
548 | React-jsiexecutor:
549 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
550 | React-jsinspector:
551 | :path: "../node_modules/react-native/ReactCommon/jsinspector"
552 | React-logger:
553 | :path: "../node_modules/react-native/ReactCommon/logger"
554 | react-native-pager-view:
555 | :path: "../node_modules/react-native-pager-view"
556 | react-native-safe-area-context:
557 | :path: "../node_modules/react-native-safe-area-context"
558 | React-perflogger:
559 | :path: "../node_modules/react-native/ReactCommon/reactperflogger"
560 | React-RCTActionSheet:
561 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
562 | React-RCTAnimation:
563 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
564 | React-RCTAppDelegate:
565 | :path: "../node_modules/react-native/Libraries/AppDelegate"
566 | React-RCTBlob:
567 | :path: "../node_modules/react-native/Libraries/Blob"
568 | React-RCTImage:
569 | :path: "../node_modules/react-native/Libraries/Image"
570 | React-RCTLinking:
571 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
572 | React-RCTNetwork:
573 | :path: "../node_modules/react-native/Libraries/Network"
574 | React-RCTSettings:
575 | :path: "../node_modules/react-native/Libraries/Settings"
576 | React-RCTText:
577 | :path: "../node_modules/react-native/Libraries/Text"
578 | React-RCTVibration:
579 | :path: "../node_modules/react-native/Libraries/Vibration"
580 | React-runtimeexecutor:
581 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
582 | ReactCommon:
583 | :path: "../node_modules/react-native/ReactCommon"
584 | RNGestureHandler:
585 | :path: "../node_modules/react-native-gesture-handler"
586 | RNReanimated:
587 | :path: "../node_modules/react-native-reanimated"
588 | RNScreens:
589 | :path: "../node_modules/react-native-screens"
590 | RNVectorIcons:
591 | :path: "../node_modules/react-native-vector-icons"
592 | Yoga:
593 | :path: "../node_modules/react-native/ReactCommon/yoga"
594 |
595 | SPEC CHECKSUMS:
596 | boost: 57d2868c099736d80fcd648bf211b4431e51a558
597 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
598 | DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
599 | FBLazyVector: ad72713385db5289b19f1ead07e8e4aa26dcb01d
600 | FBReactNativeSpec: df2602c11e33d310433496e28a48b4b2be652a61
601 | Flipper: 26fc4b7382499f1281eb8cb921e5c3ad6de91fe0
602 | Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c
603 | Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30
604 | Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b
605 | Flipper-Folly: 584845625005ff068a6ebf41f857f468decd26b3
606 | Flipper-Glog: 70c50ce58ddaf67dc35180db05f191692570f446
607 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
608 | Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541
609 | FlipperKit: cbdee19bdd4e7f05472a66ce290f1b729ba3cb86
610 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
611 | glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
612 | hermes-engine: 922ccd744f50d9bfde09e9677bf0f3b562ea5fb9
613 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
614 | OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
615 | RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
616 | RCTRequired: fd4d923b964658aa0c4091a32c8b2004c6d9e3a6
617 | RCTTypeSafety: c276d85975bde3d8448907235c70bf0da257adfd
618 | React: e481a67971af1ce9639c9f746b753dd0e84ca108
619 | React-callinvoker: 1051c04a94fa9d243786b86380606bad701a3b31
620 | React-Codegen: 14b1e716d361d5ad95e0ce1a338f3fa0733a98b5
621 | React-Core: 698fc3baecb80d511d987475a16d036cec6d287f
622 | React-CoreModules: 59245305f41ff0adfeac334acc0594dea4585a7c
623 | React-cxxreact: 49accd2954b0f532805dbcd1918fa6962f32f247
624 | React-hermes: d068733294581a085e95b6024e8d951b005e26d3
625 | React-jsi: 122b9bce14f4c6c7cb58f28f87912cfe091885fa
626 | React-jsiexecutor: 60cf272aababc5212410e4249d17cea14fc36caa
627 | React-jsinspector: ff56004b0c974b688a6548c156d5830ad751ae07
628 | React-logger: 60a0b5f8bed667ecf9e24fecca1f30d125de6d75
629 | react-native-pager-view: 54bed894cecebe28cede54c01038d9d1e122de43
630 | react-native-safe-area-context: 39c2d8be3328df5d437ac1700f4f3a4f75716acc
631 | React-perflogger: ec8eef2a8f03ecfa6361c2c5fb9197ef4a29cc85
632 | React-RCTActionSheet: a0c023b86cf4c862fa9c4eb0f6f91fbe878fb2de
633 | React-RCTAnimation: 168d53718c74153947c0109f55900faa64d79439
634 | React-RCTAppDelegate: a8efbab128b34aa07a9491c85a41401210b1bec5
635 | React-RCTBlob: 9bcbfc893bfda9f6b2eb016329d38c0f6366d31a
636 | React-RCTImage: 3fcd4570b4b0f1ac2f4b4b6308dba33ce66c5b50
637 | React-RCTLinking: 1edb8e1bb3fc39bf9e13c63d6aaaa3f0c3d18683
638 | React-RCTNetwork: 500a79e0e0f67678077df727fabba87a55c043e1
639 | React-RCTSettings: cc4414eb84ad756d619076c3999fecbf12896d6f
640 | React-RCTText: 2a34261f3da6e34f47a62154def657546ebfa5e1
641 | React-RCTVibration: 49d531ec8498e0afa2c9b22c2205784372e3d4f3
642 | React-runtimeexecutor: 311feb67600774723fe10eb8801d3138cae9ad67
643 | ReactCommon: 03be76588338a27a88d103b35c3c44a3fd43d136
644 | RNGestureHandler: 071d7a9ad81e8b83fe7663b303d132406a7d8f39
645 | RNReanimated: cc5e3aa479cb9170bcccf8204291a6950a3be128
646 | RNScreens: ea4cd3a853063cda19a4e3c28d2e52180c80f4eb
647 | RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
648 | SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
649 | Yoga: 921eb014669cf9c718ada68b08d362517d564e0c
650 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
651 |
652 | PODFILE CHECKSUM: 9af0d37256b24a439059bbb2d96371a3ab2cc494
653 |
654 | COCOAPODS: 1.11.3
655 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00E356F31AD99517003FC87E /* ReactNavigationV6Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNavigationV6Tests.m */; };
11 | 0C80B921A6F3F58F76C31292 /* libPods-ReactNavigationV6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNavigationV6.a */; };
12 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15 | 7699B88040F8A987B510C191 /* libPods-ReactNavigationV6-ReactNavigationV6Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNavigationV6-ReactNavigationV6Tests.a */; };
16 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXContainerItemProxy section */
20 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
21 | isa = PBXContainerItemProxy;
22 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
23 | proxyType = 1;
24 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
25 | remoteInfo = ReactNavigationV6;
26 | };
27 | /* End PBXContainerItemProxy section */
28 |
29 | /* Begin PBXFileReference section */
30 | 00E356EE1AD99517003FC87E /* ReactNavigationV6Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNavigationV6Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
31 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
32 | 00E356F21AD99517003FC87E /* ReactNavigationV6Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNavigationV6Tests.m; sourceTree = ""; };
33 | 13B07F961A680F5B00A75B9A /* ReactNavigationV6.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNavigationV6.app; sourceTree = BUILT_PRODUCTS_DIR; };
34 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNavigationV6/AppDelegate.h; sourceTree = ""; };
35 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = ReactNavigationV6/AppDelegate.mm; sourceTree = ""; };
36 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNavigationV6/Images.xcassets; sourceTree = ""; };
37 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNavigationV6/Info.plist; sourceTree = ""; };
38 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNavigationV6/main.m; sourceTree = ""; };
39 | 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNavigationV6-ReactNavigationV6Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNavigationV6-ReactNavigationV6Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
40 | 3B4392A12AC88292D35C810B /* Pods-ReactNavigationV6.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNavigationV6.debug.xcconfig"; path = "Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6.debug.xcconfig"; sourceTree = ""; };
41 | 5709B34CF0A7D63546082F79 /* Pods-ReactNavigationV6.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNavigationV6.release.xcconfig"; path = "Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6.release.xcconfig"; sourceTree = ""; };
42 | 5B7EB9410499542E8C5724F5 /* Pods-ReactNavigationV6-ReactNavigationV6Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNavigationV6-ReactNavigationV6Tests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests.debug.xcconfig"; sourceTree = ""; };
43 | 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNavigationV6.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNavigationV6.a"; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNavigationV6/LaunchScreen.storyboard; sourceTree = ""; };
45 | 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNavigationV6-ReactNavigationV6Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNavigationV6-ReactNavigationV6Tests.release.xcconfig"; path = "Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests.release.xcconfig"; sourceTree = ""; };
46 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
47 | /* End PBXFileReference section */
48 |
49 | /* Begin PBXFrameworksBuildPhase section */
50 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
51 | isa = PBXFrameworksBuildPhase;
52 | buildActionMask = 2147483647;
53 | files = (
54 | 7699B88040F8A987B510C191 /* libPods-ReactNavigationV6-ReactNavigationV6Tests.a in Frameworks */,
55 | );
56 | runOnlyForDeploymentPostprocessing = 0;
57 | };
58 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
59 | isa = PBXFrameworksBuildPhase;
60 | buildActionMask = 2147483647;
61 | files = (
62 | 0C80B921A6F3F58F76C31292 /* libPods-ReactNavigationV6.a in Frameworks */,
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | /* End PBXFrameworksBuildPhase section */
67 |
68 | /* Begin PBXGroup section */
69 | 00E356EF1AD99517003FC87E /* ReactNavigationV6Tests */ = {
70 | isa = PBXGroup;
71 | children = (
72 | 00E356F21AD99517003FC87E /* ReactNavigationV6Tests.m */,
73 | 00E356F01AD99517003FC87E /* Supporting Files */,
74 | );
75 | path = ReactNavigationV6Tests;
76 | sourceTree = "";
77 | };
78 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 00E356F11AD99517003FC87E /* Info.plist */,
82 | );
83 | name = "Supporting Files";
84 | sourceTree = "";
85 | };
86 | 13B07FAE1A68108700A75B9A /* ReactNavigationV6 */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
90 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */,
91 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
92 | 13B07FB61A68108700A75B9A /* Info.plist */,
93 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
94 | 13B07FB71A68108700A75B9A /* main.m */,
95 | );
96 | name = ReactNavigationV6;
97 | sourceTree = "";
98 | };
99 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
100 | isa = PBXGroup;
101 | children = (
102 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
103 | 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNavigationV6.a */,
104 | 19F6CBCC0A4E27FBF8BF4A61 /* libPods-ReactNavigationV6-ReactNavigationV6Tests.a */,
105 | );
106 | name = Frameworks;
107 | sourceTree = "";
108 | };
109 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
110 | isa = PBXGroup;
111 | children = (
112 | );
113 | name = Libraries;
114 | sourceTree = "";
115 | };
116 | 83CBB9F61A601CBA00E9B192 = {
117 | isa = PBXGroup;
118 | children = (
119 | 13B07FAE1A68108700A75B9A /* ReactNavigationV6 */,
120 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
121 | 00E356EF1AD99517003FC87E /* ReactNavigationV6Tests */,
122 | 83CBBA001A601CBA00E9B192 /* Products */,
123 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
124 | BBD78D7AC51CEA395F1C20DB /* Pods */,
125 | );
126 | indentWidth = 2;
127 | sourceTree = "";
128 | tabWidth = 2;
129 | usesTabs = 0;
130 | };
131 | 83CBBA001A601CBA00E9B192 /* Products */ = {
132 | isa = PBXGroup;
133 | children = (
134 | 13B07F961A680F5B00A75B9A /* ReactNavigationV6.app */,
135 | 00E356EE1AD99517003FC87E /* ReactNavigationV6Tests.xctest */,
136 | );
137 | name = Products;
138 | sourceTree = "";
139 | };
140 | BBD78D7AC51CEA395F1C20DB /* Pods */ = {
141 | isa = PBXGroup;
142 | children = (
143 | 3B4392A12AC88292D35C810B /* Pods-ReactNavigationV6.debug.xcconfig */,
144 | 5709B34CF0A7D63546082F79 /* Pods-ReactNavigationV6.release.xcconfig */,
145 | 5B7EB9410499542E8C5724F5 /* Pods-ReactNavigationV6-ReactNavigationV6Tests.debug.xcconfig */,
146 | 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNavigationV6-ReactNavigationV6Tests.release.xcconfig */,
147 | );
148 | path = Pods;
149 | sourceTree = "";
150 | };
151 | /* End PBXGroup section */
152 |
153 | /* Begin PBXNativeTarget section */
154 | 00E356ED1AD99517003FC87E /* ReactNavigationV6Tests */ = {
155 | isa = PBXNativeTarget;
156 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNavigationV6Tests" */;
157 | buildPhases = (
158 | A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */,
159 | 00E356EA1AD99517003FC87E /* Sources */,
160 | 00E356EB1AD99517003FC87E /* Frameworks */,
161 | 00E356EC1AD99517003FC87E /* Resources */,
162 | C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */,
163 | F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */,
164 | );
165 | buildRules = (
166 | );
167 | dependencies = (
168 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
169 | );
170 | name = ReactNavigationV6Tests;
171 | productName = ReactNavigationV6Tests;
172 | productReference = 00E356EE1AD99517003FC87E /* ReactNavigationV6Tests.xctest */;
173 | productType = "com.apple.product-type.bundle.unit-test";
174 | };
175 | 13B07F861A680F5B00A75B9A /* ReactNavigationV6 */ = {
176 | isa = PBXNativeTarget;
177 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNavigationV6" */;
178 | buildPhases = (
179 | C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */,
180 | FD10A7F022414F080027D42C /* Start Packager */,
181 | 13B07F871A680F5B00A75B9A /* Sources */,
182 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
183 | 13B07F8E1A680F5B00A75B9A /* Resources */,
184 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
185 | 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */,
186 | E235C05ADACE081382539298 /* [CP] Copy Pods Resources */,
187 | );
188 | buildRules = (
189 | );
190 | dependencies = (
191 | );
192 | name = ReactNavigationV6;
193 | productName = ReactNavigationV6;
194 | productReference = 13B07F961A680F5B00A75B9A /* ReactNavigationV6.app */;
195 | productType = "com.apple.product-type.application";
196 | };
197 | /* End PBXNativeTarget section */
198 |
199 | /* Begin PBXProject section */
200 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
201 | isa = PBXProject;
202 | attributes = {
203 | LastUpgradeCheck = 1210;
204 | TargetAttributes = {
205 | 00E356ED1AD99517003FC87E = {
206 | CreatedOnToolsVersion = 6.2;
207 | TestTargetID = 13B07F861A680F5B00A75B9A;
208 | };
209 | 13B07F861A680F5B00A75B9A = {
210 | LastSwiftMigration = 1120;
211 | };
212 | };
213 | };
214 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNavigationV6" */;
215 | compatibilityVersion = "Xcode 12.0";
216 | developmentRegion = en;
217 | hasScannedForEncodings = 0;
218 | knownRegions = (
219 | en,
220 | Base,
221 | );
222 | mainGroup = 83CBB9F61A601CBA00E9B192;
223 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
224 | projectDirPath = "";
225 | projectRoot = "";
226 | targets = (
227 | 13B07F861A680F5B00A75B9A /* ReactNavigationV6 */,
228 | 00E356ED1AD99517003FC87E /* ReactNavigationV6Tests */,
229 | );
230 | };
231 | /* End PBXProject section */
232 |
233 | /* Begin PBXResourcesBuildPhase section */
234 | 00E356EC1AD99517003FC87E /* Resources */ = {
235 | isa = PBXResourcesBuildPhase;
236 | buildActionMask = 2147483647;
237 | files = (
238 | );
239 | runOnlyForDeploymentPostprocessing = 0;
240 | };
241 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
242 | isa = PBXResourcesBuildPhase;
243 | buildActionMask = 2147483647;
244 | files = (
245 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
246 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
247 | );
248 | runOnlyForDeploymentPostprocessing = 0;
249 | };
250 | /* End PBXResourcesBuildPhase section */
251 |
252 | /* Begin PBXShellScriptBuildPhase section */
253 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
254 | isa = PBXShellScriptBuildPhase;
255 | buildActionMask = 2147483647;
256 | files = (
257 | );
258 | inputPaths = (
259 | "$(SRCROOT)/.xcode.env.local",
260 | "$(SRCROOT)/.xcode.env",
261 | );
262 | name = "Bundle React Native code and images";
263 | outputPaths = (
264 | );
265 | runOnlyForDeploymentPostprocessing = 0;
266 | shellPath = /bin/sh;
267 | shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
268 | };
269 | 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
270 | isa = PBXShellScriptBuildPhase;
271 | buildActionMask = 2147483647;
272 | files = (
273 | );
274 | inputFileListPaths = (
275 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6-frameworks-${CONFIGURATION}-input-files.xcfilelist",
276 | );
277 | name = "[CP] Embed Pods Frameworks";
278 | outputFileListPaths = (
279 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6-frameworks-${CONFIGURATION}-output-files.xcfilelist",
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | shellPath = /bin/sh;
283 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6-frameworks.sh\"\n";
284 | showEnvVarsInLog = 0;
285 | };
286 | A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = {
287 | isa = PBXShellScriptBuildPhase;
288 | buildActionMask = 2147483647;
289 | files = (
290 | );
291 | inputFileListPaths = (
292 | );
293 | inputPaths = (
294 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
295 | "${PODS_ROOT}/Manifest.lock",
296 | );
297 | name = "[CP] Check Pods Manifest.lock";
298 | outputFileListPaths = (
299 | );
300 | outputPaths = (
301 | "$(DERIVED_FILE_DIR)/Pods-ReactNavigationV6-ReactNavigationV6Tests-checkManifestLockResult.txt",
302 | );
303 | runOnlyForDeploymentPostprocessing = 0;
304 | shellPath = /bin/sh;
305 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
306 | showEnvVarsInLog = 0;
307 | };
308 | C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = {
309 | isa = PBXShellScriptBuildPhase;
310 | buildActionMask = 2147483647;
311 | files = (
312 | );
313 | inputFileListPaths = (
314 | );
315 | inputPaths = (
316 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
317 | "${PODS_ROOT}/Manifest.lock",
318 | );
319 | name = "[CP] Check Pods Manifest.lock";
320 | outputFileListPaths = (
321 | );
322 | outputPaths = (
323 | "$(DERIVED_FILE_DIR)/Pods-ReactNavigationV6-checkManifestLockResult.txt",
324 | );
325 | runOnlyForDeploymentPostprocessing = 0;
326 | shellPath = /bin/sh;
327 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
328 | showEnvVarsInLog = 0;
329 | };
330 | C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */ = {
331 | isa = PBXShellScriptBuildPhase;
332 | buildActionMask = 2147483647;
333 | files = (
334 | );
335 | inputFileListPaths = (
336 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
337 | );
338 | name = "[CP] Embed Pods Frameworks";
339 | outputFileListPaths = (
340 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
341 | );
342 | runOnlyForDeploymentPostprocessing = 0;
343 | shellPath = /bin/sh;
344 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests-frameworks.sh\"\n";
345 | showEnvVarsInLog = 0;
346 | };
347 | E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = {
348 | isa = PBXShellScriptBuildPhase;
349 | buildActionMask = 2147483647;
350 | files = (
351 | );
352 | inputFileListPaths = (
353 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6-resources-${CONFIGURATION}-input-files.xcfilelist",
354 | );
355 | name = "[CP] Copy Pods Resources";
356 | outputFileListPaths = (
357 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6-resources-${CONFIGURATION}-output-files.xcfilelist",
358 | );
359 | runOnlyForDeploymentPostprocessing = 0;
360 | shellPath = /bin/sh;
361 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6/Pods-ReactNavigationV6-resources.sh\"\n";
362 | showEnvVarsInLog = 0;
363 | };
364 | F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */ = {
365 | isa = PBXShellScriptBuildPhase;
366 | buildActionMask = 2147483647;
367 | files = (
368 | );
369 | inputFileListPaths = (
370 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests-resources-${CONFIGURATION}-input-files.xcfilelist",
371 | );
372 | name = "[CP] Copy Pods Resources";
373 | outputFileListPaths = (
374 | "${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests-resources-${CONFIGURATION}-output-files.xcfilelist",
375 | );
376 | runOnlyForDeploymentPostprocessing = 0;
377 | shellPath = /bin/sh;
378 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNavigationV6-ReactNavigationV6Tests/Pods-ReactNavigationV6-ReactNavigationV6Tests-resources.sh\"\n";
379 | showEnvVarsInLog = 0;
380 | };
381 | FD10A7F022414F080027D42C /* Start Packager */ = {
382 | isa = PBXShellScriptBuildPhase;
383 | buildActionMask = 2147483647;
384 | files = (
385 | );
386 | inputFileListPaths = (
387 | );
388 | inputPaths = (
389 | );
390 | name = "Start Packager";
391 | outputFileListPaths = (
392 | );
393 | outputPaths = (
394 | );
395 | runOnlyForDeploymentPostprocessing = 0;
396 | shellPath = /bin/sh;
397 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
398 | showEnvVarsInLog = 0;
399 | };
400 | /* End PBXShellScriptBuildPhase section */
401 |
402 | /* Begin PBXSourcesBuildPhase section */
403 | 00E356EA1AD99517003FC87E /* Sources */ = {
404 | isa = PBXSourcesBuildPhase;
405 | buildActionMask = 2147483647;
406 | files = (
407 | 00E356F31AD99517003FC87E /* ReactNavigationV6Tests.m in Sources */,
408 | );
409 | runOnlyForDeploymentPostprocessing = 0;
410 | };
411 | 13B07F871A680F5B00A75B9A /* Sources */ = {
412 | isa = PBXSourcesBuildPhase;
413 | buildActionMask = 2147483647;
414 | files = (
415 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
416 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
417 | );
418 | runOnlyForDeploymentPostprocessing = 0;
419 | };
420 | /* End PBXSourcesBuildPhase section */
421 |
422 | /* Begin PBXTargetDependency section */
423 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
424 | isa = PBXTargetDependency;
425 | target = 13B07F861A680F5B00A75B9A /* ReactNavigationV6 */;
426 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
427 | };
428 | /* End PBXTargetDependency section */
429 |
430 | /* Begin XCBuildConfiguration section */
431 | 00E356F61AD99517003FC87E /* Debug */ = {
432 | isa = XCBuildConfiguration;
433 | baseConfigurationReference = 5B7EB9410499542E8C5724F5 /* Pods-ReactNavigationV6-ReactNavigationV6Tests.debug.xcconfig */;
434 | buildSettings = {
435 | BUNDLE_LOADER = "$(TEST_HOST)";
436 | GCC_PREPROCESSOR_DEFINITIONS = (
437 | "DEBUG=1",
438 | "$(inherited)",
439 | );
440 | INFOPLIST_FILE = ReactNavigationV6Tests/Info.plist;
441 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
442 | LD_RUNPATH_SEARCH_PATHS = (
443 | "$(inherited)",
444 | "@executable_path/Frameworks",
445 | "@loader_path/Frameworks",
446 | );
447 | OTHER_LDFLAGS = (
448 | "-ObjC",
449 | "-lc++",
450 | "$(inherited)",
451 | );
452 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
453 | PRODUCT_NAME = "$(TARGET_NAME)";
454 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNavigationV6.app/ReactNavigationV6";
455 | };
456 | name = Debug;
457 | };
458 | 00E356F71AD99517003FC87E /* Release */ = {
459 | isa = XCBuildConfiguration;
460 | baseConfigurationReference = 89C6BE57DB24E9ADA2F236DE /* Pods-ReactNavigationV6-ReactNavigationV6Tests.release.xcconfig */;
461 | buildSettings = {
462 | BUNDLE_LOADER = "$(TEST_HOST)";
463 | COPY_PHASE_STRIP = NO;
464 | INFOPLIST_FILE = ReactNavigationV6Tests/Info.plist;
465 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
466 | LD_RUNPATH_SEARCH_PATHS = (
467 | "$(inherited)",
468 | "@executable_path/Frameworks",
469 | "@loader_path/Frameworks",
470 | );
471 | OTHER_LDFLAGS = (
472 | "-ObjC",
473 | "-lc++",
474 | "$(inherited)",
475 | );
476 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
477 | PRODUCT_NAME = "$(TARGET_NAME)";
478 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNavigationV6.app/ReactNavigationV6";
479 | };
480 | name = Release;
481 | };
482 | 13B07F941A680F5B00A75B9A /* Debug */ = {
483 | isa = XCBuildConfiguration;
484 | baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-ReactNavigationV6.debug.xcconfig */;
485 | buildSettings = {
486 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
487 | CLANG_ENABLE_MODULES = YES;
488 | CURRENT_PROJECT_VERSION = 1;
489 | ENABLE_BITCODE = NO;
490 | INFOPLIST_FILE = ReactNavigationV6/Info.plist;
491 | LD_RUNPATH_SEARCH_PATHS = (
492 | "$(inherited)",
493 | "@executable_path/Frameworks",
494 | );
495 | MARKETING_VERSION = 1.0;
496 | OTHER_LDFLAGS = (
497 | "$(inherited)",
498 | "-ObjC",
499 | "-lc++",
500 | );
501 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
502 | PRODUCT_NAME = ReactNavigationV6;
503 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
504 | SWIFT_VERSION = 5.0;
505 | VERSIONING_SYSTEM = "apple-generic";
506 | };
507 | name = Debug;
508 | };
509 | 13B07F951A680F5B00A75B9A /* Release */ = {
510 | isa = XCBuildConfiguration;
511 | baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-ReactNavigationV6.release.xcconfig */;
512 | buildSettings = {
513 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
514 | CLANG_ENABLE_MODULES = YES;
515 | CURRENT_PROJECT_VERSION = 1;
516 | INFOPLIST_FILE = ReactNavigationV6/Info.plist;
517 | LD_RUNPATH_SEARCH_PATHS = (
518 | "$(inherited)",
519 | "@executable_path/Frameworks",
520 | );
521 | MARKETING_VERSION = 1.0;
522 | OTHER_LDFLAGS = (
523 | "$(inherited)",
524 | "-ObjC",
525 | "-lc++",
526 | );
527 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
528 | PRODUCT_NAME = ReactNavigationV6;
529 | SWIFT_VERSION = 5.0;
530 | VERSIONING_SYSTEM = "apple-generic";
531 | };
532 | name = Release;
533 | };
534 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
535 | isa = XCBuildConfiguration;
536 | buildSettings = {
537 | ALWAYS_SEARCH_USER_PATHS = NO;
538 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
539 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
540 | CLANG_CXX_LIBRARY = "libc++";
541 | CLANG_ENABLE_MODULES = YES;
542 | CLANG_ENABLE_OBJC_ARC = YES;
543 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
544 | CLANG_WARN_BOOL_CONVERSION = YES;
545 | CLANG_WARN_COMMA = YES;
546 | CLANG_WARN_CONSTANT_CONVERSION = YES;
547 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
548 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
549 | CLANG_WARN_EMPTY_BODY = YES;
550 | CLANG_WARN_ENUM_CONVERSION = YES;
551 | CLANG_WARN_INFINITE_RECURSION = YES;
552 | CLANG_WARN_INT_CONVERSION = YES;
553 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
554 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
555 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
556 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
557 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
558 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
559 | CLANG_WARN_STRICT_PROTOTYPES = YES;
560 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
561 | CLANG_WARN_UNREACHABLE_CODE = YES;
562 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
563 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
564 | COPY_PHASE_STRIP = NO;
565 | ENABLE_STRICT_OBJC_MSGSEND = YES;
566 | ENABLE_TESTABILITY = YES;
567 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
568 | GCC_C_LANGUAGE_STANDARD = gnu99;
569 | GCC_DYNAMIC_NO_PIC = NO;
570 | GCC_NO_COMMON_BLOCKS = YES;
571 | GCC_OPTIMIZATION_LEVEL = 0;
572 | GCC_PREPROCESSOR_DEFINITIONS = (
573 | "DEBUG=1",
574 | "$(inherited)",
575 | );
576 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
577 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
578 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
579 | GCC_WARN_UNDECLARED_SELECTOR = YES;
580 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
581 | GCC_WARN_UNUSED_FUNCTION = YES;
582 | GCC_WARN_UNUSED_VARIABLE = YES;
583 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
584 | LD_RUNPATH_SEARCH_PATHS = (
585 | /usr/lib/swift,
586 | "$(inherited)",
587 | );
588 | LIBRARY_SEARCH_PATHS = (
589 | "\"$(SDKROOT)/usr/lib/swift\"",
590 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
591 | "\"$(inherited)\"",
592 | );
593 | MTL_ENABLE_DEBUG_INFO = YES;
594 | ONLY_ACTIVE_ARCH = YES;
595 | OTHER_CPLUSPLUSFLAGS = (
596 | "$(OTHER_CFLAGS)",
597 | "-DFOLLY_NO_CONFIG",
598 | "-DFOLLY_MOBILE=1",
599 | "-DFOLLY_USE_LIBCPP=1",
600 | );
601 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
602 | SDKROOT = iphoneos;
603 | };
604 | name = Debug;
605 | };
606 | 83CBBA211A601CBA00E9B192 /* Release */ = {
607 | isa = XCBuildConfiguration;
608 | buildSettings = {
609 | ALWAYS_SEARCH_USER_PATHS = NO;
610 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
611 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
612 | CLANG_CXX_LIBRARY = "libc++";
613 | CLANG_ENABLE_MODULES = YES;
614 | CLANG_ENABLE_OBJC_ARC = YES;
615 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
616 | CLANG_WARN_BOOL_CONVERSION = YES;
617 | CLANG_WARN_COMMA = YES;
618 | CLANG_WARN_CONSTANT_CONVERSION = YES;
619 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
620 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
621 | CLANG_WARN_EMPTY_BODY = YES;
622 | CLANG_WARN_ENUM_CONVERSION = YES;
623 | CLANG_WARN_INFINITE_RECURSION = YES;
624 | CLANG_WARN_INT_CONVERSION = YES;
625 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
626 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
627 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
628 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
629 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
630 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
631 | CLANG_WARN_STRICT_PROTOTYPES = YES;
632 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
633 | CLANG_WARN_UNREACHABLE_CODE = YES;
634 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
635 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
636 | COPY_PHASE_STRIP = YES;
637 | ENABLE_NS_ASSERTIONS = NO;
638 | ENABLE_STRICT_OBJC_MSGSEND = YES;
639 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
640 | GCC_C_LANGUAGE_STANDARD = gnu99;
641 | GCC_NO_COMMON_BLOCKS = YES;
642 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
643 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
644 | GCC_WARN_UNDECLARED_SELECTOR = YES;
645 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
646 | GCC_WARN_UNUSED_FUNCTION = YES;
647 | GCC_WARN_UNUSED_VARIABLE = YES;
648 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
649 | LD_RUNPATH_SEARCH_PATHS = (
650 | /usr/lib/swift,
651 | "$(inherited)",
652 | );
653 | LIBRARY_SEARCH_PATHS = (
654 | "\"$(SDKROOT)/usr/lib/swift\"",
655 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
656 | "\"$(inherited)\"",
657 | );
658 | MTL_ENABLE_DEBUG_INFO = NO;
659 | OTHER_CPLUSPLUSFLAGS = (
660 | "$(OTHER_CFLAGS)",
661 | "-DFOLLY_NO_CONFIG",
662 | "-DFOLLY_MOBILE=1",
663 | "-DFOLLY_USE_LIBCPP=1",
664 | );
665 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
666 | SDKROOT = iphoneos;
667 | VALIDATE_PRODUCT = YES;
668 | };
669 | name = Release;
670 | };
671 | /* End XCBuildConfiguration section */
672 |
673 | /* Begin XCConfigurationList section */
674 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNavigationV6Tests" */ = {
675 | isa = XCConfigurationList;
676 | buildConfigurations = (
677 | 00E356F61AD99517003FC87E /* Debug */,
678 | 00E356F71AD99517003FC87E /* Release */,
679 | );
680 | defaultConfigurationIsVisible = 0;
681 | defaultConfigurationName = Release;
682 | };
683 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNavigationV6" */ = {
684 | isa = XCConfigurationList;
685 | buildConfigurations = (
686 | 13B07F941A680F5B00A75B9A /* Debug */,
687 | 13B07F951A680F5B00A75B9A /* Release */,
688 | );
689 | defaultConfigurationIsVisible = 0;
690 | defaultConfigurationName = Release;
691 | };
692 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNavigationV6" */ = {
693 | isa = XCConfigurationList;
694 | buildConfigurations = (
695 | 83CBBA201A601CBA00E9B192 /* Debug */,
696 | 83CBBA211A601CBA00E9B192 /* Release */,
697 | );
698 | defaultConfigurationIsVisible = 0;
699 | defaultConfigurationName = Release;
700 | };
701 | /* End XCConfigurationList section */
702 | };
703 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
704 | }
705 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6.xcodeproj/xcshareddata/xcschemes/ReactNavigationV6.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
53 |
55 |
61 |
62 |
63 |
64 |
70 |
72 |
78 |
79 |
80 |
81 |
83 |
84 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : RCTAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6/AppDelegate.mm:
--------------------------------------------------------------------------------
1 | #import "AppDelegate.h"
2 |
3 | #import
4 |
5 | @implementation AppDelegate
6 |
7 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
8 | {
9 | self.moduleName = @"ReactNavigationV6";
10 | // You can add your custom initial props in the dictionary below.
11 | // They will be passed down to the ViewController used by React Native.
12 | self.initialProps = @{};
13 |
14 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
15 | }
16 |
17 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
18 | {
19 | #if DEBUG
20 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
21 | #else
22 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
23 | #endif
24 | }
25 |
26 | /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
27 | ///
28 | /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
29 | /// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
30 | /// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
31 | - (BOOL)concurrentRootEnabled
32 | {
33 | return true;
34 | }
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "scale" : "2x",
6 | "size" : "20x20"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "scale" : "3x",
11 | "size" : "20x20"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "scale" : "2x",
16 | "size" : "29x29"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "scale" : "3x",
21 | "size" : "29x29"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "scale" : "2x",
26 | "size" : "40x40"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "40x40"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "scale" : "2x",
36 | "size" : "60x60"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "scale" : "3x",
41 | "size" : "60x60"
42 | },
43 | {
44 | "idiom" : "ios-marketing",
45 | "scale" : "1x",
46 | "size" : "1024x1024"
47 | }
48 | ],
49 | "info" : {
50 | "author" : "xcode",
51 | "version" : 1
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ReactNavigationV6
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(MARKETING_VERSION)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(CURRENT_PROJECT_VERSION)
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | NSLocationWhenInUseUsageDescription
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6/main.m:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char *argv[])
6 | {
7 | @autoreleasepool {
8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6Tests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ios/ReactNavigationV6Tests/ReactNavigationV6Tests.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | #import
5 | #import
6 |
7 | #define TIMEOUT_SECONDS 600
8 | #define TEXT_TO_LOOK_FOR @"Welcome to React"
9 |
10 | @interface ReactNavigationV6Tests : XCTestCase
11 |
12 | @end
13 |
14 | @implementation ReactNavigationV6Tests
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
67 |
--------------------------------------------------------------------------------
/jest.config.js:
--------------------------------------------------------------------------------
1 | const {defaults: tsJestConfig} = require('ts-jest/presets');
2 |
3 | module.exports = {
4 | ...tsJestConfig,
5 | preset: 'react-native',
6 | setupFiles: [
7 | './test/jestSetup.ts',
8 | './node_modules/react-native-gesture-handler/jestSetup.js',
9 | ],
10 | transformIgnorePatterns: [
11 | 'node_modules/(?!(.*-)?react-(.*-)?native(-.*)?|@react-native-community|@dooboo-ui/native)',
12 | ],
13 | globals: {
14 | 'ts-jest': {
15 | tsConfig: {
16 | jsx: 'react',
17 | },
18 | diagnostics: false,
19 | },
20 | },
21 | transform: {
22 | '^.+\\.(js|jsx)$': 'babel-jest',
23 | '\\.(ts|tsx)$': 'ts-jest',
24 | },
25 | // 'testRegex': '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
26 | testPathIgnorePatterns: ['\\.snap$', '/node_modules/'],
27 | cacheDirectory: '.jest/cache',
28 | moduleFileExtensions: [
29 | 'ts',
30 | 'tsx',
31 | 'js',
32 | 'jsx',
33 | 'json',
34 | 'ios.ts',
35 | 'ios.tsx',
36 | 'android.ts',
37 | 'android.tsx',
38 | ],
39 | moduleNameMapper: {
40 | '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
41 | '/test/assetsTransformer.js',
42 | },
43 | };
44 |
--------------------------------------------------------------------------------
/metro.config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Metro configuration for React Native
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | */
7 |
8 | module.exports = {
9 | transformer: {
10 | getTransformOptions: async () => ({
11 | transform: {
12 | experimentalImportSupport: false,
13 | inlineRequires: true,
14 | },
15 | }),
16 | },
17 | };
18 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-navigation-v6",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "android": "react-native run-android",
7 | "ios": "react-native run-ios",
8 | "lint": "eslint src --ext .ts,.tsx,.js,.jsx",
9 | "start": "react-native start",
10 | "test": "jest",
11 | "codecov": "codecov"
12 | },
13 | "dependencies": {
14 | "@react-navigation/bottom-tabs": "^6.5.3",
15 | "@react-navigation/drawer": "^6.5.7",
16 | "@react-navigation/material-bottom-tabs": "^6.2.11",
17 | "@react-navigation/material-top-tabs": "^6.5.2",
18 | "@react-navigation/native": "^6.1.2",
19 | "@react-navigation/native-stack": "^6.9.8",
20 | "@react-navigation/stack": "^6.3.11",
21 | "dooboo-ui": "^0.1.100",
22 | "i18n-js": "^4.2.2",
23 | "react": "18.2.0",
24 | "react-native": "0.71.1",
25 | "react-native-gesture-handler": "^2.9.0",
26 | "react-native-pager-view": "^6.1.2",
27 | "react-native-paper": "^5.1.4",
28 | "react-native-reanimated": "^2.14.4",
29 | "react-native-safe-area-context": "^4.5.0",
30 | "react-native-screens": "^3.19.0",
31 | "react-native-tab-view": "^3.3.4",
32 | "react-native-vector-icons": "^9.2.0",
33 | "styled-components": "^5.3.6"
34 | },
35 | "devDependencies": {
36 | "@babel/core": "^7.20.0",
37 | "@babel/preset-env": "^7.20.0",
38 | "@babel/runtime": "^7.20.0",
39 | "@dooboo/eslint-config-react-native": "^1.0.4",
40 | "@react-native-community/eslint-config": "^3.0.0",
41 | "@testing-library/react-native": "^11.5.0",
42 | "@tsconfig/react-native": "^2.0.2",
43 | "@types/jest": "^29.4.0",
44 | "@types/react": "^18.0.24",
45 | "@types/react-test-renderer": "^18.0.0",
46 | "@types/styled-components-react-native": "^5.2.1",
47 | "babel-jest": "^29.2.1",
48 | "babel-plugin-styled-components": "^2.0.7",
49 | "codecov": "^3.8.3",
50 | "eslint": "^8.19.0",
51 | "jest": "^29.2.1",
52 | "metro-react-native-babel-preset": "0.73.7",
53 | "prettier": "^2.4.1",
54 | "react-test-renderer": "18.2.0",
55 | "ts-jest": "^29.0.5",
56 | "typescript": "4.8.4"
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/App.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import RootNavigator from './components/navigation/SwitchNavigator';
3 | import RootProvider from './providers';
4 |
5 | function App(): React.ReactElement {
6 | return ;
7 | }
8 |
9 | function ProviderWrapper(): React.ReactElement {
10 | return (
11 |
12 |
13 |
14 | );
15 | }
16 |
17 | export default ProviderWrapper;
18 |
--------------------------------------------------------------------------------
/src/apis/sample.ts:
--------------------------------------------------------------------------------
1 | const ROOT_URL = 'http://localhost:3000/api';
2 |
3 | export const sample = async (
4 | body: object,
5 | // signal?: AbortController['signal'],
6 | ): Promise => {
7 | const fetchOption: RequestInit = {
8 | // signal,
9 | method: 'POST',
10 | headers: new Headers({
11 | Accept: 'application/json',
12 | 'Content-Type': 'application/json',
13 | }),
14 | body: JSON.stringify(body),
15 | };
16 |
17 | try {
18 | const res: Response = await fetch(`${ROOT_URL}/sample`, fetchOption);
19 |
20 | return res;
21 | } catch (err) {
22 | throw new Error(err as string);
23 | }
24 | };
25 |
--------------------------------------------------------------------------------
/src/components/navigation/BottomTabNavigator.tsx:
--------------------------------------------------------------------------------
1 | import type {BottomTabNavigationProp} from '@react-navigation/bottom-tabs';
2 | import {IC_MASK} from '../../utils/Icons';
3 | import {Image} from 'react-native';
4 | import React from 'react';
5 | import type {ReactElement} from 'react';
6 | import Screen1 from '../screen/Screen1';
7 | import Screen2 from '../screen/Screen2';
8 | import Screen3 from '../screen/Screen3';
9 | import Screen4 from '../screen/Screen4';
10 | import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
11 |
12 | export type BottomTabParamList = {
13 | default: undefined;
14 | Screen1: undefined;
15 | Screen2: undefined;
16 | Screen3: undefined;
17 | Screen4: undefined;
18 | };
19 |
20 | export type BottomTabNavigationProps<
21 | T extends keyof BottomTabParamList = 'default',
22 | > = BottomTabNavigationProp;
23 |
24 | const Tab = createBottomTabNavigator();
25 |
26 | const TabBarIcon = (focused: boolean): React.ReactElement => {
27 | return (
28 |
35 | );
36 | };
37 |
38 | function MaterialBottomTabNavigator(): ReactElement {
39 | return (
40 | TabBarIcon(focused),
43 | }}>
44 | TabBarIcon(focused),
50 | }}
51 | />
52 |
53 |
54 |
55 |
56 | );
57 | }
58 |
59 | export default MaterialBottomTabNavigator;
60 |
--------------------------------------------------------------------------------
/src/components/navigation/DrawerNavigator.tsx:
--------------------------------------------------------------------------------
1 | import type {
2 | DrawerContentComponentProps,
3 | DrawerNavigationProp,
4 | } from '@react-navigation/drawer';
5 | import {DrawerItem, createDrawerNavigator} from '@react-navigation/drawer';
6 | import {ScrollView, StyleSheet} from 'react-native';
7 |
8 | import DrawerScreen1 from '../screen/DrawerScreen1';
9 | import DrawerScreen2 from '../screen/DrawerScreen2';
10 | import React from 'react';
11 | import type {ReactElement} from 'react';
12 | import {useSafeArea} from 'react-native-safe-area-context';
13 |
14 | export type DrawerParamList = {
15 | default: undefined;
16 | DrawerScreen1: undefined;
17 | DrawerScreen2: undefined;
18 | };
19 |
20 | export type DrawerNavigationProps =
21 | DrawerNavigationProp;
22 |
23 | const Drawer = createDrawerNavigator();
24 |
25 | const styles = StyleSheet.create({
26 | container: {
27 | flex: 1,
28 | },
29 | });
30 |
31 | function CustomDrawerContent({drawerPosition, navigation}: any): ReactElement {
32 | const insets = useSafeArea();
33 |
34 | return (
35 |
44 | {
47 | navigation.navigate('DrawerScreen1');
48 | }}
49 | />
50 | {
53 | navigation.navigate('DrawerScreen2');
54 | }}
55 | />
56 | {
59 | navigation.closeDrawer();
60 | }}
61 | />
62 |
63 | );
64 | }
65 |
66 | function Navigator(): ReactElement {
67 | return (
68 | (
71 |
72 | )}>
73 |
74 |
75 |
76 | );
77 | }
78 |
79 | export default Navigator;
80 |
--------------------------------------------------------------------------------
/src/components/navigation/MaterialBottomTabNavigator.tsx:
--------------------------------------------------------------------------------
1 | import {IC_MASK} from '../../utils/Icons';
2 | import {Image} from 'react-native';
3 | import type {MaterialBottomTabNavigationProp} from '@react-navigation/material-bottom-tabs';
4 | import React from 'react';
5 | import type {ReactElement} from 'react';
6 | import Screen1 from '../screen/Screen1';
7 | import Screen2 from '../screen/Screen2';
8 | import Screen3 from '../screen/Screen3';
9 | import Screen4 from '../screen/Screen4';
10 | import {createMaterialBottomTabNavigator} from '@react-navigation/material-bottom-tabs';
11 |
12 | export type MaterialBottomTabParamList = {
13 | default: undefined;
14 | Screen1: undefined;
15 | Screen2: undefined;
16 | Screen3: undefined;
17 | Screen4: undefined;
18 | };
19 |
20 | export type MaterialBottomTabNavigationProps<
21 | T extends keyof MaterialBottomTabParamList = 'default',
22 | > = MaterialBottomTabNavigationProp;
23 |
24 | const Tab = createMaterialBottomTabNavigator();
25 |
26 | const TabBarIcon = (focused: boolean): React.ReactElement => {
27 | return (
28 |
35 | );
36 | };
37 |
38 | function Navigator(): ReactElement {
39 | return (
40 | TabBarIcon(focused),
43 | }}>
44 | TabBarIcon(focused),
50 | }}
51 | />
52 |
53 |
54 |
55 |
56 | );
57 | }
58 |
59 | export default Navigator;
60 |
--------------------------------------------------------------------------------
/src/components/navigation/MaterialTopTabNavigator.tsx:
--------------------------------------------------------------------------------
1 | import type {MaterialTopTabNavigationProp} from '@react-navigation/material-top-tabs';
2 | import React from 'react';
3 | import type {ReactElement} from 'react';
4 | import Screen1 from '../screen/Screen1';
5 | import Screen2 from '../screen/Screen2';
6 | import Screen3 from '../screen/Screen3';
7 | import Screen4 from '../screen/Screen4';
8 | import {createMaterialTopTabNavigator} from '@react-navigation/material-top-tabs';
9 |
10 | export type MaterialTopTabParamList = {
11 | default: undefined;
12 | Screen1: undefined;
13 | Screen2: undefined;
14 | Screen3: undefined;
15 | Screen4: undefined;
16 | };
17 |
18 | export type MaterialTopTabNavigationProps<
19 | T extends keyof MaterialTopTabParamList = 'default',
20 | > = MaterialTopTabNavigationProp;
21 |
22 | const Tab = createMaterialTopTabNavigator();
23 |
24 | function SwitchNavigator(): ReactElement {
25 | return (
26 |
31 |
32 |
33 |
34 |
39 |
40 | );
41 | }
42 |
43 | export default SwitchNavigator;
44 |
--------------------------------------------------------------------------------
/src/components/navigation/StackNavigator.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import Screen1 from '../screen/Screen1';
3 | import Screen2 from '../screen/Screen2';
4 | import Screen3 from '../screen/Screen3';
5 | import Screen4 from '../screen/Screen4';
6 | import {createNativeStackNavigator} from '@react-navigation/native-stack';
7 | import {useThemeContext} from '../../providers/ThemeProvider';
8 |
9 | const Stack = createNativeStackNavigator();
10 |
11 | function RootNavigator(): React.ReactElement {
12 | const {theme} = useThemeContext();
13 |
14 | return (
15 |
23 |
24 |
25 |
26 |
27 |
28 | );
29 | }
30 |
31 | export default RootNavigator;
32 |
--------------------------------------------------------------------------------
/src/components/navigation/SwitchNavigator.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | NativeStackNavigationProp,
3 | createNativeStackNavigator,
4 | } from '@react-navigation/native-stack';
5 |
6 | import BottomTabNavigator from './BottomTabNavigator';
7 | import DrawerNavigator from './DrawerNavigator';
8 | import Intro from '../screen/Intro';
9 | import MaterialBottomTabNavigator from './MaterialBottomTabNavigator';
10 | import MaterialTopTabNavigator from './MaterialTopTabNavigator';
11 | import {NavigationContainer} from '@react-navigation/native';
12 | import React from 'react';
13 | import StackNavigator from './StackNavigator';
14 | import {useThemeContext} from '../../providers/ThemeProvider';
15 |
16 | const Stack = createNativeStackNavigator();
17 |
18 | function RootNavigator(): React.ReactElement {
19 | const {theme} = useThemeContext();
20 |
21 | return (
22 |
23 |
31 |
32 |
33 |
34 |
38 |
42 |
46 |
47 |
48 | );
49 | }
50 |
51 | export default RootNavigator;
52 |
--------------------------------------------------------------------------------
/src/components/screen/DrawerScreen1.tsx:
--------------------------------------------------------------------------------
1 | import type {ReactElement} from 'react';
2 | import React from 'react';
3 |
4 | import Button from '../shared/Button';
5 | import type {DefaultDrawerNavigationProps} from '../../types';
6 | import styled from 'styled-components/native';
7 | import {useNavigation} from '@react-navigation/core';
8 |
9 | const Container = styled.View`
10 | flex: 1;
11 | background-color: orange;
12 | flex-direction: row;
13 | align-items: center;
14 | justify-content: center;
15 | flex-direction: column;
16 | `;
17 |
18 | const StyledText = styled.Text`
19 | font-size: 24px;
20 | color: blue;
21 | margin-bottom: 8px;
22 | `;
23 |
24 | function Page(): ReactElement {
25 | const navigation = useNavigation() as DefaultDrawerNavigationProps<'default'>;
26 |
27 | return (
28 |
29 | Screen 1
30 |
36 | );
37 | }
38 |
39 | export default Page;
40 |
--------------------------------------------------------------------------------
/src/components/screen/DrawerScreen2.tsx:
--------------------------------------------------------------------------------
1 | import type {ReactElement} from 'react';
2 | import React from 'react';
3 |
4 | import Button from '../shared/Button';
5 | import type {DefaultDrawerNavigationProps} from '../../types';
6 | import styled from 'styled-components/native';
7 | import {useNavigation} from '@react-navigation/core';
8 |
9 | const Container = styled.View`
10 | flex: 1;
11 | background-color: orange;
12 | flex-direction: row;
13 | align-items: center;
14 | justify-content: center;
15 | flex-direction: column;
16 | `;
17 |
18 | const StyledText = styled.Text`
19 | font-size: 24px;
20 | color: blue;
21 | margin-bottom: 8px;
22 | `;
23 |
24 | function Page(): ReactElement {
25 | const navigation = useNavigation() as DefaultDrawerNavigationProps<'default'>;
26 |
27 | return (
28 |
29 | Screen 2
30 |
36 | );
37 | }
38 |
39 | export default Page;
40 |
--------------------------------------------------------------------------------
/src/components/screen/Intro.tsx:
--------------------------------------------------------------------------------
1 | import Button from '../shared/Button';
2 | import type {DefaultNavigationProps} from '../../types';
3 | import React from 'react';
4 | import {View} from 'react-native';
5 | import styled from 'styled-components/native';
6 |
7 | const Container = styled.View`
8 | flex: 1;
9 | align-self: stretch;
10 | overflow: scroll;
11 | background-color: ${({theme}): string => theme.background};
12 |
13 | flex-direction: column;
14 | justify-content: flex-start;
15 | align-items: center;
16 | overflow: hidden;
17 | `;
18 |
19 | const ButtonWrapper = styled.View`
20 | position: absolute;
21 | flex-direction: column;
22 | bottom: 40px;
23 | width: 85%;
24 | align-self: center;
25 | `;
26 |
27 | interface Props {
28 | navigation: DefaultNavigationProps<'Intro'>;
29 | }
30 |
31 | function Intro(props: Props): React.ReactElement {
32 | return (
33 |
34 |
35 |
36 |
81 |
82 | );
83 | }
84 |
85 | export default Intro;
86 |
--------------------------------------------------------------------------------
/src/components/screen/Screen1.tsx:
--------------------------------------------------------------------------------
1 | import Button from '../shared/Button';
2 | import React from 'react';
3 | import type {ReactElement} from 'react';
4 | import styled from 'styled-components/native';
5 |
6 | const Container = styled.View`
7 | flex: 1;
8 | background-color: orange;
9 | flex-direction: row;
10 | align-items: center;
11 | justify-content: center;
12 | flex-direction: column;
13 | `;
14 |
15 | const StyledText = styled.Text`
16 | font-size: 16px;
17 | color: blue;
18 | margin-bottom: 8px;
19 | `;
20 |
21 | function Page(): ReactElement {
22 | return (
23 |
24 | Screen 1
25 | navigation.navigate('Screen2')}
28 | text="Navigate to screen2"
29 | />
30 |
31 | );
32 | }
33 |
34 | export default Page;
35 |
--------------------------------------------------------------------------------
/src/components/screen/Screen2.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import type {ReactElement} from 'react';
3 | import styled from 'styled-components/native';
4 |
5 | const Container = styled.View`
6 | flex: 1;
7 | background-color: blue;
8 | flex-direction: row;
9 | align-items: center;
10 | justify-content: center;
11 | flex-direction: column;
12 | `;
13 |
14 | const StyledText = styled.Text`
15 | font-size: 16px;
16 | color: white;
17 | `;
18 |
19 | function Page(): ReactElement {
20 | return (
21 |
22 | Screen 2
23 |
24 | );
25 | }
26 |
27 | export default Page;
28 |
--------------------------------------------------------------------------------
/src/components/screen/Screen3.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import type {ReactElement} from 'react';
3 | import styled from 'styled-components/native';
4 |
5 | const Container = styled.View`
6 | flex: 1;
7 | background-color: brown;
8 | flex-direction: row;
9 | align-items: center;
10 | justify-content: center;
11 | flex-direction: column;
12 | `;
13 |
14 | const StyledText = styled.Text`
15 | font-size: 16px;
16 | color: blue;
17 | `;
18 |
19 | function Page(): ReactElement {
20 | return (
21 |
22 | Screen 3
23 |
24 | );
25 | }
26 |
27 | export default Page;
28 |
--------------------------------------------------------------------------------
/src/components/screen/Screen4.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import type {ReactElement} from 'react';
3 | import styled from 'styled-components/native';
4 |
5 | const Container = styled.View`
6 | flex: 1;
7 | background-color: black;
8 | flex-direction: row;
9 | align-items: center;
10 | justify-content: center;
11 | flex-direction: column;
12 | `;
13 |
14 | const StyledText = styled.Text`
15 | font-size: 16px;
16 | color: white;
17 | `;
18 |
19 | function Page(): ReactElement {
20 | return (
21 |
22 | Screen 4
23 |
24 | );
25 | }
26 |
27 | export default Page;
28 |
--------------------------------------------------------------------------------
/src/components/screen/Temp.tsx:
--------------------------------------------------------------------------------
1 | import Button from '../shared/Button';
2 | import type {DefaultNavigationProps} from '../../types';
3 | import React from 'react';
4 | import styled from 'styled-components/native';
5 |
6 | const Container = styled.View`
7 | flex: 1;
8 | background-color: ${(props): string => props.theme.background};
9 | flex-direction: row;
10 | align-items: center;
11 | justify-content: center;
12 | `;
13 |
14 | interface Props {
15 | navigation: DefaultNavigationProps<'Temp'>;
16 | }
17 |
18 | function Page(props: Props): React.ReactElement {
19 | return (
20 |
21 | props.navigation.goBack()}
24 | text="Go Back"
25 | style={{
26 | backgroundColor: '#333333',
27 | }}
28 | />
29 |
30 | );
31 | }
32 |
33 | export default Page;
34 |
--------------------------------------------------------------------------------
/src/components/shared/Button.tsx:
--------------------------------------------------------------------------------
1 | import type {
2 | ImageSourcePropType,
3 | ImageStyle,
4 | TextStyle,
5 | ViewStyle,
6 | } from 'react-native';
7 | import {ActivityIndicator, TouchableOpacity} from 'react-native';
8 |
9 | import React from 'react';
10 | import styled from 'styled-components/native';
11 |
12 | const StyledButton = styled.View`
13 | background-color: ${({theme}): string => theme.btnPrimary};
14 | align-self: center;
15 | border-radius: 4px;
16 | border-width: 2px;
17 | width: 320px;
18 | height: 52px;
19 | border-color: ${({theme}): string => theme.btnPrimary};
20 |
21 | align-items: center;
22 | justify-content: center;
23 | `;
24 |
25 | const StyledButtonDisabled = styled(StyledButton)`
26 | background-color: ${({theme}): string => theme.btnDisabled};
27 | border-color: rgb(200, 200, 200);
28 | `;
29 |
30 | const StyledText = styled.Text`
31 | font-size: 14px;
32 | color: ${({theme}): string => theme.btnPrimaryFont};
33 | `;
34 |
35 | const StyledTextDisabled = styled(StyledText)`
36 | color: ${({theme}): string => theme.textDisabled};
37 | `;
38 |
39 | const StyledImage = styled.Image`
40 | width: 24px;
41 | height: 24px;
42 | position: absolute;
43 | left: 16px;
44 | `;
45 |
46 | interface Props {
47 | testID?: string;
48 | isLoading?: boolean;
49 | isDisabled?: boolean;
50 | onClick?: () => void;
51 | style?: ViewStyle;
52 | disabledStyle?: ViewStyle;
53 | textStyle?: TextStyle;
54 | imgLeftSrc?: ImageSourcePropType;
55 | imgLeftStyle?: ImageStyle;
56 | indicatorColor?: string;
57 | activeOpacity?: number;
58 | text?: string;
59 | }
60 |
61 | function Button(props: Props): React.ReactElement {
62 | if (props.isDisabled) {
63 | return (
64 |
65 |
66 | {props.text}
67 |
68 |
69 | );
70 | }
71 |
72 | if (props.isLoading) {
73 | return (
74 |
75 |
76 |
77 | );
78 | }
79 |
80 | return (
81 |
85 |
86 | {props.imgLeftSrc ? (
87 |
88 | ) : null}
89 | {props.text}
90 |
91 |
92 | );
93 | }
94 |
95 | Button.defaultProps = {
96 | isLoading: false,
97 | isDisabled: false,
98 | indicatorColor: 'white',
99 | activeOpacity: 0.5,
100 | };
101 |
102 | export default Button;
103 |
--------------------------------------------------------------------------------
/src/components/ui/Buttons.ts:
--------------------------------------------------------------------------------
1 | import styled from 'styled-components/native';
2 |
3 | export const TransparentButton = styled.View`
4 | display: flex;
5 | width: 100%;
6 | height: 100%;
7 |
8 | border-radius: 3px;
9 | border-style: solid;
10 | border-width: 1px;
11 | border-color: #e3e3e3;
12 | margin-bottom: 8px;
13 |
14 | justify-content: center;
15 | align-items: center;
16 | background: rgba(235, 87, 87, 0.03);
17 | color: #333;
18 | opacity: 1;
19 |
20 | &:hover {
21 | opacity: 0.5;
22 | }
23 | &:active {
24 | opacity: 0.5;
25 | }
26 | `;
27 |
28 | export const WhiteButton = styled.View`
29 | display: flex;
30 | width: 100%;
31 | height: 100%;
32 | border-radius: 3px;
33 | border-style: solid;
34 | border-width: 1px;
35 | margin-bottom: 8px;
36 |
37 | justify-content: center;
38 | align-items: center;
39 | opacity: 1;
40 |
41 | &:hover {
42 | opacity: 0.5;
43 | }
44 | &:active {
45 | opacity: 0.5;
46 | }
47 | `;
48 |
--------------------------------------------------------------------------------
/src/providers/AppProvider.tsx:
--------------------------------------------------------------------------------
1 | import type {User} from '../types';
2 | import createCtx from '../utils/createCtx';
3 | import {useReducer} from 'react';
4 |
5 | interface Context {
6 | state: State;
7 | setUser: (user: User) => void;
8 | resetUser: () => void;
9 | }
10 |
11 | const [useCtx, Provider] = createCtx();
12 |
13 | export enum ActionType {
14 | ResetUser = 'reset-user',
15 | SetUser = 'set-user',
16 | }
17 |
18 | export interface State {
19 | user: User;
20 | }
21 |
22 | const initialState: State = {
23 | user: {
24 | displayName: '',
25 | age: 0,
26 | job: '',
27 | },
28 | };
29 |
30 | interface SetUserAction {
31 | type: ActionType.SetUser;
32 | payload: User;
33 | }
34 |
35 | interface ResetUserAction {
36 | type: ActionType.ResetUser;
37 | }
38 |
39 | type Action = SetUserAction | ResetUserAction;
40 |
41 | interface Props {
42 | children?: React.ReactElement;
43 | }
44 |
45 | type Reducer = (state: State, action: Action) => State;
46 |
47 | const setUser =
48 | (dispatch: React.Dispatch) =>
49 | (user: User): void => {
50 | dispatch({
51 | type: ActionType.SetUser,
52 | payload: user,
53 | });
54 | };
55 |
56 | const resetUser = (dispatch: React.Dispatch) => (): void => {
57 | dispatch({
58 | type: ActionType.ResetUser,
59 | });
60 | };
61 |
62 | // prettier-ignore
63 | // eslint-disable-next-line default-param-last
64 | const reducer: Reducer = (state = initialState, action) => {
65 | switch (action.type) {
66 | case 'reset-user':
67 | return initialState;
68 | case 'set-user':
69 | return { ...state, user: action.payload };
70 | default:
71 | return state;
72 | }
73 | };
74 |
75 | function AppProvider(props: Props): React.ReactElement {
76 | const [state, dispatch] = useReducer(reducer, initialState);
77 |
78 | const actions = {
79 | setUser: setUser(dispatch),
80 | resetUser: resetUser(dispatch),
81 | };
82 |
83 | return {props.children};
84 | }
85 |
86 | export {useCtx as useAppContext, AppProvider};
87 |
--------------------------------------------------------------------------------
/src/providers/MyTestProvider.tsx:
--------------------------------------------------------------------------------
1 | import React, {useReducer} from 'react';
2 |
3 | import createCtx from '../utils/createCtx';
4 |
5 | interface User {
6 | displayName: string;
7 | age: number;
8 | job: string;
9 | }
10 |
11 | interface Context {
12 | state: State;
13 | setUser: (user: User) => void;
14 | }
15 |
16 | const [useCtx, Provider] = createCtx();
17 |
18 | export enum ActionType {
19 | SetUser = 'set-user',
20 | }
21 |
22 | export interface State {
23 | user: User;
24 | }
25 |
26 | const initialState: State = {
27 | user: {
28 | displayName: '',
29 | age: 0,
30 | job: '',
31 | },
32 | };
33 |
34 | interface SetUserAction {
35 | type: ActionType.SetUser;
36 | payload: Partial;
37 | }
38 |
39 | type Action = SetUserAction;
40 |
41 | interface Props {
42 | children?: React.ReactElement;
43 | }
44 |
45 | type Reducer = (state: State, action: Action) => State;
46 |
47 | const setUser =
48 | (dispatch: React.Dispatch) =>
49 | (user: User): void => {
50 | dispatch({
51 | type: ActionType.SetUser,
52 | payload: user,
53 | });
54 | };
55 |
56 | const reducer: Reducer = (state = initialState, action) => {
57 | switch (action.type) {
58 | case 'set-user':
59 | return {
60 | ...state,
61 | user: {
62 | ...state.user,
63 | ...action.payload,
64 | },
65 | };
66 | default:
67 | return state;
68 | }
69 | };
70 |
71 | function MyTestProvider(props: Props): React.ReactElement {
72 | const [state, dispatch] = useReducer(reducer, initialState);
73 |
74 | const actions = {
75 | setUser: setUser(dispatch),
76 | };
77 |
78 | return {props.children};
79 | }
80 |
81 | export {useCtx as useReducerContext, MyTestProvider};
82 |
--------------------------------------------------------------------------------
/src/providers/MyTestProvider2.tsx:
--------------------------------------------------------------------------------
1 | import React, {useState} from 'react';
2 |
3 | import createCtx from '../utils/createCtx';
4 |
5 | interface User {
6 | displayName: string;
7 | age: number;
8 | job: string;
9 | }
10 |
11 | interface Context {
12 | user: User;
13 | setUser: React.Dispatch>;
14 | }
15 |
16 | const [useCtx, Provider] = createCtx();
17 |
18 | interface Props {
19 | children?: React.ReactElement;
20 | }
21 |
22 | function MyTestProvider2({children}: Props): React.ReactElement {
23 | const [user, setUser] = useState({
24 | displayName: '',
25 | age: 0,
26 | job: 'dev',
27 | });
28 |
29 | return (
30 |
35 | {children}
36 |
37 | );
38 | }
39 |
40 | export {useCtx as useStateContext, MyTestProvider2};
41 |
--------------------------------------------------------------------------------
/src/providers/ThemeProvider.tsx:
--------------------------------------------------------------------------------
1 | import React, {useState} from 'react';
2 |
3 | import type {DefaultTheme} from 'styled-components';
4 | import {ThemeProvider as OriginalThemeProvider} from 'styled-components/native';
5 | import {ThemeType} from '../types';
6 | import createCtx from '../utils/createCtx';
7 | import {createTheme} from '../theme';
8 |
9 | interface Context {
10 | theme: DefaultTheme;
11 | themeType: ThemeType;
12 | changeThemeType: () => void;
13 | }
14 |
15 | const [useCtx, Provider] = createCtx();
16 |
17 | export const defaultThemeType: ThemeType = ThemeType.LIGHT;
18 |
19 | interface Props {
20 | children?: React.ReactElement;
21 | // using initial ThemeType is essential while testing apps with consistent ThemeType
22 | initialThemeType?: ThemeType;
23 | }
24 |
25 | function ThemeProvider({
26 | children,
27 | initialThemeType = defaultThemeType,
28 | }: Props): React.ReactElement {
29 | const [themeType, setThemeType] = useState(initialThemeType);
30 | const changeThemeType = (): void => {
31 | const newThemeType =
32 | themeType === ThemeType.LIGHT ? ThemeType.DARK : ThemeType.LIGHT;
33 | setThemeType(newThemeType);
34 | };
35 | const theme = createTheme(themeType);
36 |
37 | return (
38 |
44 | {children}
45 |
46 | );
47 | }
48 |
49 | export {useCtx as useThemeContext, ThemeProvider};
50 |
--------------------------------------------------------------------------------
/src/providers/index.tsx:
--------------------------------------------------------------------------------
1 | import {AppProvider} from './AppProvider';
2 | import React from 'react';
3 | import {ThemeProvider} from './ThemeProvider';
4 | import {ThemeType} from '../types';
5 |
6 | interface Props {
7 | initialThemeType?: ThemeType;
8 | children?: React.ReactElement;
9 | }
10 |
11 | // Add providers here
12 | const RootProvider = ({
13 | initialThemeType,
14 | children,
15 | }: Props): React.ReactElement => {
16 | return (
17 |
18 |
22 | {children}
23 |
24 |
25 | );
26 | };
27 |
28 | export default RootProvider;
29 |
--------------------------------------------------------------------------------
/src/providers/myProvider.tsx:
--------------------------------------------------------------------------------
1 | import React, {useState} from 'react';
2 |
3 | import createCtx from '../utils/createCtx';
4 |
5 | interface User {
6 | displayName: string;
7 | age: number;
8 | job: string;
9 | }
10 |
11 | interface Context {
12 | user: User;
13 | setUser: React.Dispatch>;
14 | }
15 |
16 | const [useCtx, Provider] = createCtx();
17 |
18 | interface Props {
19 | children?: React.ReactElement;
20 | }
21 |
22 | function StateProvider({children}: Props): React.ReactElement {
23 | const [user, setUser] = useState({
24 | displayName: '',
25 | age: 0,
26 | job: 'dev',
27 | });
28 |
29 | return (
30 |
35 | {children}
36 |
37 | );
38 | }
39 |
40 | export {useCtx as useStateContext, StateProvider};
41 |
--------------------------------------------------------------------------------
/src/styled.d.ts:
--------------------------------------------------------------------------------
1 | import 'styled-components';
2 | import type {Theme} from './theme';
3 |
4 | declare module 'styled-components' {
5 | export interface DefaultTheme extends Theme {
6 | // hyochan - no empty extends
7 | background: string;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/theme.ts:
--------------------------------------------------------------------------------
1 | import type {DefaultTheme} from 'styled-components';
2 | import {ThemeType} from './types';
3 |
4 | const colors = {
5 | skyBlue: '#069ccd',
6 | whiteGray: '#f7f6f3',
7 | dusk: 'rgb(65,77,107)',
8 | green: 'rgb(29,211,168)',
9 | greenBlue: 'rgb(36,205,151)',
10 | mediumGray: 'rgb(134,154,183)',
11 | paleGray: 'rgb(221,226,236)',
12 | lightBackground: 'white',
13 | lightBackgroundLight: '#f7f6f3',
14 | darkBackground: '#323739',
15 | darkBackgroundLight: '#393241',
16 | };
17 |
18 | const light = {
19 | background: colors.lightBackground,
20 | btnPrimary: colors.skyBlue,
21 | btnPrimaryFont: 'white',
22 | btnPrimaryLight: colors.whiteGray,
23 | btnPrimaryLightFont: 'black',
24 | textDisabled: '#969696',
25 | btnDisabled: 'rgb(224,224,224)',
26 | fontColor: 'black',
27 | tintColor: '#333333',
28 | };
29 |
30 | export type Theme = typeof light;
31 |
32 | const dark: Theme = {
33 | background: colors.darkBackground,
34 | btnPrimary: colors.skyBlue,
35 | btnPrimaryFont: 'white',
36 | btnPrimaryLight: colors.whiteGray,
37 | btnPrimaryLightFont: 'black',
38 | textDisabled: '#969696',
39 | btnDisabled: 'rgb(224,224,224)',
40 | fontColor: 'white',
41 | tintColor: '#a3a3a3',
42 | };
43 |
44 | const theme = {
45 | light,
46 | dark,
47 | };
48 |
49 | export const createTheme = (type = ThemeType.LIGHT): DefaultTheme => {
50 | switch (type) {
51 | case ThemeType.LIGHT:
52 | return theme.light;
53 | case ThemeType.DARK:
54 | return theme.dark;
55 | }
56 | };
57 |
--------------------------------------------------------------------------------
/src/types/index.ts:
--------------------------------------------------------------------------------
1 | import type {StyleProp, TextStyle} from 'react-native';
2 |
3 | import type {DrawerNavigationProp} from '@react-navigation/drawer';
4 | import type {FC} from 'react';
5 | import type {StackNavigationProp} from '@react-navigation/stack';
6 |
7 | export interface User {
8 | displayName: string;
9 | age: number;
10 | job: string;
11 | }
12 |
13 | type StackParamList = {
14 | default: undefined;
15 | Intro: {userId: string};
16 | Temp: undefined;
17 | StackNavigator: undefined;
18 | DrawerNavigator: undefined;
19 | BottomTabNavigator: undefined;
20 | MaterialBottomTabNavigator: undefined;
21 | MaterialTopTabNavigator: undefined;
22 | };
23 |
24 | export type DefaultNavigationProps =
25 | StackNavigationProp;
26 |
27 | export type DefaultDrawerNavigationProps =
28 | DrawerNavigationProp;
29 |
30 | export enum ThemeType {
31 | LIGHT = 'LIGHT',
32 | DARK = 'DARK',
33 | }
34 |
35 | interface IconProps {
36 | style?: StyleProp;
37 | width?: number | string;
38 | height?: number | string;
39 | children?: never;
40 | }
41 |
42 | export type IconType = FC;
43 |
--------------------------------------------------------------------------------
/src/utils/Icons.ts:
--------------------------------------------------------------------------------
1 | import MASK from '../../assets/icons/mask.png';
2 |
3 | export const IC_MASK = MASK;
4 |
--------------------------------------------------------------------------------
/src/utils/Styles.ts:
--------------------------------------------------------------------------------
1 | import {Dimensions} from 'react-native';
2 |
3 | const {width, height} = Dimensions.get('window');
4 | let calRatio = width <= height ? 16 * (width / height) : 16 * (height / width);
5 | if (width <= height) {
6 | if (calRatio < 9) {
7 | calRatio = width / 9;
8 | } else {
9 | calRatio = height / 18;
10 | }
11 | } else {
12 | if (calRatio < 9) {
13 | calRatio = height / 9;
14 | } else {
15 | calRatio = width / 18;
16 | }
17 | }
18 |
19 | export const screenWidth = width;
20 | export const screenHeight = height;
21 | export const ratio = calRatio / (360 / 9);
22 |
--------------------------------------------------------------------------------
/src/utils/createCtx.ts:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | type CreateCtx = readonly [
4 | () => A,
5 | React.ProviderExoticComponent>,
6 | ];
7 |
8 | // create context with no upfront defaultValue
9 | // without having to do undefined check all the time
10 | function createCtx(): CreateCtx {
11 | const ctx = React.createContext(undefined);
12 | function useCtx(): A {
13 | const c = React.useContext(ctx);
14 | if (!c) {
15 | throw new Error('useCtx must be inside a Provider with a value');
16 | }
17 |
18 | return c;
19 | }
20 |
21 | // make TypeScript infer a tuple, not an array of union types
22 | return [useCtx, ctx.Provider] as const;
23 | }
24 |
25 | export default createCtx;
26 |
--------------------------------------------------------------------------------
/test/assetsTransformer.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Prevent error from requiring asset during test.
3 | * https://github.com/facebook/jest/issues/2663
4 | */
5 | const path = require('path');
6 |
7 | module.exports = {
8 | process(src, filename, config, options) {
9 | return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';';
10 | },
11 | };
12 |
--------------------------------------------------------------------------------
/test/jestSetup.ts:
--------------------------------------------------------------------------------
1 | import {NativeModules, View} from 'react-native';
2 |
3 | /**
4 | * monkey patching the locale to avoid the error:
5 | * Something went wrong initializing the native ReactLocalization module
6 | * https://gist.github.com/MoOx/08b465c3eac9e36e683929532472d1e0
7 | */
8 | // import mockAsyncStorage from '@react-native-community/async-storage/jest/async-storage-mock';
9 |
10 | // jest.mock('@react-native-community/async-storage', () => mockAsyncStorage);
11 |
12 | jest.mock('react-native-reanimated', () =>
13 | require('react-native-reanimated/mock'),
14 | );
15 |
--------------------------------------------------------------------------------
/test/testUtils.tsx:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 |
3 | import React, { ReactElement } from 'react';
4 |
5 | import RootProvider from '../src/providers';
6 | import { ThemeType } from '../src/types';
7 |
8 | export const createTestElement = (
9 | child: ReactElement,
10 | themeType?: ThemeType,
11 | ): ReactElement => (
12 | {child}
13 | );
14 |
15 | export const createTestProps = (obj?: object): object | unknown | any => ({
16 | navigation: {
17 | navigate: jest.fn(),
18 | goBack: jest.fn(),
19 | },
20 | ...obj,
21 | });
22 |
--------------------------------------------------------------------------------
/tsconfig.jest.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig",
3 | "compilerOptions": {
4 | "jsx": "react",
5 | "module": "commonjs"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@tsconfig/react-native/tsconfig.json",
3 | "compilerOptions": {
4 | "types": ["@types/styled-components-react-native"]
5 | },
6 | "include": [
7 | "src/**/*.ts",
8 | "**/*.test.tsx",
9 | "**/*.spec.ts",
10 | "src/**/*.tsx"
11 | ],
12 | "exclude": [
13 | "node_modules",
14 | ],
15 | "jest": {
16 | "globals": {
17 | "ts-jest": {
18 | "skipBabel": true
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------