├── .buckconfig
├── .eslintrc.js
├── .gitattributes
├── .gitignore
├── .prettierrc.js
├── .watchmanconfig
├── App.tsx
├── Gemfile
├── Gemfile.lock
├── __tests__
└── App-test.tsx
├── android
├── app
│ ├── build.gradle
│ ├── debug.keystore
│ ├── proguard-rules.pro
│ └── src
│ │ ├── debug
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── rntypescripttemplate
│ │ │ └── ReactNativeFlipper.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ │ └── fonts
│ │ │ │ ├── iCielVAGRoundedNext-Bold.otf
│ │ │ │ ├── iCielVAGRoundedNext-DemiBold.otf
│ │ │ │ ├── iCielVAGRoundedNext-Light.otf
│ │ │ │ ├── iCielVAGRoundedNext-LightItalic.otf
│ │ │ │ ├── iCielVAGRoundedNext-Medium.otf
│ │ │ │ └── iCielVAGRoundedNext-Regular.otf
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── rntypescripttemplate
│ │ │ │ ├── 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
│ │ └── rntypescripttemplate
│ │ └── ReactNativeFlipper.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── link-assets-manifest.json
└── settings.gradle
├── app.json
├── assets
└── fonts
│ ├── iCielVAGRoundedNext-Bold.otf
│ ├── iCielVAGRoundedNext-DemiBold.otf
│ ├── iCielVAGRoundedNext-Light.otf
│ ├── iCielVAGRoundedNext-LightItalic.otf
│ ├── iCielVAGRoundedNext-Medium.otf
│ └── iCielVAGRoundedNext-Regular.otf
├── babel.config.js
├── gif
├── androidRecord.gif
├── androidRecord.mp4
├── iosRecord.gif
└── iosRecord.mov
├── index.js
├── ios
├── .xcode.env
├── Podfile
├── Podfile.lock
├── RNTypeScriptTemplate.xcodeproj
│ ├── project.pbxproj
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── RNTypeScriptTemplate.xcscheme
├── RNTypeScriptTemplate.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── RNTypeScriptTemplate
│ ├── AppDelegate.h
│ ├── AppDelegate.mm
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ └── Contents.json
│ ├── Info.plist
│ ├── LaunchScreen.storyboard
│ └── main.m
├── RNTypeScriptTemplateTests
│ ├── Info.plist
│ └── RNTypeScriptTemplateTests.m
└── link-assets-manifest.json
├── metro.config.js
├── package.json
├── react-native.config.js
├── readme.md
├── src
├── Components
│ ├── CommonBtn.tsx
│ ├── LoadingView.tsx
│ └── NoDataView.tsx
├── DetailFollower
│ ├── DetailFollower.Screen.tsx
│ └── DetailFollower.Style.ts
├── DetailProfile
│ ├── DetailProfile.Screen.tsx
│ └── DetailProfile.Style.ts
├── DrawerNavigator
│ ├── DrawerNavigator.Screen.tsx
│ └── DrawerNavigator.Style.ts
├── Follower
│ ├── Follower.Action.ts
│ ├── Follower.Model.ts
│ ├── Follower.Reducer.ts
│ ├── Follower.Saga.ts
│ ├── Follower.Screen.tsx
│ └── Follower.Style.ts
├── Navigator
│ ├── AppContainer.tsx
│ ├── AppDrawer.tsx
│ └── AppStack.tsx
├── Profile
│ ├── Profile.Action.ts
│ ├── Profile.Model.ts
│ ├── Profile.Reducer.ts
│ ├── Profile.Saga.ts
│ ├── Profile.Screen.tsx
│ └── Profile.Style.ts
├── Themes
│ ├── Application.Style.ts
│ ├── Colors.ts
│ └── Images.ts
├── actions.ts
├── api.ts
├── const.ts
├── reducers.ts
└── sagas.ts
├── 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 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | extends: '@react-native-community',
4 | parser: '@typescript-eslint/parser',
5 | plugins: ['@typescript-eslint'],
6 | rules: {
7 | 'react-native/no-inline-styles': 'off',
8 | 'prettier/prettier': 'warn',
9 | },
10 | };
11 |
--------------------------------------------------------------------------------
/.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 |
24 | # Android/IntelliJ
25 | #
26 | .idea
27 | .gradle
28 | local.properties
29 | *.iml
30 |
31 | # node.js
32 | #
33 | node_modules/
34 | npm-debug.log
35 | yarn-error.log
36 |
37 | # BUCK
38 | buck-out/
39 | \.buckd/
40 |
41 | # fastlane
42 | #
43 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
44 | # screenshots whenever they are needed.
45 | # For more information about the recommended setup visit:
46 | # https://docs.fastlane.tools/best-practices/source-control/
47 |
48 | */fastlane/report.xml
49 | */fastlane/Preview.html
50 | */fastlane/screenshots
51 |
52 | # Bundle artifact
53 | *.jsbundle
54 |
55 | # CocoaPods
56 | /ios/Pods/
57 |
--------------------------------------------------------------------------------
/.prettierrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | arrowParens: 'avoid',
3 | bracketSameLine: true,
4 | bracketSpacing: false,
5 | singleQuote: true,
6 | trailingComma: 'all',
7 | };
8 |
--------------------------------------------------------------------------------
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/App.tsx:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import createSagaMiddleware from 'redux-saga';
3 | import AsyncStorage from '@react-native-async-storage/async-storage';
4 | import {applyMiddleware, createStore} from 'redux';
5 | import {persistReducer, persistStore} from 'redux-persist';
6 | import {Provider} from 'react-redux';
7 | import {PersistGate} from 'redux-persist/integration/react';
8 | import rootReducer from './src/reducers';
9 | import rootSaga from './src/sagas';
10 | import RootContainer from './src/Navigator/AppContainer';
11 | import 'react-native-gesture-handler';
12 |
13 | const sagaMiddleware = createSagaMiddleware();
14 | const persistConfig = {
15 | key: 'root',
16 | storage: AsyncStorage,
17 | whitelist: [],
18 | };
19 |
20 | const persistedReducer = persistReducer(persistConfig, rootReducer);
21 | const store = createStore(persistedReducer, applyMiddleware(sagaMiddleware));
22 | const persistor = persistStore(store);
23 |
24 | sagaMiddleware.run(rootSaga);
25 |
26 | export default class App extends Component {
27 | render() {
28 | return (
29 |
30 |
31 |
32 |
33 |
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (3.0.5)
5 | rexml
6 | activesupport (6.1.7.1)
7 | concurrent-ruby (~> 1.0, >= 1.0.2)
8 | i18n (>= 1.6, < 2)
9 | minitest (>= 5.1)
10 | tzinfo (~> 2.0)
11 | zeitwerk (~> 2.3)
12 | addressable (2.8.1)
13 | public_suffix (>= 2.0.2, < 6.0)
14 | algoliasearch (1.27.5)
15 | httpclient (~> 2.8, >= 2.8.3)
16 | json (>= 1.5.1)
17 | atomos (0.1.3)
18 | claide (1.1.0)
19 | cocoapods (1.11.3)
20 | addressable (~> 2.8)
21 | claide (>= 1.0.2, < 2.0)
22 | cocoapods-core (= 1.11.3)
23 | cocoapods-deintegrate (>= 1.0.3, < 2.0)
24 | cocoapods-downloader (>= 1.4.0, < 2.0)
25 | cocoapods-plugins (>= 1.0.0, < 2.0)
26 | cocoapods-search (>= 1.0.0, < 2.0)
27 | cocoapods-trunk (>= 1.4.0, < 2.0)
28 | cocoapods-try (>= 1.1.0, < 2.0)
29 | colored2 (~> 3.1)
30 | escape (~> 0.0.4)
31 | fourflusher (>= 2.3.0, < 3.0)
32 | gh_inspector (~> 1.0)
33 | molinillo (~> 0.8.0)
34 | nap (~> 1.0)
35 | ruby-macho (>= 1.0, < 3.0)
36 | xcodeproj (>= 1.21.0, < 2.0)
37 | cocoapods-core (1.11.3)
38 | activesupport (>= 5.0, < 7)
39 | addressable (~> 2.8)
40 | algoliasearch (~> 1.0)
41 | concurrent-ruby (~> 1.1)
42 | fuzzy_match (~> 2.0.4)
43 | nap (~> 1.0)
44 | netrc (~> 0.11)
45 | public_suffix (~> 4.0)
46 | typhoeus (~> 1.0)
47 | cocoapods-deintegrate (1.0.5)
48 | cocoapods-downloader (1.6.3)
49 | cocoapods-plugins (1.0.0)
50 | nap
51 | cocoapods-search (1.0.1)
52 | cocoapods-trunk (1.6.0)
53 | nap (>= 0.8, < 2.0)
54 | netrc (~> 0.11)
55 | cocoapods-try (1.2.0)
56 | colored2 (3.1.2)
57 | concurrent-ruby (1.1.10)
58 | escape (0.0.4)
59 | ethon (0.16.0)
60 | ffi (>= 1.15.0)
61 | ffi (1.15.5)
62 | fourflusher (2.3.1)
63 | fuzzy_match (2.0.4)
64 | gh_inspector (1.1.3)
65 | httpclient (2.8.3)
66 | i18n (1.12.0)
67 | concurrent-ruby (~> 1.0)
68 | json (2.6.3)
69 | minitest (5.17.0)
70 | molinillo (0.8.0)
71 | nanaimo (0.3.0)
72 | nap (1.1.0)
73 | netrc (0.11.0)
74 | public_suffix (4.0.7)
75 | rexml (3.2.5)
76 | ruby-macho (2.5.1)
77 | typhoeus (1.4.0)
78 | ethon (>= 0.9.0)
79 | tzinfo (2.0.5)
80 | concurrent-ruby (~> 1.0)
81 | xcodeproj (1.22.0)
82 | CFPropertyList (>= 2.3.3, < 4.0)
83 | atomos (~> 0.1.3)
84 | claide (>= 1.0.2, < 2.0)
85 | colored2 (~> 3.1)
86 | nanaimo (~> 0.3.0)
87 | rexml (~> 3.2.4)
88 | zeitwerk (2.6.6)
89 |
90 | PLATFORMS
91 | ruby
92 |
93 | DEPENDENCIES
94 | cocoapods (~> 1.11, >= 1.11.3)
95 |
96 | RUBY VERSION
97 | ruby 2.7.6p219
98 |
99 | BUNDLED WITH
100 | 2.4.3
101 |
--------------------------------------------------------------------------------
/__tests__/App-test.tsx:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import 'react-native';
6 | import React from 'react';
7 | import App from '../App';
8 |
9 | // Note: test renderer must be required after react-native.
10 | import renderer from 'react-test-renderer';
11 |
12 | it('renders correctly', () => {
13 | renderer.create();
14 | });
15 |
--------------------------------------------------------------------------------
/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.rntypescripttemplate"
97 | defaultConfig {
98 | applicationId "com.rntypescripttemplate"
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 | apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
172 |
--------------------------------------------------------------------------------
/android/app/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/rntypescripttemplate/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.rntypescripttemplate;
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/assets/fonts/iCielVAGRoundedNext-Bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/android/app/src/main/assets/fonts/iCielVAGRoundedNext-Bold.otf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/iCielVAGRoundedNext-DemiBold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/android/app/src/main/assets/fonts/iCielVAGRoundedNext-DemiBold.otf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/iCielVAGRoundedNext-Light.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/android/app/src/main/assets/fonts/iCielVAGRoundedNext-Light.otf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/iCielVAGRoundedNext-LightItalic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/android/app/src/main/assets/fonts/iCielVAGRoundedNext-LightItalic.otf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/iCielVAGRoundedNext-Medium.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/android/app/src/main/assets/fonts/iCielVAGRoundedNext-Medium.otf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/iCielVAGRoundedNext-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/android/app/src/main/assets/fonts/iCielVAGRoundedNext-Regular.otf
--------------------------------------------------------------------------------
/android/app/src/main/java/com/rntypescripttemplate/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.rntypescripttemplate;
2 |
3 | import com.facebook.react.ReactActivity;
4 | import com.facebook.react.ReactActivityDelegate;
5 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
6 | import com.facebook.react.defaults.DefaultReactActivityDelegate;
7 |
8 | public class MainActivity extends ReactActivity {
9 |
10 | /**
11 | * Returns the name of the main component registered from JavaScript. This is used to schedule
12 | * rendering of the component.
13 | */
14 | @Override
15 | protected String getMainComponentName() {
16 | return "RNTypeScriptTemplate";
17 | }
18 |
19 | /**
20 | * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
21 | * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
22 | * (aka React 18) with two boolean flags.
23 | */
24 | @Override
25 | protected ReactActivityDelegate createReactActivityDelegate() {
26 | return new DefaultReactActivityDelegate(
27 | this,
28 | getMainComponentName(),
29 | // If you opted-in for the New Architecture, we enable the Fabric Renderer.
30 | DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled
31 | // If you opted-in for the New Architecture, we enable Concurrent React (i.e. React 18).
32 | DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/rntypescripttemplate/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.rntypescripttemplate;
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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | RNTypeScriptTemplate
3 |
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/app/src/release/java/com/rntypescripttemplate/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.rntypescripttemplate;
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/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/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/link-assets-manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "migIndex": 1,
3 | "data": [
4 | {
5 | "path": "assets/fonts/iCielVAGRoundedNext-Bold.otf",
6 | "sha1": "f3ee92001b65aeab4813a904f9fc83983370bae4"
7 | },
8 | {
9 | "path": "assets/fonts/iCielVAGRoundedNext-DemiBold.otf",
10 | "sha1": "b980fb6b873981f81cd51e1647a9b2bdb025a810"
11 | },
12 | {
13 | "path": "assets/fonts/iCielVAGRoundedNext-Light.otf",
14 | "sha1": "8d918a7bb06f0b69838eae9e8e54ba5256443ee0"
15 | },
16 | {
17 | "path": "assets/fonts/iCielVAGRoundedNext-LightItalic.otf",
18 | "sha1": "20824e26ad220f9d715497c00910f62e8ad257c9"
19 | },
20 | {
21 | "path": "assets/fonts/iCielVAGRoundedNext-Medium.otf",
22 | "sha1": "43cb923d6451aea4775a79a6f82bf8b2f55f8294"
23 | },
24 | {
25 | "path": "assets/fonts/iCielVAGRoundedNext-Regular.otf",
26 | "sha1": "7e915796f31cd418fe98b9f248361448143c59e4"
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'RNTypeScriptTemplate'
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": "RNTypeScriptTemplate",
3 | "displayName": "RNTypeScriptTemplate"
4 | }
5 |
--------------------------------------------------------------------------------
/assets/fonts/iCielVAGRoundedNext-Bold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/assets/fonts/iCielVAGRoundedNext-Bold.otf
--------------------------------------------------------------------------------
/assets/fonts/iCielVAGRoundedNext-DemiBold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/assets/fonts/iCielVAGRoundedNext-DemiBold.otf
--------------------------------------------------------------------------------
/assets/fonts/iCielVAGRoundedNext-Light.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/assets/fonts/iCielVAGRoundedNext-Light.otf
--------------------------------------------------------------------------------
/assets/fonts/iCielVAGRoundedNext-LightItalic.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/assets/fonts/iCielVAGRoundedNext-LightItalic.otf
--------------------------------------------------------------------------------
/assets/fonts/iCielVAGRoundedNext-Medium.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/assets/fonts/iCielVAGRoundedNext-Medium.otf
--------------------------------------------------------------------------------
/assets/fonts/iCielVAGRoundedNext-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/assets/fonts/iCielVAGRoundedNext-Regular.otf
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | plugins: ['react-native-reanimated/plugin'],
4 | env: {
5 | production: {
6 | plugins: ['transform-remove-console'],
7 | },
8 | },
9 | };
10 |
--------------------------------------------------------------------------------
/gif/androidRecord.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/gif/androidRecord.gif
--------------------------------------------------------------------------------
/gif/androidRecord.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/gif/androidRecord.mp4
--------------------------------------------------------------------------------
/gif/iosRecord.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/gif/iosRecord.gif
--------------------------------------------------------------------------------
/gif/iosRecord.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/duytq94/react-native-typescript-template/4abbe07ab8604da20c0bf02344d9ae47713a588f/gif/iosRecord.mov
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import {AppRegistry} from 'react-native';
6 | import App from './App';
7 | import {name as appName} from './app.json';
8 |
9 | AppRegistry.registerComponent(appName, () => App);
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 | flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
8 |
9 | linkage = ENV['USE_FRAMEWORKS']
10 | if linkage != nil
11 | Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
12 | use_frameworks! :linkage => linkage.to_sym
13 | end
14 |
15 | target 'RNTypeScriptTemplate' do
16 | config = use_native_modules!
17 |
18 | # Flags change depending on the env values.
19 | flags = get_default_flags()
20 |
21 | use_react_native!(
22 | :path => config[:reactNativePath],
23 | # Hermes is now enabled by default. Disable by setting this flag to false.
24 | # Upcoming versions of React Native may rely on get_default_flags(), but
25 | # we make it explicit here to aid in the React Native upgrade process.
26 | :hermes_enabled => flags[:hermes_enabled],
27 | :fabric_enabled => flags[:fabric_enabled],
28 | # Enables Flipper.
29 | #
30 | # Note that if you have use_frameworks! enabled, Flipper will not work and
31 | # you should disable the next line.
32 | :flipper_configuration => flipper_config,
33 | # An absolute path to your application root.
34 | :app_path => "#{Pod::Config.instance.installation_root}/.."
35 | )
36 |
37 | target 'RNTypeScriptTemplateTests' do
38 | inherit! :complete
39 | # Pods for testing
40 | end
41 |
42 | post_install do |installer|
43 | react_native_post_install(
44 | installer,
45 | # Set `mac_catalyst_enabled` to `true` in order to apply patches
46 | # necessary for Mac Catalyst builds
47 | :mac_catalyst_enabled => false
48 | )
49 | __apply_Xcode_12_5_M1_post_install_workaround(installer)
50 | end
51 | end
52 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - boost (1.76.0)
3 | - CocoaAsyncSocket (7.6.5)
4 | - DoubleConversion (1.1.6)
5 | - FBLazyVector (0.71.0)
6 | - FBReactNativeSpec (0.71.0):
7 | - RCT-Folly (= 2021.07.22.00)
8 | - RCTRequired (= 0.71.0)
9 | - RCTTypeSafety (= 0.71.0)
10 | - React-Core (= 0.71.0)
11 | - React-jsi (= 0.71.0)
12 | - ReactCommon/turbomodule/core (= 0.71.0)
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.0):
77 | - hermes-engine/Pre-built (= 0.71.0)
78 | - hermes-engine/Pre-built (0.71.0)
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.0)
99 | - RCTTypeSafety (0.71.0):
100 | - FBLazyVector (= 0.71.0)
101 | - RCTRequired (= 0.71.0)
102 | - React-Core (= 0.71.0)
103 | - React (0.71.0):
104 | - React-Core (= 0.71.0)
105 | - React-Core/DevSupport (= 0.71.0)
106 | - React-Core/RCTWebSocket (= 0.71.0)
107 | - React-RCTActionSheet (= 0.71.0)
108 | - React-RCTAnimation (= 0.71.0)
109 | - React-RCTBlob (= 0.71.0)
110 | - React-RCTImage (= 0.71.0)
111 | - React-RCTLinking (= 0.71.0)
112 | - React-RCTNetwork (= 0.71.0)
113 | - React-RCTSettings (= 0.71.0)
114 | - React-RCTText (= 0.71.0)
115 | - React-RCTVibration (= 0.71.0)
116 | - React-callinvoker (0.71.0)
117 | - React-Codegen (0.71.0):
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.0):
129 | - glog
130 | - RCT-Folly (= 2021.07.22.00)
131 | - React-Core/Default (= 0.71.0)
132 | - React-cxxreact (= 0.71.0)
133 | - React-jsi (= 0.71.0)
134 | - React-jsiexecutor (= 0.71.0)
135 | - React-perflogger (= 0.71.0)
136 | - Yoga
137 | - React-Core/CoreModulesHeaders (0.71.0):
138 | - glog
139 | - RCT-Folly (= 2021.07.22.00)
140 | - React-Core/Default
141 | - React-cxxreact (= 0.71.0)
142 | - React-jsi (= 0.71.0)
143 | - React-jsiexecutor (= 0.71.0)
144 | - React-perflogger (= 0.71.0)
145 | - Yoga
146 | - React-Core/Default (0.71.0):
147 | - glog
148 | - RCT-Folly (= 2021.07.22.00)
149 | - React-cxxreact (= 0.71.0)
150 | - React-jsi (= 0.71.0)
151 | - React-jsiexecutor (= 0.71.0)
152 | - React-perflogger (= 0.71.0)
153 | - Yoga
154 | - React-Core/DevSupport (0.71.0):
155 | - glog
156 | - RCT-Folly (= 2021.07.22.00)
157 | - React-Core/Default (= 0.71.0)
158 | - React-Core/RCTWebSocket (= 0.71.0)
159 | - React-cxxreact (= 0.71.0)
160 | - React-jsi (= 0.71.0)
161 | - React-jsiexecutor (= 0.71.0)
162 | - React-jsinspector (= 0.71.0)
163 | - React-perflogger (= 0.71.0)
164 | - Yoga
165 | - React-Core/RCTActionSheetHeaders (0.71.0):
166 | - glog
167 | - RCT-Folly (= 2021.07.22.00)
168 | - React-Core/Default
169 | - React-cxxreact (= 0.71.0)
170 | - React-jsi (= 0.71.0)
171 | - React-jsiexecutor (= 0.71.0)
172 | - React-perflogger (= 0.71.0)
173 | - Yoga
174 | - React-Core/RCTAnimationHeaders (0.71.0):
175 | - glog
176 | - RCT-Folly (= 2021.07.22.00)
177 | - React-Core/Default
178 | - React-cxxreact (= 0.71.0)
179 | - React-jsi (= 0.71.0)
180 | - React-jsiexecutor (= 0.71.0)
181 | - React-perflogger (= 0.71.0)
182 | - Yoga
183 | - React-Core/RCTBlobHeaders (0.71.0):
184 | - glog
185 | - RCT-Folly (= 2021.07.22.00)
186 | - React-Core/Default
187 | - React-cxxreact (= 0.71.0)
188 | - React-jsi (= 0.71.0)
189 | - React-jsiexecutor (= 0.71.0)
190 | - React-perflogger (= 0.71.0)
191 | - Yoga
192 | - React-Core/RCTImageHeaders (0.71.0):
193 | - glog
194 | - RCT-Folly (= 2021.07.22.00)
195 | - React-Core/Default
196 | - React-cxxreact (= 0.71.0)
197 | - React-jsi (= 0.71.0)
198 | - React-jsiexecutor (= 0.71.0)
199 | - React-perflogger (= 0.71.0)
200 | - Yoga
201 | - React-Core/RCTLinkingHeaders (0.71.0):
202 | - glog
203 | - RCT-Folly (= 2021.07.22.00)
204 | - React-Core/Default
205 | - React-cxxreact (= 0.71.0)
206 | - React-jsi (= 0.71.0)
207 | - React-jsiexecutor (= 0.71.0)
208 | - React-perflogger (= 0.71.0)
209 | - Yoga
210 | - React-Core/RCTNetworkHeaders (0.71.0):
211 | - glog
212 | - RCT-Folly (= 2021.07.22.00)
213 | - React-Core/Default
214 | - React-cxxreact (= 0.71.0)
215 | - React-jsi (= 0.71.0)
216 | - React-jsiexecutor (= 0.71.0)
217 | - React-perflogger (= 0.71.0)
218 | - Yoga
219 | - React-Core/RCTSettingsHeaders (0.71.0):
220 | - glog
221 | - RCT-Folly (= 2021.07.22.00)
222 | - React-Core/Default
223 | - React-cxxreact (= 0.71.0)
224 | - React-jsi (= 0.71.0)
225 | - React-jsiexecutor (= 0.71.0)
226 | - React-perflogger (= 0.71.0)
227 | - Yoga
228 | - React-Core/RCTTextHeaders (0.71.0):
229 | - glog
230 | - RCT-Folly (= 2021.07.22.00)
231 | - React-Core/Default
232 | - React-cxxreact (= 0.71.0)
233 | - React-jsi (= 0.71.0)
234 | - React-jsiexecutor (= 0.71.0)
235 | - React-perflogger (= 0.71.0)
236 | - Yoga
237 | - React-Core/RCTVibrationHeaders (0.71.0):
238 | - glog
239 | - RCT-Folly (= 2021.07.22.00)
240 | - React-Core/Default
241 | - React-cxxreact (= 0.71.0)
242 | - React-jsi (= 0.71.0)
243 | - React-jsiexecutor (= 0.71.0)
244 | - React-perflogger (= 0.71.0)
245 | - Yoga
246 | - React-Core/RCTWebSocket (0.71.0):
247 | - glog
248 | - RCT-Folly (= 2021.07.22.00)
249 | - React-Core/Default (= 0.71.0)
250 | - React-cxxreact (= 0.71.0)
251 | - React-jsi (= 0.71.0)
252 | - React-jsiexecutor (= 0.71.0)
253 | - React-perflogger (= 0.71.0)
254 | - Yoga
255 | - React-CoreModules (0.71.0):
256 | - RCT-Folly (= 2021.07.22.00)
257 | - RCTTypeSafety (= 0.71.0)
258 | - React-Codegen (= 0.71.0)
259 | - React-Core/CoreModulesHeaders (= 0.71.0)
260 | - React-jsi (= 0.71.0)
261 | - React-RCTImage (= 0.71.0)
262 | - ReactCommon/turbomodule/core (= 0.71.0)
263 | - React-cxxreact (0.71.0):
264 | - boost (= 1.76.0)
265 | - DoubleConversion
266 | - glog
267 | - RCT-Folly (= 2021.07.22.00)
268 | - React-callinvoker (= 0.71.0)
269 | - React-jsi (= 0.71.0)
270 | - React-jsinspector (= 0.71.0)
271 | - React-logger (= 0.71.0)
272 | - React-perflogger (= 0.71.0)
273 | - React-runtimeexecutor (= 0.71.0)
274 | - React-hermes (0.71.0):
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.0)
281 | - React-jsiexecutor (= 0.71.0)
282 | - React-jsinspector (= 0.71.0)
283 | - React-perflogger (= 0.71.0)
284 | - React-jsi (0.71.0):
285 | - boost (= 1.76.0)
286 | - DoubleConversion
287 | - glog
288 | - hermes-engine
289 | - RCT-Folly (= 2021.07.22.00)
290 | - React-jsiexecutor (0.71.0):
291 | - DoubleConversion
292 | - glog
293 | - RCT-Folly (= 2021.07.22.00)
294 | - React-cxxreact (= 0.71.0)
295 | - React-jsi (= 0.71.0)
296 | - React-perflogger (= 0.71.0)
297 | - React-jsinspector (0.71.0)
298 | - React-logger (0.71.0):
299 | - glog
300 | - react-native-safe-area-context (4.5.0):
301 | - RCT-Folly
302 | - RCTRequired
303 | - RCTTypeSafety
304 | - React-Core
305 | - ReactCommon/turbomodule/core
306 | - React-perflogger (0.71.0)
307 | - React-RCTActionSheet (0.71.0):
308 | - React-Core/RCTActionSheetHeaders (= 0.71.0)
309 | - React-RCTAnimation (0.71.0):
310 | - RCT-Folly (= 2021.07.22.00)
311 | - RCTTypeSafety (= 0.71.0)
312 | - React-Codegen (= 0.71.0)
313 | - React-Core/RCTAnimationHeaders (= 0.71.0)
314 | - React-jsi (= 0.71.0)
315 | - ReactCommon/turbomodule/core (= 0.71.0)
316 | - React-RCTAppDelegate (0.71.0):
317 | - RCT-Folly
318 | - RCTRequired
319 | - RCTTypeSafety
320 | - React-Core
321 | - ReactCommon/turbomodule/core
322 | - React-RCTBlob (0.71.0):
323 | - RCT-Folly (= 2021.07.22.00)
324 | - React-Codegen (= 0.71.0)
325 | - React-Core/RCTBlobHeaders (= 0.71.0)
326 | - React-Core/RCTWebSocket (= 0.71.0)
327 | - React-jsi (= 0.71.0)
328 | - React-RCTNetwork (= 0.71.0)
329 | - ReactCommon/turbomodule/core (= 0.71.0)
330 | - React-RCTImage (0.71.0):
331 | - RCT-Folly (= 2021.07.22.00)
332 | - RCTTypeSafety (= 0.71.0)
333 | - React-Codegen (= 0.71.0)
334 | - React-Core/RCTImageHeaders (= 0.71.0)
335 | - React-jsi (= 0.71.0)
336 | - React-RCTNetwork (= 0.71.0)
337 | - ReactCommon/turbomodule/core (= 0.71.0)
338 | - React-RCTLinking (0.71.0):
339 | - React-Codegen (= 0.71.0)
340 | - React-Core/RCTLinkingHeaders (= 0.71.0)
341 | - React-jsi (= 0.71.0)
342 | - ReactCommon/turbomodule/core (= 0.71.0)
343 | - React-RCTNetwork (0.71.0):
344 | - RCT-Folly (= 2021.07.22.00)
345 | - RCTTypeSafety (= 0.71.0)
346 | - React-Codegen (= 0.71.0)
347 | - React-Core/RCTNetworkHeaders (= 0.71.0)
348 | - React-jsi (= 0.71.0)
349 | - ReactCommon/turbomodule/core (= 0.71.0)
350 | - React-RCTSettings (0.71.0):
351 | - RCT-Folly (= 2021.07.22.00)
352 | - RCTTypeSafety (= 0.71.0)
353 | - React-Codegen (= 0.71.0)
354 | - React-Core/RCTSettingsHeaders (= 0.71.0)
355 | - React-jsi (= 0.71.0)
356 | - ReactCommon/turbomodule/core (= 0.71.0)
357 | - React-RCTText (0.71.0):
358 | - React-Core/RCTTextHeaders (= 0.71.0)
359 | - React-RCTVibration (0.71.0):
360 | - RCT-Folly (= 2021.07.22.00)
361 | - React-Codegen (= 0.71.0)
362 | - React-Core/RCTVibrationHeaders (= 0.71.0)
363 | - React-jsi (= 0.71.0)
364 | - ReactCommon/turbomodule/core (= 0.71.0)
365 | - React-runtimeexecutor (0.71.0):
366 | - React-jsi (= 0.71.0)
367 | - ReactCommon/turbomodule/bridging (0.71.0):
368 | - DoubleConversion
369 | - glog
370 | - RCT-Folly (= 2021.07.22.00)
371 | - React-callinvoker (= 0.71.0)
372 | - React-Core (= 0.71.0)
373 | - React-cxxreact (= 0.71.0)
374 | - React-jsi (= 0.71.0)
375 | - React-logger (= 0.71.0)
376 | - React-perflogger (= 0.71.0)
377 | - ReactCommon/turbomodule/core (0.71.0):
378 | - DoubleConversion
379 | - glog
380 | - RCT-Folly (= 2021.07.22.00)
381 | - React-callinvoker (= 0.71.0)
382 | - React-Core (= 0.71.0)
383 | - React-cxxreact (= 0.71.0)
384 | - React-jsi (= 0.71.0)
385 | - React-logger (= 0.71.0)
386 | - React-perflogger (= 0.71.0)
387 | - RNCAsyncStorage (1.17.11):
388 | - React-Core
389 | - RNGestureHandler (2.9.0):
390 | - React-Core
391 | - RNReanimated (2.14.2):
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-safe-area-context (from `../node_modules/react-native-safe-area-context`)
475 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
476 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
477 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
478 | - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`)
479 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
480 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
481 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
482 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
483 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
484 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
485 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
486 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
487 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
488 | - "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
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-safe-area-context:
555 | :path: "../node_modules/react-native-safe-area-context"
556 | React-perflogger:
557 | :path: "../node_modules/react-native/ReactCommon/reactperflogger"
558 | React-RCTActionSheet:
559 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
560 | React-RCTAnimation:
561 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
562 | React-RCTAppDelegate:
563 | :path: "../node_modules/react-native/Libraries/AppDelegate"
564 | React-RCTBlob:
565 | :path: "../node_modules/react-native/Libraries/Blob"
566 | React-RCTImage:
567 | :path: "../node_modules/react-native/Libraries/Image"
568 | React-RCTLinking:
569 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
570 | React-RCTNetwork:
571 | :path: "../node_modules/react-native/Libraries/Network"
572 | React-RCTSettings:
573 | :path: "../node_modules/react-native/Libraries/Settings"
574 | React-RCTText:
575 | :path: "../node_modules/react-native/Libraries/Text"
576 | React-RCTVibration:
577 | :path: "../node_modules/react-native/Libraries/Vibration"
578 | React-runtimeexecutor:
579 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
580 | ReactCommon:
581 | :path: "../node_modules/react-native/ReactCommon"
582 | RNCAsyncStorage:
583 | :path: "../node_modules/@react-native-async-storage/async-storage"
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: 61839cba7a48c570b7ac3e1cd8a4d0948382202f
600 | FBReactNativeSpec: 5a14398ccf5e27c1ca2d7109eb920594ce93c10d
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: f6e715aa6c8bd38de6c13bc85e07b0a337edaa89
613 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
614 | OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
615 | RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
616 | RCTRequired: dea3e4163184ea57c50288c15c32c1529265c58f
617 | RCTTypeSafety: a0834ab89159a346731e8aae55ad6e2cce61c327
618 | React: d877d055ff2137ca0325a4babdef3411e11f3cb7
619 | React-callinvoker: 77bd2701eee3acac154b11ec219e68d5a1f780ad
620 | React-Codegen: bccc516adc1551ccfe04b0de27e345d38829b204
621 | React-Core: 4035f59e5bec8f3053583c6108d99c7516deb760
622 | React-CoreModules: b6a1f76423fea57a03e0d7a2f79d3b55cf193f2c
623 | React-cxxreact: fe5f6ec8ae875bebc71309d1e8ef89bb966d61a6
624 | React-hermes: 3c8ea5e8f402db2a08b57051206d7f2ba9c75565
625 | React-jsi: dbf0f82c93bfd828fa05c50f2ee74dc81f711050
626 | React-jsiexecutor: 060dd495f1e2af3d87216f7ca8a94c55ec885b4f
627 | React-jsinspector: 5061fcbec93fd672183dfb39cc2f65e55a0835db
628 | React-logger: a6c0b3a807a8e81f6d7fea2e72660766f55daa50
629 | react-native-safe-area-context: 39c2d8be3328df5d437ac1700f4f3a4f75716acc
630 | React-perflogger: e5fc4149e9bbb972b8520277f3b23141faa47a36
631 | React-RCTActionSheet: 991de88216bf03ab9bb1d213d73c62ecbe64ade7
632 | React-RCTAnimation: b74e3d1bf5280891a573e447b487fa1db0713b5b
633 | React-RCTAppDelegate: f52667f2dbc510f87b7988c5204e8764d50bf0c1
634 | React-RCTBlob: 6762787c01d5d8d18efed03764b0d58d3b79595a
635 | React-RCTImage: 9ed7eba8dd192a49def2cad2ecaedee7e7e315b4
636 | React-RCTLinking: 0b58eed9af0645a161b80bf412b6b721e4585c66
637 | React-RCTNetwork: dc075b0eea00d8a98c928f011d9bc2458acc7092
638 | React-RCTSettings: 30fb3f498cfaf8a4bb47334ff9ffbe318ef78766
639 | React-RCTText: a631564e84a227fe24bae7c04446f36faea7fcf5
640 | React-RCTVibration: 55c91eccdbd435d7634efbe847086944389475b0
641 | React-runtimeexecutor: ac80782d9d76ba2b0f709f4de0c427fe33c352dc
642 | ReactCommon: 20e38a9be5fe1341b5e422220877cc94034776ba
643 | RNCAsyncStorage: 8616bd5a58af409453ea4e1b246521bb76578d60
644 | RNGestureHandler: 071d7a9ad81e8b83fe7663b303d132406a7d8f39
645 | RNReanimated: 820c545f174f056788d12e17fe18b861ec30d5b6
646 | RNScreens: ea4cd3a853063cda19a4e3c28d2e52180c80f4eb
647 | RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
648 | SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
649 | Yoga: c618b544ff8bd8865cdca602f00cbcdb92fd6d31
650 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
651 |
652 | PODFILE CHECKSUM: e1fcb6e99c4025eb3fd80fd830b41ce2f2c76f41
653 |
654 | COCOAPODS: 1.11.3
655 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00E356F31AD99517003FC87E /* RNTypeScriptTemplateTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* RNTypeScriptTemplateTests.m */; };
11 | 0C80B921A6F3F58F76C31292 /* libPods-RNTypeScriptTemplate.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-RNTypeScriptTemplate.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 | 374DCDD3A8484D2BB4101393 /* (null) in Resources */ = {isa = PBXBuildFile; };
16 | 69F7C16C29790AF600829A18 /* Fonts in Resources */ = {isa = PBXBuildFile; fileRef = 69F7C16B29790AF600829A18 /* Fonts */; };
17 | 7699B88040F8A987B510C191 /* libPods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.a */; };
18 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
19 | 9552BF9B4CD8448691AE8CB8 /* iCielVAGRoundedNext-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 060CFA4AEDB345A78805314B /* iCielVAGRoundedNext-Bold.otf */; };
20 | 4933BE07F13D44A091CD5C92 /* iCielVAGRoundedNext-DemiBold.otf in Resources */ = {isa = PBXBuildFile; fileRef = 5AF3597B669A49B6B0D0B47F /* iCielVAGRoundedNext-DemiBold.otf */; };
21 | B571B8AA0FCA40E498787E81 /* iCielVAGRoundedNext-Light.otf in Resources */ = {isa = PBXBuildFile; fileRef = C6FC3BE16B264F42AC2C2F46 /* iCielVAGRoundedNext-Light.otf */; };
22 | 58E76A3720E74167AC0F0958 /* iCielVAGRoundedNext-LightItalic.otf in Resources */ = {isa = PBXBuildFile; fileRef = 92C94E712BC24E05A738156F /* iCielVAGRoundedNext-LightItalic.otf */; };
23 | 728D49D744EC498EB7F5506F /* iCielVAGRoundedNext-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = 765561AEB45C429DA3D3A072 /* iCielVAGRoundedNext-Medium.otf */; };
24 | 300CE62D35E94138BD1DFF13 /* iCielVAGRoundedNext-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 2B21ACC64C64432B8E45B7B0 /* iCielVAGRoundedNext-Regular.otf */; };
25 | /* End PBXBuildFile section */
26 |
27 | /* Begin PBXContainerItemProxy section */
28 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
29 | isa = PBXContainerItemProxy;
30 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
31 | proxyType = 1;
32 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
33 | remoteInfo = RNTypeScriptTemplate;
34 | };
35 | /* End PBXContainerItemProxy section */
36 |
37 | /* Begin PBXFileReference section */
38 | 00E356EE1AD99517003FC87E /* RNTypeScriptTemplateTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNTypeScriptTemplateTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
39 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
40 | 00E356F21AD99517003FC87E /* RNTypeScriptTemplateTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNTypeScriptTemplateTests.m; sourceTree = ""; };
41 | 13B07F961A680F5B00A75B9A /* RNTypeScriptTemplate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNTypeScriptTemplate.app; sourceTree = BUILT_PRODUCTS_DIR; };
42 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNTypeScriptTemplate/AppDelegate.h; sourceTree = ""; };
43 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = RNTypeScriptTemplate/AppDelegate.mm; sourceTree = ""; };
44 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNTypeScriptTemplate/Images.xcassets; sourceTree = ""; };
45 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNTypeScriptTemplate/Info.plist; sourceTree = ""; };
46 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNTypeScriptTemplate/main.m; sourceTree = ""; };
47 | 19F6CBCC0A4E27FBF8BF4A61 /* libPods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
48 | 3B4392A12AC88292D35C810B /* Pods-RNTypeScriptTemplate.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNTypeScriptTemplate.debug.xcconfig"; path = "Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate.debug.xcconfig"; sourceTree = ""; };
49 | 5709B34CF0A7D63546082F79 /* Pods-RNTypeScriptTemplate.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNTypeScriptTemplate.release.xcconfig"; path = "Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate.release.xcconfig"; sourceTree = ""; };
50 | 5B7EB9410499542E8C5724F5 /* Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.debug.xcconfig"; path = "Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.debug.xcconfig"; sourceTree = ""; };
51 | 5DCACB8F33CDC322A6C60F78 /* libPods-RNTypeScriptTemplate.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNTypeScriptTemplate.a"; sourceTree = BUILT_PRODUCTS_DIR; };
52 | 69F7C16B29790AF600829A18 /* Fonts */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Fonts; path = "../node_modules/react-native-vector-icons/Fonts"; sourceTree = ""; };
53 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RNTypeScriptTemplate/LaunchScreen.storyboard; sourceTree = ""; };
54 | 89C6BE57DB24E9ADA2F236DE /* Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.release.xcconfig"; path = "Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.release.xcconfig"; sourceTree = ""; };
55 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
56 | 060CFA4AEDB345A78805314B /* iCielVAGRoundedNext-Bold.otf */ = {isa = PBXFileReference; name = "iCielVAGRoundedNext-Bold.otf"; path = "../assets/fonts/iCielVAGRoundedNext-Bold.otf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
57 | 5AF3597B669A49B6B0D0B47F /* iCielVAGRoundedNext-DemiBold.otf */ = {isa = PBXFileReference; name = "iCielVAGRoundedNext-DemiBold.otf"; path = "../assets/fonts/iCielVAGRoundedNext-DemiBold.otf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
58 | C6FC3BE16B264F42AC2C2F46 /* iCielVAGRoundedNext-Light.otf */ = {isa = PBXFileReference; name = "iCielVAGRoundedNext-Light.otf"; path = "../assets/fonts/iCielVAGRoundedNext-Light.otf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
59 | 92C94E712BC24E05A738156F /* iCielVAGRoundedNext-LightItalic.otf */ = {isa = PBXFileReference; name = "iCielVAGRoundedNext-LightItalic.otf"; path = "../assets/fonts/iCielVAGRoundedNext-LightItalic.otf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
60 | 765561AEB45C429DA3D3A072 /* iCielVAGRoundedNext-Medium.otf */ = {isa = PBXFileReference; name = "iCielVAGRoundedNext-Medium.otf"; path = "../assets/fonts/iCielVAGRoundedNext-Medium.otf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
61 | 2B21ACC64C64432B8E45B7B0 /* iCielVAGRoundedNext-Regular.otf */ = {isa = PBXFileReference; name = "iCielVAGRoundedNext-Regular.otf"; path = "../assets/fonts/iCielVAGRoundedNext-Regular.otf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
62 | /* End PBXFileReference section */
63 |
64 | /* Begin PBXFrameworksBuildPhase section */
65 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
66 | isa = PBXFrameworksBuildPhase;
67 | buildActionMask = 2147483647;
68 | files = (
69 | 7699B88040F8A987B510C191 /* libPods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.a in Frameworks */,
70 | );
71 | runOnlyForDeploymentPostprocessing = 0;
72 | };
73 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
74 | isa = PBXFrameworksBuildPhase;
75 | buildActionMask = 2147483647;
76 | files = (
77 | 0C80B921A6F3F58F76C31292 /* libPods-RNTypeScriptTemplate.a in Frameworks */,
78 | );
79 | runOnlyForDeploymentPostprocessing = 0;
80 | };
81 | /* End PBXFrameworksBuildPhase section */
82 |
83 | /* Begin PBXGroup section */
84 | 00E356EF1AD99517003FC87E /* RNTypeScriptTemplateTests */ = {
85 | isa = PBXGroup;
86 | children = (
87 | 00E356F21AD99517003FC87E /* RNTypeScriptTemplateTests.m */,
88 | 00E356F01AD99517003FC87E /* Supporting Files */,
89 | );
90 | path = RNTypeScriptTemplateTests;
91 | sourceTree = "";
92 | };
93 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
94 | isa = PBXGroup;
95 | children = (
96 | 00E356F11AD99517003FC87E /* Info.plist */,
97 | );
98 | name = "Supporting Files";
99 | sourceTree = "";
100 | };
101 | 13B07FAE1A68108700A75B9A /* RNTypeScriptTemplate */ = {
102 | isa = PBXGroup;
103 | children = (
104 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
105 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */,
106 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
107 | 13B07FB61A68108700A75B9A /* Info.plist */,
108 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
109 | 13B07FB71A68108700A75B9A /* main.m */,
110 | );
111 | name = RNTypeScriptTemplate;
112 | sourceTree = "";
113 | };
114 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
115 | isa = PBXGroup;
116 | children = (
117 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
118 | 5DCACB8F33CDC322A6C60F78 /* libPods-RNTypeScriptTemplate.a */,
119 | 19F6CBCC0A4E27FBF8BF4A61 /* libPods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.a */,
120 | );
121 | name = Frameworks;
122 | sourceTree = "";
123 | };
124 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
125 | isa = PBXGroup;
126 | children = (
127 | );
128 | name = Libraries;
129 | sourceTree = "";
130 | };
131 | 83CBB9F61A601CBA00E9B192 = {
132 | isa = PBXGroup;
133 | children = (
134 | 69F7C16B29790AF600829A18 /* Fonts */,
135 | 13B07FAE1A68108700A75B9A /* RNTypeScriptTemplate */,
136 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
137 | 00E356EF1AD99517003FC87E /* RNTypeScriptTemplateTests */,
138 | 83CBBA001A601CBA00E9B192 /* Products */,
139 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
140 | BBD78D7AC51CEA395F1C20DB /* Pods */,
141 | 97C9ED7A37D74498BA89EAAB /* Resources */,
142 | );
143 | indentWidth = 2;
144 | sourceTree = "";
145 | tabWidth = 2;
146 | usesTabs = 0;
147 | };
148 | 83CBBA001A601CBA00E9B192 /* Products */ = {
149 | isa = PBXGroup;
150 | children = (
151 | 13B07F961A680F5B00A75B9A /* RNTypeScriptTemplate.app */,
152 | 00E356EE1AD99517003FC87E /* RNTypeScriptTemplateTests.xctest */,
153 | );
154 | name = Products;
155 | sourceTree = "";
156 | };
157 | BBD78D7AC51CEA395F1C20DB /* Pods */ = {
158 | isa = PBXGroup;
159 | children = (
160 | 3B4392A12AC88292D35C810B /* Pods-RNTypeScriptTemplate.debug.xcconfig */,
161 | 5709B34CF0A7D63546082F79 /* Pods-RNTypeScriptTemplate.release.xcconfig */,
162 | 5B7EB9410499542E8C5724F5 /* Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.debug.xcconfig */,
163 | 89C6BE57DB24E9ADA2F236DE /* Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.release.xcconfig */,
164 | );
165 | path = Pods;
166 | sourceTree = "";
167 | };
168 | 97C9ED7A37D74498BA89EAAB /* Resources */ = {
169 | isa = "PBXGroup";
170 | children = (
171 | 060CFA4AEDB345A78805314B /* iCielVAGRoundedNext-Bold.otf */,
172 | 5AF3597B669A49B6B0D0B47F /* iCielVAGRoundedNext-DemiBold.otf */,
173 | C6FC3BE16B264F42AC2C2F46 /* iCielVAGRoundedNext-Light.otf */,
174 | 92C94E712BC24E05A738156F /* iCielVAGRoundedNext-LightItalic.otf */,
175 | 765561AEB45C429DA3D3A072 /* iCielVAGRoundedNext-Medium.otf */,
176 | 2B21ACC64C64432B8E45B7B0 /* iCielVAGRoundedNext-Regular.otf */,
177 | );
178 | name = Resources;
179 | sourceTree = "";
180 | path = "";
181 | };
182 | /* End PBXGroup section */
183 |
184 | /* Begin PBXNativeTarget section */
185 | 00E356ED1AD99517003FC87E /* RNTypeScriptTemplateTests */ = {
186 | isa = PBXNativeTarget;
187 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNTypeScriptTemplateTests" */;
188 | buildPhases = (
189 | A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */,
190 | 00E356EA1AD99517003FC87E /* Sources */,
191 | 00E356EB1AD99517003FC87E /* Frameworks */,
192 | 00E356EC1AD99517003FC87E /* Resources */,
193 | C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */,
194 | F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */,
195 | );
196 | buildRules = (
197 | );
198 | dependencies = (
199 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
200 | );
201 | name = RNTypeScriptTemplateTests;
202 | productName = RNTypeScriptTemplateTests;
203 | productReference = 00E356EE1AD99517003FC87E /* RNTypeScriptTemplateTests.xctest */;
204 | productType = "com.apple.product-type.bundle.unit-test";
205 | };
206 | 13B07F861A680F5B00A75B9A /* RNTypeScriptTemplate */ = {
207 | isa = PBXNativeTarget;
208 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNTypeScriptTemplate" */;
209 | buildPhases = (
210 | C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */,
211 | FD10A7F022414F080027D42C /* Start Packager */,
212 | 13B07F871A680F5B00A75B9A /* Sources */,
213 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
214 | 13B07F8E1A680F5B00A75B9A /* Resources */,
215 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
216 | 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */,
217 | E235C05ADACE081382539298 /* [CP] Copy Pods Resources */,
218 | );
219 | buildRules = (
220 | );
221 | dependencies = (
222 | );
223 | name = RNTypeScriptTemplate;
224 | productName = RNTypeScriptTemplate;
225 | productReference = 13B07F961A680F5B00A75B9A /* RNTypeScriptTemplate.app */;
226 | productType = "com.apple.product-type.application";
227 | };
228 | /* End PBXNativeTarget section */
229 |
230 | /* Begin PBXProject section */
231 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
232 | isa = PBXProject;
233 | attributes = {
234 | LastUpgradeCheck = 1210;
235 | TargetAttributes = {
236 | 00E356ED1AD99517003FC87E = {
237 | CreatedOnToolsVersion = 6.2;
238 | TestTargetID = 13B07F861A680F5B00A75B9A;
239 | };
240 | 13B07F861A680F5B00A75B9A = {
241 | LastSwiftMigration = 1120;
242 | };
243 | };
244 | };
245 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNTypeScriptTemplate" */;
246 | compatibilityVersion = "Xcode 12.0";
247 | developmentRegion = en;
248 | hasScannedForEncodings = 0;
249 | knownRegions = (
250 | en,
251 | Base,
252 | );
253 | mainGroup = 83CBB9F61A601CBA00E9B192;
254 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
255 | projectDirPath = "";
256 | projectRoot = "";
257 | targets = (
258 | 13B07F861A680F5B00A75B9A /* RNTypeScriptTemplate */,
259 | 00E356ED1AD99517003FC87E /* RNTypeScriptTemplateTests */,
260 | );
261 | };
262 | /* End PBXProject section */
263 |
264 | /* Begin PBXResourcesBuildPhase section */
265 | 00E356EC1AD99517003FC87E /* Resources */ = {
266 | isa = PBXResourcesBuildPhase;
267 | buildActionMask = 2147483647;
268 | files = (
269 | );
270 | runOnlyForDeploymentPostprocessing = 0;
271 | };
272 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
273 | isa = PBXResourcesBuildPhase;
274 | buildActionMask = 2147483647;
275 | files = (
276 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
277 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
278 | 69F7C16C29790AF600829A18 /* Fonts in Resources */,
279 | 374DCDD3A8484D2BB4101393 /* (null) in Resources */,
280 | 9552BF9B4CD8448691AE8CB8 /* iCielVAGRoundedNext-Bold.otf in Resources */,
281 | 4933BE07F13D44A091CD5C92 /* iCielVAGRoundedNext-DemiBold.otf in Resources */,
282 | B571B8AA0FCA40E498787E81 /* iCielVAGRoundedNext-Light.otf in Resources */,
283 | 58E76A3720E74167AC0F0958 /* iCielVAGRoundedNext-LightItalic.otf in Resources */,
284 | 728D49D744EC498EB7F5506F /* iCielVAGRoundedNext-Medium.otf in Resources */,
285 | 300CE62D35E94138BD1DFF13 /* iCielVAGRoundedNext-Regular.otf in Resources */,
286 | );
287 | runOnlyForDeploymentPostprocessing = 0;
288 | };
289 | /* End PBXResourcesBuildPhase section */
290 |
291 | /* Begin PBXShellScriptBuildPhase section */
292 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
293 | isa = PBXShellScriptBuildPhase;
294 | buildActionMask = 2147483647;
295 | files = (
296 | );
297 | inputPaths = (
298 | "$(SRCROOT)/.xcode.env.local",
299 | "$(SRCROOT)/.xcode.env",
300 | );
301 | name = "Bundle React Native code and images";
302 | outputPaths = (
303 | );
304 | runOnlyForDeploymentPostprocessing = 0;
305 | shellPath = /bin/sh;
306 | 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";
307 | };
308 | 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
309 | isa = PBXShellScriptBuildPhase;
310 | buildActionMask = 2147483647;
311 | files = (
312 | );
313 | inputFileListPaths = (
314 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate-frameworks-${CONFIGURATION}-input-files.xcfilelist",
315 | );
316 | name = "[CP] Embed Pods Frameworks";
317 | outputFileListPaths = (
318 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate-frameworks-${CONFIGURATION}-output-files.xcfilelist",
319 | );
320 | runOnlyForDeploymentPostprocessing = 0;
321 | shellPath = /bin/sh;
322 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate-frameworks.sh\"\n";
323 | showEnvVarsInLog = 0;
324 | };
325 | A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = {
326 | isa = PBXShellScriptBuildPhase;
327 | buildActionMask = 2147483647;
328 | files = (
329 | );
330 | inputFileListPaths = (
331 | );
332 | inputPaths = (
333 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
334 | "${PODS_ROOT}/Manifest.lock",
335 | );
336 | name = "[CP] Check Pods Manifest.lock";
337 | outputFileListPaths = (
338 | );
339 | outputPaths = (
340 | "$(DERIVED_FILE_DIR)/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests-checkManifestLockResult.txt",
341 | );
342 | runOnlyForDeploymentPostprocessing = 0;
343 | shellPath = /bin/sh;
344 | 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";
345 | showEnvVarsInLog = 0;
346 | };
347 | C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = {
348 | isa = PBXShellScriptBuildPhase;
349 | buildActionMask = 2147483647;
350 | files = (
351 | );
352 | inputFileListPaths = (
353 | );
354 | inputPaths = (
355 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
356 | "${PODS_ROOT}/Manifest.lock",
357 | );
358 | name = "[CP] Check Pods Manifest.lock";
359 | outputFileListPaths = (
360 | );
361 | outputPaths = (
362 | "$(DERIVED_FILE_DIR)/Pods-RNTypeScriptTemplate-checkManifestLockResult.txt",
363 | );
364 | runOnlyForDeploymentPostprocessing = 0;
365 | shellPath = /bin/sh;
366 | 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";
367 | showEnvVarsInLog = 0;
368 | };
369 | C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */ = {
370 | isa = PBXShellScriptBuildPhase;
371 | buildActionMask = 2147483647;
372 | files = (
373 | );
374 | inputFileListPaths = (
375 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
376 | );
377 | name = "[CP] Embed Pods Frameworks";
378 | outputFileListPaths = (
379 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
380 | );
381 | runOnlyForDeploymentPostprocessing = 0;
382 | shellPath = /bin/sh;
383 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests-frameworks.sh\"\n";
384 | showEnvVarsInLog = 0;
385 | };
386 | E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = {
387 | isa = PBXShellScriptBuildPhase;
388 | buildActionMask = 2147483647;
389 | files = (
390 | );
391 | inputFileListPaths = (
392 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate-resources-${CONFIGURATION}-input-files.xcfilelist",
393 | );
394 | name = "[CP] Copy Pods Resources";
395 | outputFileListPaths = (
396 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate-resources-${CONFIGURATION}-output-files.xcfilelist",
397 | );
398 | runOnlyForDeploymentPostprocessing = 0;
399 | shellPath = /bin/sh;
400 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate/Pods-RNTypeScriptTemplate-resources.sh\"\n";
401 | showEnvVarsInLog = 0;
402 | };
403 | F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */ = {
404 | isa = PBXShellScriptBuildPhase;
405 | buildActionMask = 2147483647;
406 | files = (
407 | );
408 | inputFileListPaths = (
409 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests-resources-${CONFIGURATION}-input-files.xcfilelist",
410 | );
411 | name = "[CP] Copy Pods Resources";
412 | outputFileListPaths = (
413 | "${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests-resources-${CONFIGURATION}-output-files.xcfilelist",
414 | );
415 | runOnlyForDeploymentPostprocessing = 0;
416 | shellPath = /bin/sh;
417 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests/Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests-resources.sh\"\n";
418 | showEnvVarsInLog = 0;
419 | };
420 | FD10A7F022414F080027D42C /* Start Packager */ = {
421 | isa = PBXShellScriptBuildPhase;
422 | buildActionMask = 2147483647;
423 | files = (
424 | );
425 | inputFileListPaths = (
426 | );
427 | inputPaths = (
428 | );
429 | name = "Start Packager";
430 | outputFileListPaths = (
431 | );
432 | outputPaths = (
433 | );
434 | runOnlyForDeploymentPostprocessing = 0;
435 | shellPath = /bin/sh;
436 | 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";
437 | showEnvVarsInLog = 0;
438 | };
439 | /* End PBXShellScriptBuildPhase section */
440 |
441 | /* Begin PBXSourcesBuildPhase section */
442 | 00E356EA1AD99517003FC87E /* Sources */ = {
443 | isa = PBXSourcesBuildPhase;
444 | buildActionMask = 2147483647;
445 | files = (
446 | 00E356F31AD99517003FC87E /* RNTypeScriptTemplateTests.m in Sources */,
447 | );
448 | runOnlyForDeploymentPostprocessing = 0;
449 | };
450 | 13B07F871A680F5B00A75B9A /* Sources */ = {
451 | isa = PBXSourcesBuildPhase;
452 | buildActionMask = 2147483647;
453 | files = (
454 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
455 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
456 | );
457 | runOnlyForDeploymentPostprocessing = 0;
458 | };
459 | /* End PBXSourcesBuildPhase section */
460 |
461 | /* Begin PBXTargetDependency section */
462 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
463 | isa = PBXTargetDependency;
464 | target = 13B07F861A680F5B00A75B9A /* RNTypeScriptTemplate */;
465 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
466 | };
467 | /* End PBXTargetDependency section */
468 |
469 | /* Begin XCBuildConfiguration section */
470 | 00E356F61AD99517003FC87E /* Debug */ = {
471 | isa = XCBuildConfiguration;
472 | baseConfigurationReference = 5B7EB9410499542E8C5724F5 /* Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.debug.xcconfig */;
473 | buildSettings = {
474 | BUNDLE_LOADER = "$(TEST_HOST)";
475 | GCC_PREPROCESSOR_DEFINITIONS = (
476 | "DEBUG=1",
477 | "$(inherited)",
478 | );
479 | INFOPLIST_FILE = RNTypeScriptTemplateTests/Info.plist;
480 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
481 | LD_RUNPATH_SEARCH_PATHS = (
482 | "$(inherited)",
483 | "@executable_path/Frameworks",
484 | "@loader_path/Frameworks",
485 | );
486 | OTHER_LDFLAGS = (
487 | "-ObjC",
488 | "-lc++",
489 | "$(inherited)",
490 | );
491 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
492 | PRODUCT_NAME = "$(TARGET_NAME)";
493 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTypeScriptTemplate.app/RNTypeScriptTemplate";
494 | };
495 | name = Debug;
496 | };
497 | 00E356F71AD99517003FC87E /* Release */ = {
498 | isa = XCBuildConfiguration;
499 | baseConfigurationReference = 89C6BE57DB24E9ADA2F236DE /* Pods-RNTypeScriptTemplate-RNTypeScriptTemplateTests.release.xcconfig */;
500 | buildSettings = {
501 | BUNDLE_LOADER = "$(TEST_HOST)";
502 | COPY_PHASE_STRIP = NO;
503 | INFOPLIST_FILE = RNTypeScriptTemplateTests/Info.plist;
504 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
505 | LD_RUNPATH_SEARCH_PATHS = (
506 | "$(inherited)",
507 | "@executable_path/Frameworks",
508 | "@loader_path/Frameworks",
509 | );
510 | OTHER_LDFLAGS = (
511 | "-ObjC",
512 | "-lc++",
513 | "$(inherited)",
514 | );
515 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
516 | PRODUCT_NAME = "$(TARGET_NAME)";
517 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTypeScriptTemplate.app/RNTypeScriptTemplate";
518 | };
519 | name = Release;
520 | };
521 | 13B07F941A680F5B00A75B9A /* Debug */ = {
522 | isa = XCBuildConfiguration;
523 | baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-RNTypeScriptTemplate.debug.xcconfig */;
524 | buildSettings = {
525 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
526 | CLANG_ENABLE_MODULES = YES;
527 | CURRENT_PROJECT_VERSION = 1;
528 | ENABLE_BITCODE = NO;
529 | INFOPLIST_FILE = RNTypeScriptTemplate/Info.plist;
530 | LD_RUNPATH_SEARCH_PATHS = (
531 | "$(inherited)",
532 | "@executable_path/Frameworks",
533 | );
534 | MARKETING_VERSION = 1.0;
535 | OTHER_LDFLAGS = (
536 | "$(inherited)",
537 | "-ObjC",
538 | "-lc++",
539 | );
540 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
541 | PRODUCT_NAME = RNTypeScriptTemplate;
542 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
543 | SWIFT_VERSION = 5.0;
544 | VERSIONING_SYSTEM = "apple-generic";
545 | };
546 | name = Debug;
547 | };
548 | 13B07F951A680F5B00A75B9A /* Release */ = {
549 | isa = XCBuildConfiguration;
550 | baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-RNTypeScriptTemplate.release.xcconfig */;
551 | buildSettings = {
552 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
553 | CLANG_ENABLE_MODULES = YES;
554 | CURRENT_PROJECT_VERSION = 1;
555 | INFOPLIST_FILE = RNTypeScriptTemplate/Info.plist;
556 | LD_RUNPATH_SEARCH_PATHS = (
557 | "$(inherited)",
558 | "@executable_path/Frameworks",
559 | );
560 | MARKETING_VERSION = 1.0;
561 | OTHER_LDFLAGS = (
562 | "$(inherited)",
563 | "-ObjC",
564 | "-lc++",
565 | );
566 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
567 | PRODUCT_NAME = RNTypeScriptTemplate;
568 | SWIFT_VERSION = 5.0;
569 | VERSIONING_SYSTEM = "apple-generic";
570 | };
571 | name = Release;
572 | };
573 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
574 | isa = XCBuildConfiguration;
575 | buildSettings = {
576 | ALWAYS_SEARCH_USER_PATHS = NO;
577 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
578 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
579 | CLANG_CXX_LIBRARY = "libc++";
580 | CLANG_ENABLE_MODULES = YES;
581 | CLANG_ENABLE_OBJC_ARC = YES;
582 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
583 | CLANG_WARN_BOOL_CONVERSION = YES;
584 | CLANG_WARN_COMMA = YES;
585 | CLANG_WARN_CONSTANT_CONVERSION = YES;
586 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
587 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
588 | CLANG_WARN_EMPTY_BODY = YES;
589 | CLANG_WARN_ENUM_CONVERSION = YES;
590 | CLANG_WARN_INFINITE_RECURSION = YES;
591 | CLANG_WARN_INT_CONVERSION = YES;
592 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
593 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
594 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
595 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
596 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
597 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
598 | CLANG_WARN_STRICT_PROTOTYPES = YES;
599 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
600 | CLANG_WARN_UNREACHABLE_CODE = YES;
601 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
602 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
603 | COPY_PHASE_STRIP = NO;
604 | ENABLE_STRICT_OBJC_MSGSEND = YES;
605 | ENABLE_TESTABILITY = YES;
606 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
607 | GCC_C_LANGUAGE_STANDARD = gnu99;
608 | GCC_DYNAMIC_NO_PIC = NO;
609 | GCC_NO_COMMON_BLOCKS = YES;
610 | GCC_OPTIMIZATION_LEVEL = 0;
611 | GCC_PREPROCESSOR_DEFINITIONS = (
612 | "DEBUG=1",
613 | "$(inherited)",
614 | );
615 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
616 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
617 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
618 | GCC_WARN_UNDECLARED_SELECTOR = YES;
619 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
620 | GCC_WARN_UNUSED_FUNCTION = YES;
621 | GCC_WARN_UNUSED_VARIABLE = YES;
622 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
623 | LD_RUNPATH_SEARCH_PATHS = (
624 | /usr/lib/swift,
625 | "$(inherited)",
626 | );
627 | LIBRARY_SEARCH_PATHS = (
628 | "\"$(SDKROOT)/usr/lib/swift\"",
629 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
630 | "\"$(inherited)\"",
631 | );
632 | MTL_ENABLE_DEBUG_INFO = YES;
633 | ONLY_ACTIVE_ARCH = YES;
634 | OTHER_CPLUSPLUSFLAGS = (
635 | "$(OTHER_CFLAGS)",
636 | "-DFOLLY_NO_CONFIG",
637 | "-DFOLLY_MOBILE=1",
638 | "-DFOLLY_USE_LIBCPP=1",
639 | );
640 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
641 | SDKROOT = iphoneos;
642 | };
643 | name = Debug;
644 | };
645 | 83CBBA211A601CBA00E9B192 /* Release */ = {
646 | isa = XCBuildConfiguration;
647 | buildSettings = {
648 | ALWAYS_SEARCH_USER_PATHS = NO;
649 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
650 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
651 | CLANG_CXX_LIBRARY = "libc++";
652 | CLANG_ENABLE_MODULES = YES;
653 | CLANG_ENABLE_OBJC_ARC = YES;
654 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
655 | CLANG_WARN_BOOL_CONVERSION = YES;
656 | CLANG_WARN_COMMA = YES;
657 | CLANG_WARN_CONSTANT_CONVERSION = YES;
658 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
659 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
660 | CLANG_WARN_EMPTY_BODY = YES;
661 | CLANG_WARN_ENUM_CONVERSION = YES;
662 | CLANG_WARN_INFINITE_RECURSION = YES;
663 | CLANG_WARN_INT_CONVERSION = YES;
664 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
665 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
666 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
667 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
668 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
669 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
670 | CLANG_WARN_STRICT_PROTOTYPES = YES;
671 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
672 | CLANG_WARN_UNREACHABLE_CODE = YES;
673 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
674 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
675 | COPY_PHASE_STRIP = YES;
676 | ENABLE_NS_ASSERTIONS = NO;
677 | ENABLE_STRICT_OBJC_MSGSEND = YES;
678 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
679 | GCC_C_LANGUAGE_STANDARD = gnu99;
680 | GCC_NO_COMMON_BLOCKS = YES;
681 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
682 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
683 | GCC_WARN_UNDECLARED_SELECTOR = YES;
684 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
685 | GCC_WARN_UNUSED_FUNCTION = YES;
686 | GCC_WARN_UNUSED_VARIABLE = YES;
687 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
688 | LD_RUNPATH_SEARCH_PATHS = (
689 | /usr/lib/swift,
690 | "$(inherited)",
691 | );
692 | LIBRARY_SEARCH_PATHS = (
693 | "\"$(SDKROOT)/usr/lib/swift\"",
694 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
695 | "\"$(inherited)\"",
696 | );
697 | MTL_ENABLE_DEBUG_INFO = NO;
698 | OTHER_CPLUSPLUSFLAGS = (
699 | "$(OTHER_CFLAGS)",
700 | "-DFOLLY_NO_CONFIG",
701 | "-DFOLLY_MOBILE=1",
702 | "-DFOLLY_USE_LIBCPP=1",
703 | );
704 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
705 | SDKROOT = iphoneos;
706 | VALIDATE_PRODUCT = YES;
707 | };
708 | name = Release;
709 | };
710 | /* End XCBuildConfiguration section */
711 |
712 | /* Begin XCConfigurationList section */
713 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RNTypeScriptTemplateTests" */ = {
714 | isa = XCConfigurationList;
715 | buildConfigurations = (
716 | 00E356F61AD99517003FC87E /* Debug */,
717 | 00E356F71AD99517003FC87E /* Release */,
718 | );
719 | defaultConfigurationIsVisible = 0;
720 | defaultConfigurationName = Release;
721 | };
722 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNTypeScriptTemplate" */ = {
723 | isa = XCConfigurationList;
724 | buildConfigurations = (
725 | 13B07F941A680F5B00A75B9A /* Debug */,
726 | 13B07F951A680F5B00A75B9A /* Release */,
727 | );
728 | defaultConfigurationIsVisible = 0;
729 | defaultConfigurationName = Release;
730 | };
731 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNTypeScriptTemplate" */ = {
732 | isa = XCConfigurationList;
733 | buildConfigurations = (
734 | 83CBBA201A601CBA00E9B192 /* Debug */,
735 | 83CBBA211A601CBA00E9B192 /* Release */,
736 | );
737 | defaultConfigurationIsVisible = 0;
738 | defaultConfigurationName = Release;
739 | };
740 | /* End XCConfigurationList section */
741 | };
742 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
743 | }
744 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate.xcodeproj/xcshareddata/xcschemes/RNTypeScriptTemplate.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/RNTypeScriptTemplate.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : RCTAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate/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 = @"RNTypeScriptTemplate";
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
14 | {
15 | #if DEBUG
16 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
17 | #else
18 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
19 | #endif
20 | }
21 |
22 | /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
23 | ///
24 | /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
25 | /// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
26 | /// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
27 | - (BOOL)concurrentRootEnabled
28 | {
29 | return true;
30 | }
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate/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/RNTypeScriptTemplate/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | RNTypeScriptTemplate
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 | UIAppFonts
55 |
56 | AntDesign.ttf
57 | Entypo.ttf
58 | EvilIcons.ttf
59 | Feather.ttf
60 | FontAwesome.ttf
61 | FontAwesome5_Brands.ttf
62 | FontAwesome5_Regular.ttf
63 | FontAwesome5_Solid.ttf
64 | Fontisto.ttf
65 | Foundation.ttf
66 | Ionicons.ttf
67 | MaterialCommunityIcons.ttf
68 | MaterialIcons.ttf
69 | Octicons.ttf
70 | SimpleLineIcons.ttf
71 | Zocial.ttf
72 | iCielVAGRoundedNext-Bold.otf
73 | iCielVAGRoundedNext-DemiBold.otf
74 | iCielVAGRoundedNext-Light.otf
75 | iCielVAGRoundedNext-LightItalic.otf
76 | iCielVAGRoundedNext-Medium.otf
77 | iCielVAGRoundedNext-Regular.otf
78 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/ios/RNTypeScriptTemplate/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/RNTypeScriptTemplate/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/RNTypeScriptTemplateTests/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/RNTypeScriptTemplateTests/RNTypeScriptTemplateTests.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 RNTypeScriptTemplateTests : XCTestCase
11 |
12 | @end
13 |
14 | @implementation RNTypeScriptTemplateTests
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 |
--------------------------------------------------------------------------------
/ios/link-assets-manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "migIndex": 1,
3 | "data": [
4 | {
5 | "path": "assets/fonts/iCielVAGRoundedNext-Bold.otf",
6 | "sha1": "f3ee92001b65aeab4813a904f9fc83983370bae4"
7 | },
8 | {
9 | "path": "assets/fonts/iCielVAGRoundedNext-DemiBold.otf",
10 | "sha1": "b980fb6b873981f81cd51e1647a9b2bdb025a810"
11 | },
12 | {
13 | "path": "assets/fonts/iCielVAGRoundedNext-Light.otf",
14 | "sha1": "8d918a7bb06f0b69838eae9e8e54ba5256443ee0"
15 | },
16 | {
17 | "path": "assets/fonts/iCielVAGRoundedNext-LightItalic.otf",
18 | "sha1": "20824e26ad220f9d715497c00910f62e8ad257c9"
19 | },
20 | {
21 | "path": "assets/fonts/iCielVAGRoundedNext-Medium.otf",
22 | "sha1": "43cb923d6451aea4775a79a6f82bf8b2f55f8294"
23 | },
24 | {
25 | "path": "assets/fonts/iCielVAGRoundedNext-Regular.otf",
26 | "sha1": "7e915796f31cd418fe98b9f248361448143c59e4"
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/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": "RNTypeScriptTemplate",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "android": "react-native run-android",
7 | "ios": "react-native run-ios",
8 | "start": "react-native start",
9 | "test": "jest",
10 | "lint": "eslint .",
11 | "lint-fix": "eslint --fix ."
12 | },
13 | "dependencies": {
14 | "@react-native-async-storage/async-storage": "^1.17.11",
15 | "@react-navigation/drawer": "^6.5.7",
16 | "@react-navigation/native": "^6.1.2",
17 | "@react-navigation/native-stack": "^6.9.8",
18 | "apisauce": "^2.1.6",
19 | "react": "18.2.0",
20 | "react-native": "0.71.1",
21 | "react-native-gesture-handler": "^2.9.0",
22 | "react-native-reanimated": "^2.14.2",
23 | "react-native-safe-area-context": "^4.5.0",
24 | "react-native-screens": "^3.19.0",
25 | "react-native-toast-message": "^2.1.5",
26 | "react-native-vector-icons": "^9.2.0",
27 | "react-redux": "^8.0.5",
28 | "redux": "^4.2.0",
29 | "redux-persist": "^6.0.0",
30 | "redux-saga": "^1.2.2"
31 | },
32 | "devDependencies": {
33 | "@babel/core": "^7.20.0",
34 | "@babel/preset-env": "^7.20.0",
35 | "@babel/runtime": "^7.20.0",
36 | "@react-native-community/eslint-config": "^3.0.0",
37 | "@tsconfig/react-native": "^2.0.2",
38 | "@types/jest": "^29.2.1",
39 | "@types/react": "^18.0.24",
40 | "@types/react-test-renderer": "^18.0.0",
41 | "babel-jest": "^29.2.1",
42 | "eslint": "^8.19.0",
43 | "jest": "^29.2.1",
44 | "metro-react-native-babel-preset": "0.73.7",
45 | "prettier": "^2.4.1",
46 | "react-test-renderer": "18.2.0",
47 | "typescript": "4.8.4"
48 | },
49 | "jest": {
50 | "preset": "react-native"
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/react-native.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | assets: ['./assets/fonts/'],
3 | };
4 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # React Native TypeScript Template
2 |
3 | ## Description
4 | * Template react native typescript project with Redux, Saga, React Navigation.
5 |
6 | ## How to run
7 | * Clone this project.
8 | * At root directory run `npm install` to install the dependencies.
9 | ##### Android
10 | * Run `react-native run-android` to run on Android devices
11 | ##### iOS
12 | * Run `cd ios/ && pod install`.
13 | * Then run `react-native run-ios` to run the project on iOS devices or run through Xcode.
14 |
15 | ## Features
16 | * Using typescript.
17 | * Regularly update the library to the latest version.
18 | * Routing with React Navigation (DrawerNavigator, StackNavigator).
19 | * Fetch simple GitHub REST API with apisauce.
20 | * Apply flow with Redux pattern.
21 |
22 | ## Gifs
23 |  
24 |
--------------------------------------------------------------------------------
/src/Components/CommonBtn.tsx:
--------------------------------------------------------------------------------
1 | import React, {FC} from 'react';
2 | import {
3 | StyleProp,
4 | Text,
5 | TextStyle,
6 | TouchableOpacity,
7 | ViewStyle,
8 | } from 'react-native';
9 |
10 | interface Props {
11 | onPress: () => any;
12 | styleBtn?: StyleProp;
13 | styleText?: StyleProp;
14 | title: String;
15 | }
16 |
17 | const CommonBtn: FC = ({onPress, styleBtn, styleText, title}: Props) => {
18 | return (
19 |
20 | {title}
21 |
22 | );
23 | };
24 |
25 | export default CommonBtn;
26 |
--------------------------------------------------------------------------------
/src/Components/LoadingView.tsx:
--------------------------------------------------------------------------------
1 | import React, {FC} from 'react';
2 | import {ActivityIndicator, StyleSheet, View} from 'react-native';
3 |
4 | const LoadingView: FC = () => {
5 | return (
6 |
7 |
8 |
9 | );
10 | };
11 | const styles = StyleSheet.create({
12 | viewLoading: {
13 | position: 'absolute',
14 | top: 0,
15 | left: 0,
16 | right: 0,
17 | bottom: 0,
18 | backgroundColor: 'rgba(0, 0, 0, 0.5)',
19 | alignItems: 'center',
20 | justifyContent: 'center',
21 | },
22 | });
23 |
24 | export default LoadingView;
25 |
--------------------------------------------------------------------------------
/src/Components/NoDataView.tsx:
--------------------------------------------------------------------------------
1 | import React, {FC} from 'react';
2 | import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';
3 | import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
4 | import {fontFamily, fontSize} from '../const';
5 | import colors from '../Themes/Colors';
6 |
7 | interface Props {
8 | onRetryPress: () => any;
9 | }
10 |
11 | const NoDataView: FC = (props: Props) => {
12 | return (
13 |
14 |
19 | No data
20 |
21 | Try again
22 |
23 |
24 | );
25 | };
26 |
27 | const styles = StyleSheet.create({
28 | viewNoData: {
29 | flex: 1,
30 | alignItems: 'center',
31 | justifyContent: 'center',
32 | },
33 | textNoData: {
34 | fontFamily: fontFamily.regular,
35 | fontSize: fontSize.small,
36 | color: colors.grey,
37 | },
38 | btnRetry: {
39 | marginTop: 20,
40 | width: 150,
41 | height: 45,
42 | borderRadius: 30,
43 | backgroundColor: colors.white,
44 | borderWidth: 1,
45 | borderColor: colors.primary,
46 | alignItems: 'center',
47 | justifyContent: 'center',
48 | },
49 | textRetry: {
50 | fontSize: fontSize.large,
51 | fontFamily: fontFamily.demiBold,
52 | color: colors.primary,
53 | },
54 | });
55 |
56 | export default NoDataView;
57 |
--------------------------------------------------------------------------------
/src/DetailFollower/DetailFollower.Screen.tsx:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {StatusBar, Text, TouchableOpacity, View} from 'react-native';
3 | import {connect} from 'react-redux';
4 | import styles from './DetailFollower.Style';
5 | import colors from '../Themes/Colors';
6 | import {barStyle} from '../const';
7 | import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
8 | import {StackNavigationProp} from '@react-navigation/stack';
9 | import {StackParamList} from '../Navigator/AppContainer';
10 |
11 | interface Props {
12 | navigation: StackNavigationProp;
13 | }
14 |
15 | class DetailFollowerScreen extends Component {
16 | handleBackPress = () => {
17 | this.props.navigation.goBack();
18 | return true;
19 | };
20 |
21 | render() {
22 | return (
23 |
24 | {this.renderToolbar()}
25 |
26 | Example this is the detail follower screen
27 |
28 |
29 | );
30 | }
31 |
32 | renderToolbar = () => {
33 | return (
34 |
35 |
40 |
43 |
48 |
49 |
50 | Detail follower
51 |
52 |
53 |
54 | );
55 | };
56 | }
57 |
58 | const mapStateToProps = () => {
59 | return {};
60 | };
61 |
62 | const mapDispatchToProps = () => {
63 | return {};
64 | };
65 |
66 | export default connect(
67 | mapStateToProps,
68 | mapDispatchToProps,
69 | )(DetailFollowerScreen);
70 |
--------------------------------------------------------------------------------
/src/DetailFollower/DetailFollower.Style.ts:
--------------------------------------------------------------------------------
1 | import {StyleSheet} from 'react-native';
2 | import ApplicationStyle from '../Themes/Application.Style';
3 | import {fontFamily, fontSize} from '../const';
4 | import colors from '../Themes/Colors';
5 |
6 | export default StyleSheet.create({
7 | ...ApplicationStyle,
8 | textContent: {
9 | fontFamily: fontFamily.regular,
10 | color: colors.charcoalGrey,
11 | fontSize: fontSize.medium,
12 | marginTop: 10,
13 | alignSelf: 'center',
14 | },
15 | });
16 |
--------------------------------------------------------------------------------
/src/DetailProfile/DetailProfile.Screen.tsx:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {StatusBar, Text, TouchableOpacity, View} from 'react-native';
3 | import {connect} from 'react-redux';
4 | import styles from './DetailProfile.Style';
5 | import colors from '../Themes/Colors';
6 | import {barStyle} from '../const';
7 | import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
8 | import {StackNavigationProp} from '@react-navigation/stack';
9 | import {StackParamList} from '../Navigator/AppContainer';
10 |
11 | interface Props {
12 | navigation: StackNavigationProp;
13 | }
14 |
15 | class DetailProfileScreen extends Component {
16 | handleBackPress = () => {
17 | this.props.navigation.goBack();
18 | return true;
19 | };
20 |
21 | render() {
22 | return (
23 |
24 | {this.renderToolbar()}
25 |
26 | Example this is the detail profile screen
27 |
28 |
29 | );
30 | }
31 |
32 | renderToolbar = () => {
33 | return (
34 |
35 |
40 |
43 |
48 |
49 |
50 | Detail profile
51 |
52 |
53 |
54 | );
55 | };
56 | }
57 |
58 | const mapStateToProps = () => {
59 | return {};
60 | };
61 |
62 | const mapDispatchToProps = () => {
63 | return {};
64 | };
65 |
66 | export default connect(
67 | mapStateToProps,
68 | mapDispatchToProps,
69 | )(DetailProfileScreen);
70 |
--------------------------------------------------------------------------------
/src/DetailProfile/DetailProfile.Style.ts:
--------------------------------------------------------------------------------
1 | import {StyleSheet} from 'react-native';
2 | import ApplicationStyle from '../Themes/Application.Style';
3 | import {fontFamily, fontSize} from '../const';
4 | import colors from '../Themes/Colors';
5 |
6 | export default StyleSheet.create({
7 | ...ApplicationStyle,
8 | textContent: {
9 | fontFamily: fontFamily.regular,
10 | color: colors.charcoalGrey,
11 | fontSize: fontSize.medium,
12 | marginTop: 10,
13 | alignSelf: 'center',
14 | },
15 | });
16 |
--------------------------------------------------------------------------------
/src/DrawerNavigator/DrawerNavigator.Screen.tsx:
--------------------------------------------------------------------------------
1 | import {createDrawerNavigator} from '@react-navigation/drawer';
2 | import ProfileScreen from '../Profile/Profile.Screen';
3 | import FollowerScreen from '../Follower/Follower.Screen';
4 | import React, {Component} from 'react';
5 | import colors from '../Themes/Colors';
6 | import styles from './DrawerNavigator.Style';
7 |
8 | export type DrawerParamList = {
9 | ProfileScreen: undefined;
10 | FollowerScreen: undefined;
11 | };
12 |
13 | const Drawer = createDrawerNavigator();
14 |
15 | export class DrawerNavigatorScreen extends Component {
16 | render() {
17 | return (
18 |
23 |
28 |
33 |
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/DrawerNavigator/DrawerNavigator.Style.ts:
--------------------------------------------------------------------------------
1 | import {StyleSheet} from 'react-native';
2 | import {fontFamily, fontSize} from '../const';
3 | import ApplicationStyle from '../Themes/Application.Style';
4 | import colors from '../Themes/Colors';
5 |
6 | export default StyleSheet.create({
7 | ...ApplicationStyle,
8 | textItemMenu: {
9 | fontSize: fontSize.medium,
10 | fontFamily: fontFamily.regular,
11 | color: colors.primary,
12 | marginLeft: 12,
13 | },
14 | });
15 |
--------------------------------------------------------------------------------
/src/Follower/Follower.Action.ts:
--------------------------------------------------------------------------------
1 | // Get list follower
2 | import {GithubFollowerResponse} from './Follower.Model';
3 |
4 | export const GET_FOLLOWER_REQUEST = 'GET_FOLLOWER_REQUEST';
5 | export const GET_FOLLOWER_SUCCESS = 'GET_FOLLOWER_SUCCESS';
6 | export const GET_FOLLOWER_FAIL = 'GET_FOLLOWER_FAIL';
7 |
8 | export const getFollowerRequest = (username: string) => {
9 | return {type: GET_FOLLOWER_REQUEST, payload: {username}};
10 | };
11 | export const getFollowerSuccess = (response: Array) => {
12 | return {type: GET_FOLLOWER_SUCCESS, payload: {data: response}};
13 | };
14 | export const getFollowerFail = (err: any) => {
15 | return {type: GET_FOLLOWER_FAIL, payload: {err}};
16 | };
17 |
--------------------------------------------------------------------------------
/src/Follower/Follower.Model.ts:
--------------------------------------------------------------------------------
1 | export class GithubFollowerResponse {
2 | avatar_url: string;
3 | login: string;
4 |
5 | constructor(data: Partial) {
6 | Object.assign(this, data);
7 | }
8 |
9 | public static fromJSON = (jsonObject: object): GithubFollowerResponse => {
10 | return new GithubFollowerResponse(jsonObject);
11 | };
12 | }
13 |
--------------------------------------------------------------------------------
/src/Follower/Follower.Reducer.ts:
--------------------------------------------------------------------------------
1 | import {
2 | GET_FOLLOWER_FAIL,
3 | GET_FOLLOWER_REQUEST,
4 | GET_FOLLOWER_SUCCESS,
5 | } from './Follower.Action';
6 | import {Action, State} from '../reducers';
7 |
8 | const initialState: State = {fetching: false, data: null, err: null};
9 |
10 | export const getFollower = (state: State = initialState, action: Action) => {
11 | switch (action.type) {
12 | case GET_FOLLOWER_REQUEST:
13 | return {
14 | fetching: true,
15 | data: null,
16 | err: null,
17 | };
18 | case GET_FOLLOWER_SUCCESS:
19 | return {
20 | fetching: false,
21 | data: action.payload.data,
22 | err: null,
23 | };
24 | case GET_FOLLOWER_FAIL:
25 | return {
26 | fetching: false,
27 | data: null,
28 | err: action.payload.err,
29 | };
30 | default:
31 | return state;
32 | }
33 | };
34 |
--------------------------------------------------------------------------------
/src/Follower/Follower.Saga.ts:
--------------------------------------------------------------------------------
1 | import {call, put, takeLatest} from 'redux-saga/effects';
2 | import {getFollower} from '../api';
3 | import {
4 | GET_FOLLOWER_REQUEST,
5 | getFollowerFail,
6 | getFollowerSuccess,
7 | } from './Follower.Action';
8 | import {sendNetworkFail} from '../actions';
9 | import {Action} from '../reducers';
10 | import {GithubFollowerResponse} from './Follower.Model';
11 |
12 | export function* watchGetFollower() {
13 | yield takeLatest(GET_FOLLOWER_REQUEST, handleGetFollower);
14 | }
15 |
16 | function* handleGetFollower(action: Action) {
17 | const response = yield call(getFollower, action.payload);
18 | if (response.ok) {
19 | const arrFollower: Array = [];
20 | for (let item in response.data) {
21 | arrFollower.push(GithubFollowerResponse.fromJSON(response.data[item]));
22 | }
23 | yield put(getFollowerSuccess(arrFollower));
24 | } else {
25 | if (
26 | response.problem !== 'NETWORK_ERROR' &&
27 | response.problem !== 'TIMEOUT_ERROR' &&
28 | response.problem !== 'CONNECTION_ERROR'
29 | ) {
30 | yield put(getFollowerFail(response.problem));
31 | } else {
32 | yield put(sendNetworkFail(response.problem));
33 | yield put(getFollowerFail(response.problem));
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Follower/Follower.Screen.tsx:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {
3 | FlatList,
4 | Image,
5 | StatusBar,
6 | Text,
7 | TouchableOpacity,
8 | View,
9 | ListRenderItem,
10 | } from 'react-native';
11 | import {connect} from 'react-redux';
12 | import styles from './Follower.Style';
13 | import {getFollowerRequest} from './Follower.Action';
14 | import NoDataView from '../Components/NoDataView';
15 | import colors from '../Themes/Colors';
16 | import {barStyle} from '../const';
17 | import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
18 | import CommonBtn from '../Components/CommonBtn';
19 | import LoadingView from '../Components/LoadingView';
20 | import {NativeStackNavigationProp} from '@react-navigation/native-stack';
21 | import {StackParamList} from '../Navigator/AppContainer';
22 | import {DrawerNavigationProp} from '@react-navigation/drawer';
23 | import {DrawerParamList} from '../DrawerNavigator/DrawerNavigator.Screen';
24 | import {CompositeNavigationProp} from '@react-navigation/native';
25 | import {Action} from '../reducers';
26 | import {GithubFollowerResponse} from './Follower.Model';
27 |
28 | interface Props {
29 | callApi: (action: Action) => {};
30 | navigation: CompositeNavigationProp<
31 | NativeStackNavigationProp,
32 | DrawerNavigationProp
33 | >;
34 | }
35 |
36 | interface State {
37 | getFollower: any;
38 | }
39 |
40 | class FollowerScreen extends Component {
41 | constructor(props: Props) {
42 | super(props);
43 | this.state = {
44 | getFollower: {fetching: false, data: null, err: null},
45 | };
46 | }
47 |
48 | static getDerivedStateFromProps(nextProps: any) {
49 | return {getFollower: nextProps.getFollower};
50 | }
51 |
52 | getFollower = () => {
53 | this.props.callApi(getFollowerRequest('duytq94'));
54 | };
55 |
56 | goDetail = () => {
57 | this.props.navigation.navigate('DetailFollowerScreen');
58 | };
59 |
60 | onMenuPress = () => {
61 | this.props.navigation.openDrawer();
62 | };
63 |
64 | render() {
65 | return (
66 |
67 | {this.renderToolbar()}
68 |
69 |
75 |
76 |
82 |
83 | {this.renderDataView()}
84 |
85 | {this.state.getFollower.fetching ? : null}
86 |
87 | );
88 | }
89 |
90 | renderToolbar = () => {
91 | return (
92 |
93 |
98 |
101 |
106 |
107 |
108 | Follower
109 |
110 |
111 |
112 | );
113 | };
114 |
115 | renderDataView = () => {
116 | const arr: Array = this.state.getFollower.data;
117 | if (arr) {
118 | return (
119 | index.toString()}
124 | showsVerticalScrollIndicator={false}
125 | ListHeaderComponent={this.renderFooterList}
126 | ListFooterComponent={this.renderFooterList}
127 | />
128 | );
129 | } else if (this.state.getFollower.err) {
130 | return ;
131 | } else {
132 | return null;
133 | }
134 | };
135 |
136 | renderItem: ListRenderItem = ({item}) => {
137 | return (
138 |
139 |
140 | {item.login}
141 |
142 | );
143 | };
144 |
145 | renderFooterList = () => {
146 | return ;
147 | };
148 | }
149 |
150 | const mapStateToProps = (state: any) => {
151 | return {
152 | getFollower: state.getFollower,
153 | };
154 | };
155 |
156 | const mapDispatchToProps = (dispatch: any) => {
157 | return {
158 | callApi: object => dispatch(object),
159 | };
160 | };
161 |
162 | export default connect(mapStateToProps, mapDispatchToProps)(FollowerScreen);
163 |
--------------------------------------------------------------------------------
/src/Follower/Follower.Style.ts:
--------------------------------------------------------------------------------
1 | import {StyleSheet} from 'react-native';
2 | import {fontFamily, fontSize} from '../const';
3 | import ApplicationStyle from '../Themes/Application.Style';
4 | import colors from '../Themes/Colors';
5 |
6 | export default StyleSheet.create({
7 | ...ApplicationStyle,
8 | titleHeader: {
9 | fontFamily: fontFamily.demiBold,
10 | color: colors.charcoalGrey,
11 | fontSize: fontSize.large,
12 | },
13 | btnGetData: {
14 | backgroundColor: colors.charcoalGrey,
15 | width: 120,
16 | height: 40,
17 | alignItems: 'center',
18 | justifyContent: 'center',
19 | marginTop: 20,
20 | borderRadius: 5,
21 | alignSelf: 'center',
22 | },
23 | textGetData: {
24 | fontFamily: fontFamily.regular,
25 | color: colors.white,
26 | fontSize: fontSize.medium,
27 | },
28 |
29 | viewWrapItem: {
30 | flexDirection: 'row',
31 | height: 50,
32 | alignSelf: 'stretch',
33 | alignItems: 'center',
34 | margin: 5,
35 | },
36 | avatar: {
37 | width: 30,
38 | height: 30,
39 | borderRadius: 15,
40 | },
41 | textName: {
42 | marginLeft: 10,
43 | color: colors.charcoalGrey,
44 | fontSize: fontSize.medium,
45 | fontFamily: fontFamily.regular,
46 | },
47 | });
48 |
--------------------------------------------------------------------------------
/src/Navigator/AppContainer.tsx:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {connect} from 'react-redux';
3 | import {KeyboardAvoidingView, Platform, StyleSheet, View} from 'react-native';
4 | import {clearNetworkFail} from '../actions';
5 | import Toast from 'react-native-toast-message';
6 | import {NavigationContainer} from '@react-navigation/native';
7 | import ApplicationStyle from '../Themes/Application.Style';
8 | import colors from '../Themes/Colors';
9 | import AppStack from './AppStack';
10 |
11 | export type StackParamList = {
12 | DetailProfileScreen: undefined;
13 | DetailFollowerScreen: undefined;
14 | DrawerNavigatorScreen: undefined;
15 | };
16 |
17 | interface Props {}
18 |
19 | interface State {
20 | sendNetworkFail: object;
21 | }
22 |
23 | class AppContainer extends Component {
24 | constructor(props: Props) {
25 | super(props);
26 | this.state = {
27 | sendNetworkFail: {},
28 | };
29 | }
30 |
31 | static getDerivedStateFromProps(nextProps: any) {
32 | if (nextProps.sendNetworkFail.err) {
33 | switch (nextProps.sendNetworkFail.err) {
34 | case 'NETWORK_ERROR':
35 | Toast.show({
36 | type: 'info',
37 | text1: 'No network connection, please try again',
38 | });
39 | break;
40 | case 'TIMEOUT_ERROR':
41 | Toast.show({type: 'info', text1: 'Timeout, please try again'});
42 | break;
43 | case 'CONNECTION_ERROR':
44 | Toast.show({
45 | type: 'info',
46 | text1: 'DNS server not found, please try again',
47 | });
48 | break;
49 | default:
50 | Toast.show({
51 | type: 'info',
52 | text1: nextProps.sendNetworkFail.err,
53 | });
54 | break;
55 | }
56 | nextProps.callApi(clearNetworkFail());
57 | }
58 | return null;
59 | }
60 |
61 | render() {
62 | return (
63 |
64 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | );
74 | }
75 | }
76 |
77 | const mapStateToProps = (state: any) => {
78 | return {
79 | sendNetworkFail: state.sendNetworkFail,
80 | };
81 | };
82 |
83 | const mapDispatchToProps = (dispatch: any) => {
84 | return {
85 | callApi: (object: object) => dispatch(object),
86 | };
87 | };
88 |
89 | export default connect(mapStateToProps, mapDispatchToProps)(AppContainer);
90 |
91 | const styles = StyleSheet.create({
92 | ...ApplicationStyle,
93 | viewNetworkErr: {
94 | position: 'absolute',
95 | left: 0,
96 | right: 0,
97 | top: 0,
98 | bottom: 0,
99 | backgroundColor: 'rgba(0, 0, 0, 0.5)',
100 | alignItems: 'center',
101 | justifyContent: 'center',
102 | },
103 | btnRetry: {
104 | width: 150,
105 | height: 40,
106 | backgroundColor: colors.white,
107 | borderRadius: 4,
108 | alignItems: 'center',
109 | justifyContent: 'center',
110 | },
111 | textRetry: {
112 | color: colors.black,
113 | fontWeight: 'bold',
114 | },
115 | });
116 |
--------------------------------------------------------------------------------
/src/Navigator/AppDrawer.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ProfileScreen from '../Profile/Profile.Screen';
3 | import FollowerScreen from '../Follower/Follower.Screen';
4 | import {createDrawerNavigator} from '@react-navigation/drawer';
5 | import {fontFamily, fontSize} from '../const';
6 | import colors from '../Themes/Colors';
7 |
8 | const Drawer = createDrawerNavigator();
9 |
10 | const AppDrawer = () => {
11 | return (
12 |
24 |
25 |
26 |
27 | );
28 | };
29 | export default AppDrawer;
30 |
--------------------------------------------------------------------------------
/src/Navigator/AppStack.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import {createNativeStackNavigator} from '@react-navigation/native-stack';
3 | import AppDrawer from './AppDrawer';
4 | import DetailProfileScreen from '../DetailProfile/DetailProfile.Screen';
5 | import DetailFollowerScreen from '../DetailFollower/DetailFollower.Screen';
6 |
7 | const Stack = createNativeStackNavigator();
8 |
9 | const AppStack = () => {
10 | return (
11 |
14 |
15 |
19 |
23 |
24 | );
25 | };
26 |
27 | export default AppStack;
28 |
--------------------------------------------------------------------------------
/src/Profile/Profile.Action.ts:
--------------------------------------------------------------------------------
1 | // Get profile github
2 |
3 | import {GithubProfileResponse} from './Profile.Model';
4 |
5 | export const GET_PROFILE_REQUEST = 'GET_PROFILE_REQUEST';
6 | export const GET_PROFILE_SUCCESS = 'GET_PROFILE_SUCCESS';
7 | export const GET_PROFILE_FAIL = 'GET_PROFILE_FAIL';
8 |
9 | export const getProfileRequest = (username: string) => {
10 | return {type: GET_PROFILE_REQUEST, payload: {username}};
11 | };
12 | export const getProfileSuccess = (response: GithubProfileResponse) => {
13 | return {type: GET_PROFILE_SUCCESS, payload: {data: response}};
14 | };
15 | export const getProfileFail = (err: object) => {
16 | return {type: GET_PROFILE_FAIL, payload: {err}};
17 | };
18 |
--------------------------------------------------------------------------------
/src/Profile/Profile.Model.ts:
--------------------------------------------------------------------------------
1 | export class GithubProfileResponse {
2 | avatar_url: string;
3 | login: string;
4 | name: string;
5 | location: string;
6 |
7 | constructor(data: Partial) {
8 | Object.assign(this, data);
9 | }
10 |
11 | public static fromJSON = (jsonObject: object): GithubProfileResponse => {
12 | return new GithubProfileResponse(jsonObject);
13 | };
14 | }
15 |
--------------------------------------------------------------------------------
/src/Profile/Profile.Reducer.ts:
--------------------------------------------------------------------------------
1 | import {
2 | GET_PROFILE_FAIL,
3 | GET_PROFILE_REQUEST,
4 | GET_PROFILE_SUCCESS,
5 | } from './Profile.Action';
6 | import {Action, State} from '../reducers';
7 |
8 | const initialState: State = {fetching: false, data: null, err: null};
9 |
10 | export const getProfile = (state: State = initialState, action: Action) => {
11 | switch (action.type) {
12 | case GET_PROFILE_REQUEST:
13 | return {
14 | fetching: true,
15 | data: null,
16 | err: null,
17 | };
18 | case GET_PROFILE_SUCCESS:
19 | return {
20 | fetching: false,
21 | data: action.payload.data,
22 | err: null,
23 | };
24 | case GET_PROFILE_FAIL:
25 | return {
26 | fetching: false,
27 | data: null,
28 | err: action.payload.err,
29 | };
30 | default:
31 | return state;
32 | }
33 | };
34 |
--------------------------------------------------------------------------------
/src/Profile/Profile.Saga.ts:
--------------------------------------------------------------------------------
1 | import {call, put, takeLatest} from 'redux-saga/effects';
2 | import {
3 | GET_PROFILE_REQUEST,
4 | getProfileFail,
5 | getProfileSuccess,
6 | } from './Profile.Action';
7 | import {getProfile} from '../api';
8 | import {sendNetworkFail} from '../actions';
9 | import {Action} from '../reducers';
10 | import {GithubProfileResponse} from './Profile.Model';
11 |
12 | export function* watchGetProfile() {
13 | yield takeLatest(GET_PROFILE_REQUEST, handleGetProfile);
14 | }
15 |
16 | function* handleGetProfile(action: Action) {
17 | const response = yield call(getProfile, action.payload);
18 | if (response.ok) {
19 | const githubProfile = GithubProfileResponse.fromJSON(response.data);
20 | yield put(getProfileSuccess(githubProfile));
21 | } else {
22 | if (
23 | response.problem !== 'NETWORK_ERROR' &&
24 | response.problem !== 'TIMEOUT_ERROR' &&
25 | response.problem !== 'CONNECTION_ERROR'
26 | ) {
27 | yield put(getProfileFail(response.problem));
28 | } else {
29 | yield put(sendNetworkFail(response.problem));
30 | yield put(getProfileFail(response.problem));
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Profile/Profile.Screen.tsx:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import {Image, StatusBar, Text, TouchableOpacity, View} from 'react-native';
3 | import {connect} from 'react-redux';
4 | import styles from './Profile.Style';
5 | import {getProfileRequest} from './Profile.Action';
6 | import NoDataView from '../Components/NoDataView';
7 | import colors from '../Themes/Colors';
8 | import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
9 | import {barStyle} from '../const';
10 | import CommonBtn from '../Components/CommonBtn';
11 | import LoadingView from '../Components/LoadingView';
12 | import {NativeStackNavigationProp} from '@react-navigation/native-stack';
13 | import {StackParamList} from 'src/Navigator/AppContainer';
14 | import {CompositeNavigationProp} from '@react-navigation/native';
15 | import {DrawerNavigationProp} from '@react-navigation/drawer';
16 | import {DrawerParamList} from 'src/DrawerNavigator/DrawerNavigator.Screen';
17 | import {Action} from '../reducers';
18 | import {GithubProfileResponse} from './Profile.Model';
19 |
20 | interface Props {
21 | callApi: (action: Action) => {};
22 | navigation: CompositeNavigationProp<
23 | NativeStackNavigationProp,
24 | DrawerNavigationProp
25 | >;
26 | }
27 |
28 | interface State {
29 | getProfile: any;
30 | }
31 |
32 | class ProfileScreen extends Component {
33 | constructor(props: Props) {
34 | super(props);
35 | this.state = {
36 | getProfile: {fetching: false, data: null, err: null},
37 | };
38 | }
39 |
40 | static getDerivedStateFromProps(nextProps: any) {
41 | return {getProfile: nextProps.getProfile};
42 | }
43 |
44 | getUserProfile = () => {
45 | this.props.callApi(getProfileRequest('duytq94'));
46 | };
47 |
48 | goDetail = () => {
49 | this.props.navigation.navigate('DetailProfileScreen');
50 | };
51 |
52 | onMenuPress = () => {
53 | this.props.navigation.openDrawer();
54 | };
55 |
56 | render() {
57 | return (
58 |
59 | {this.renderToolbar()}
60 |
61 |
67 |
68 |
74 |
75 | {this.renderDataView()}
76 |
77 | {this.state.getProfile.fetching ? : null}
78 |
79 | );
80 | }
81 |
82 | renderToolbar = () => {
83 | return (
84 |
85 |
90 |
93 |
98 |
99 |
100 | Profile
101 |
102 |
103 |
104 | );
105 | };
106 |
107 | renderDataView = () => {
108 | const githubProfile: GithubProfileResponse = this.state.getProfile.data;
109 | if (githubProfile) {
110 | return (
111 |
112 |
116 | {githubProfile.login}
117 | {githubProfile.name}
118 | {githubProfile.location}
119 |
120 | );
121 | } else if (this.state.getProfile.err) {
122 | return ;
123 | } else {
124 | return null;
125 | }
126 | };
127 | }
128 |
129 | const mapStateToProps = (state: any) => {
130 | return {
131 | getProfile: state.getProfile,
132 | };
133 | };
134 |
135 | const mapDispatchToProps = (dispatch: any) => {
136 | return {
137 | callApi: object => dispatch(object),
138 | };
139 | };
140 |
141 | export default connect(mapStateToProps, mapDispatchToProps)(ProfileScreen);
142 |
--------------------------------------------------------------------------------
/src/Profile/Profile.Style.ts:
--------------------------------------------------------------------------------
1 | import {StyleSheet} from 'react-native';
2 | import {fontFamily, fontSize} from '../const';
3 | import ApplicationStyle from '../Themes/Application.Style';
4 | import colors from '../Themes/Colors';
5 |
6 | export default StyleSheet.create({
7 | ...ApplicationStyle,
8 | titleHeader: {
9 | fontFamily: fontFamily.demiBold,
10 | color: colors.charcoalGrey,
11 | fontSize: fontSize.large,
12 | marginLeft: 50,
13 | },
14 | btnGetData: {
15 | backgroundColor: colors.charcoalGrey,
16 | width: 120,
17 | height: 40,
18 | alignItems: 'center',
19 | justifyContent: 'center',
20 | marginTop: 20,
21 | borderRadius: 5,
22 | alignSelf: 'center',
23 | },
24 | textGetData: {
25 | fontFamily: fontFamily.regular,
26 | color: colors.white,
27 | fontSize: fontSize.medium,
28 | },
29 | avatar: {
30 | width: 50,
31 | height: 50,
32 | borderRadius: 25,
33 | marginTop: 30,
34 | },
35 | body: {
36 | flex: 1,
37 | alignItems: 'center',
38 | },
39 | textData: {
40 | color: colors.charcoalGrey,
41 | fontSize: fontSize.medium,
42 | fontFamily: fontFamily.regular,
43 | marginTop: 5,
44 | },
45 | });
46 |
--------------------------------------------------------------------------------
/src/Themes/Application.Style.ts:
--------------------------------------------------------------------------------
1 | import colors from './Colors';
2 | import {Dimensions, Platform, StyleSheet} from 'react-native';
3 | import {fontFamily, fontSize} from '../const';
4 |
5 | const ApplicationStyle = StyleSheet.create({
6 | mainContainer: {
7 | flex: 1,
8 | backgroundColor: colors.bgRoot,
9 | },
10 | toolbar: {
11 | flexDirection: 'row',
12 | width: '100%',
13 | height: Platform.OS === 'android' ? 48 : isIphoneX() ? 88 : 78,
14 | paddingTop: Platform.OS === 'android' ? 0 : isIphoneX() ? 40 : 30,
15 | backgroundColor: colors.primary,
16 | alignItems: 'center',
17 | },
18 | viewWrapTitleToolbar: {
19 | flex: 5,
20 | justifyContent: 'center',
21 | alignItems: 'center',
22 | },
23 | titleToolbar: {
24 | color: 'white',
25 | fontFamily: fontFamily.bold,
26 | fontSize: fontSize.large,
27 | },
28 | viewWrapIcLeft: {
29 | flex: 1,
30 | justifyContent: 'center',
31 | alignItems: 'center',
32 | },
33 | icLeft: {
34 | width: 23,
35 | height: 23,
36 | tintColor: 'white',
37 | },
38 | viewWrapIcRight: {
39 | flex: 1,
40 | justifyContent: 'center',
41 | alignItems: 'center',
42 | },
43 | icRight: {
44 | width: 23,
45 | height: 23,
46 | tintColor: 'white',
47 | },
48 | textRight: {
49 | color: 'white',
50 | fontFamily: fontFamily.medium,
51 | fontSize: fontSize.medium,
52 | },
53 | viewHorizontalLine: {
54 | backgroundColor: colors.grey,
55 | height: 0.5,
56 | alignSelf: 'stretch',
57 | },
58 | });
59 |
60 | export default ApplicationStyle;
61 |
62 | export function isIphoneX() {
63 | const dim = Dimensions.get('window');
64 |
65 | return (
66 | // This has to be iOS
67 | Platform.OS === 'ios' &&
68 | // Check either, iPhone X or XR
69 | (isIPhoneXSize(dim) || isIPhoneXrSize(dim))
70 | );
71 | }
72 |
73 | export function isIPhoneXSize(dim) {
74 | return dim.height === 812 || dim.width === 812;
75 | }
76 |
77 | export function isIPhoneXrSize(dim) {
78 | return dim.height === 896 || dim.width === 896;
79 | }
80 |
--------------------------------------------------------------------------------
/src/Themes/Colors.ts:
--------------------------------------------------------------------------------
1 | const colors = {
2 | primary: '#76b4bd',
3 | white: '#ffffff',
4 | black: '#000000',
5 | charcoalGrey: '#30333a',
6 | boldGrey: '#919191',
7 | grey: '#d8d8d8',
8 | bgRoot: '#f4f4f6',
9 | red: '#ee3b3b',
10 | border: 'rgba(0, 0, 0, 0.1)',
11 | };
12 |
13 | export default colors;
14 |
--------------------------------------------------------------------------------
/src/Themes/Images.ts:
--------------------------------------------------------------------------------
1 | const images = {};
2 |
3 | export default images;
4 |
--------------------------------------------------------------------------------
/src/actions.ts:
--------------------------------------------------------------------------------
1 | export const SEND_NETWORK_FAIL = 'SEND_NETWORK_FAIL';
2 | export const sendNetworkFail = (err: any) => {
3 | return {type: SEND_NETWORK_FAIL, payload: {err}};
4 | };
5 | export const CLEAR_NETWORK_FAIL = 'CLEAR_NETWORK_FAIL';
6 | export const clearNetworkFail = () => {
7 | return {type: CLEAR_NETWORK_FAIL};
8 | };
9 |
--------------------------------------------------------------------------------
/src/api.ts:
--------------------------------------------------------------------------------
1 | import apisauce from 'apisauce';
2 |
3 | export const api = apisauce.create({
4 | baseURL: 'https://api.github.com/',
5 | headers: {Accept: 'application/vnd.github.v3+json'},
6 | timeout: 15000,
7 | });
8 |
9 | export const getProfile = (body: any) => {
10 | return api.get(`users/${body.username}`);
11 | };
12 |
13 | export const getFollower = (body: any) => {
14 | return api.get(`users/${body.username}/followers`);
15 | };
16 |
--------------------------------------------------------------------------------
/src/const.ts:
--------------------------------------------------------------------------------
1 | export enum barStyle {
2 | darkContent = 'dark-content',
3 | lightContent = 'light-content',
4 | }
5 |
6 | export const fontSize = {small: 14, medium: 16, large: 18};
7 |
8 | export const fontFamily = {
9 | bold: 'iCielVAGRoundedNext-Bold',
10 | regular: 'iCielVAGRoundedNext-Regular',
11 | medium: 'iCielVAGRoundedNext-Medium',
12 | light: 'iCielVAGRoundedNext-Light',
13 | demiBold: 'iCielVAGRoundedNext-DemiBold',
14 | lightItalic: 'iCielVAGRoundedNext-LightItalic',
15 | };
16 |
--------------------------------------------------------------------------------
/src/reducers.ts:
--------------------------------------------------------------------------------
1 | import {combineReducers} from 'redux';
2 | import {getProfile} from './Profile/Profile.Reducer';
3 | import {getFollower} from './Follower/Follower.Reducer';
4 | import {CLEAR_NETWORK_FAIL, SEND_NETWORK_FAIL} from './actions';
5 |
6 | export interface State {
7 | fetching: boolean;
8 | data: any;
9 | err: any;
10 | }
11 |
12 | export interface Action {
13 | type: string;
14 | payload: any;
15 | }
16 |
17 | const initialState = {fetching: false, data: null, err: null};
18 |
19 | const sendNetworkFail = (state: State = initialState, action: Action) => {
20 | switch (action.type) {
21 | case SEND_NETWORK_FAIL:
22 | return {
23 | err: action.payload.err,
24 | };
25 | case CLEAR_NETWORK_FAIL:
26 | return {
27 | err: null,
28 | };
29 | default:
30 | return state;
31 | }
32 | };
33 |
34 | const rootReducer = combineReducers({sendNetworkFail, getProfile, getFollower});
35 | export default rootReducer;
36 |
--------------------------------------------------------------------------------
/src/sagas.ts:
--------------------------------------------------------------------------------
1 | import {all} from 'redux-saga/effects';
2 | import {watchGetProfile} from './Profile/Profile.Saga';
3 | import {watchGetFollower} from './Follower/Follower.Saga';
4 |
5 | export default function* rootSaga() {
6 | yield all([watchGetProfile(), watchGetFollower()]);
7 | }
8 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "compilerOptions": {
4 | /* Basic Options */
5 | "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
7 | "lib": ["es6"], /* Specify library files to be included in the compilation. */
8 | "allowJs": true, /* Allow javascript files to be compiled. */
9 | // "checkJs": true, /* Report errors in .js files. */
10 | "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */
12 | // "sourceMap": true, /* Generates corresponding '.map' file. */
13 | // "outFile": "./", /* Concatenate and emit output to single file. */
14 | // "outDir": "./", /* Redirect output structure to the directory. */
15 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
16 | // "removeComments": true, /* Do not emit comments to output. */
17 | "noEmit": true, /* Do not emit outputs. */
18 | //"incremental": true, /* Enable incremental compilation */
19 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */
20 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
21 | "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
22 |
23 | /* Strict Type-Checking Options */
24 | "strict": true, /* Enable all strict type-checking options. */
25 | "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
26 | // "strictNullChecks": true, /* Enable strict null checks. */
27 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */
28 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
29 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
30 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
31 |
32 | /* Additional Checks */
33 | // "noUnusedLocals": true, /* Report errors on unused locals. */
34 | // "noUnusedParameters": true, /* Report errors on unused parameters. */
35 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
36 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
37 |
38 | /* Module Resolution Options */
39 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
40 | "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
43 | // "typeRoots": [], /* List of folders to include type definitions from. */
44 | // "types": [], /* Type declaration files to be included in compilation. */
45 | "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
46 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
48 |
49 | /* Source Map Options */
50 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
51 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
52 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
53 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
54 |
55 | /* Experimental Options */
56 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
57 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
58 | "strictPropertyInitialization": false
59 | },
60 | "exclude": [
61 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js"
62 | ]
63 | }
64 |
--------------------------------------------------------------------------------