├── .babelrc ├── .buckconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.expo.tsx ├── App.tsx ├── __tests__ └── App.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── themeexample │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── 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 ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── Podfile ├── Podfile.lock ├── ThemeExample.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── ThemeExample.xcscheme ├── ThemeExample.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── ThemeExample │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ └── LaunchScreen.xib │ ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json │ ├── Info.plist │ └── main.m ├── package.json ├── tsconfig.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["module:metro-react-native-babel-preset"] 3 | } 4 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | .expo 5 | 6 | # Xcode 7 | # 8 | build/ 9 | ios/Pods 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | *.xccheckout 20 | *.moved-aside 21 | DerivedData 22 | *.hmap 23 | *.ipa 24 | *.xcuserstate 25 | project.xcworkspace 26 | 27 | # Android/IntelliJ 28 | # 29 | build/ 30 | .idea 31 | .gradle 32 | local.properties 33 | *.iml 34 | 35 | # node.js 36 | # 37 | node_modules/ 38 | npm-debug.log 39 | yarn-error.log 40 | 41 | # BUCK 42 | buck-out/ 43 | \.buckd/ 44 | *.keystore 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/ 52 | 53 | */fastlane/report.xml 54 | */fastlane/Preview.html 55 | */fastlane/screenshots 56 | 57 | # Bundle artifact 58 | *.jsbundle 59 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.expo.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { StyleSheet, Text, View } from 'react-native'; 3 | 4 | export default function App() { 5 | return ( 6 | 7 | 8 | react-native-appearance will be supported in Expo SDK 35+ 9 | 10 | 11 | ); 12 | } 13 | 14 | const styles = StyleSheet.create({ 15 | container: { 16 | flex: 1, 17 | alignItems: 'center', 18 | justifyContent: 'center', 19 | }, 20 | }); 21 | -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { StyleSheet, View } from 'react-native'; 3 | import { 4 | createAppContainer, 5 | createStackNavigator, 6 | createBottomTabNavigator, 7 | Themed, 8 | } from 'react-navigation'; 9 | import { AppearanceProvider, useColorScheme } from 'react-native-appearance'; 10 | 11 | function A() { 12 | return ( 13 | 14 | B 15 | 16 | ); 17 | } 18 | 19 | A.navigationOptions = { title: 'Hello from A' }; 20 | 21 | function B() { 22 | return ( 23 | 24 | B 25 | 26 | ); 27 | } 28 | 29 | B.navigationOptions = { title: 'Hello from B!!!!' }; 30 | 31 | let StackA = createStackNavigator({ A }); 32 | let StackB = createStackNavigator({ B }); 33 | let Tabs = createBottomTabNavigator({ StackA, StackB }); 34 | let Navigation = createAppContainer(Tabs); 35 | 36 | export default function App() { 37 | let theme = useColorScheme(); 38 | 39 | return ( 40 | 41 | 42 | 43 | ); 44 | } 45 | 46 | const styles = StyleSheet.create({ 47 | container: { 48 | flex: 1, 49 | alignItems: 'center', 50 | justifyContent: 'center', 51 | }, 52 | }); 53 | -------------------------------------------------------------------------------- /__tests__/App.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import App from '../App'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | renderer.create(); 10 | }); 11 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.themeexample", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.themeexample", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: '../../node_modules/react-native-unimodules/gradle.groovy' 80 | apply from: "../../node_modules/react-native/react.gradle" 81 | 82 | /** 83 | * Set this to true to create two separate APKs instead of one: 84 | * - An APK that only works on ARM devices 85 | * - An APK that only works on x86 devices 86 | * The advantage is the size of the APK is reduced by about 4MB. 87 | * Upload all the APKs to the Play Store and people will download 88 | * the correct one based on the CPU architecture of their device. 89 | */ 90 | def enableSeparateBuildPerCPUArchitecture = false 91 | 92 | /** 93 | * Run Proguard to shrink the Java bytecode in release builds. 94 | */ 95 | def enableProguardInReleaseBuilds = false 96 | 97 | android { 98 | compileSdkVersion rootProject.ext.compileSdkVersion 99 | buildToolsVersion rootProject.ext.buildToolsVersion 100 | 101 | defaultConfig { 102 | applicationId "com.themeexample" 103 | minSdkVersion rootProject.ext.minSdkVersion 104 | targetSdkVersion rootProject.ext.targetSdkVersion 105 | versionCode 1 106 | versionName "1.0" 107 | } 108 | splits { 109 | abi { 110 | reset() 111 | enable enableSeparateBuildPerCPUArchitecture 112 | universalApk false // If true, also generate a universal APK 113 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 114 | } 115 | } 116 | buildTypes { 117 | release { 118 | minifyEnabled enableProguardInReleaseBuilds 119 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 120 | } 121 | } 122 | // applicationVariants are e.g. debug, release 123 | applicationVariants.all { variant -> 124 | variant.outputs.each { output -> 125 | // For each separate APK per architecture, set a unique version code as described here: 126 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 127 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4] 128 | def abi = output.getFilter(OutputFile.ABI) 129 | if (abi != null) { // null for the universal-debug, universal-release variants 130 | output.versionCodeOverride = 131 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 132 | } 133 | } 134 | } 135 | compileOptions { 136 | sourceCompatibility JavaVersion.VERSION_1_8 137 | targetCompatibility JavaVersion.VERSION_1_8 138 | } 139 | } 140 | 141 | dependencies { 142 | implementation project(':react-native-reanimated') 143 | implementation project(':react-native-gesture-handler') 144 | implementation fileTree(dir: "libs", include: ["*.jar"]) 145 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 146 | implementation "com.facebook.react:react-native:+" // From node_modules 147 | addUnimodulesDependencies() 148 | } 149 | 150 | // Run this once to be able to run the application with BUCK 151 | // puts all compile dependencies into folder libs for BUCK to use 152 | task copyDownloadableDepsToLibs(type: Copy) { 153 | from configurations.compile 154 | into 'libs' 155 | } 156 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /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 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 35 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/themeexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.themeexample; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactActivityDelegate; 5 | import com.facebook.react.ReactRootView; 6 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 7 | 8 | public class MainActivity extends ReactActivity { 9 | 10 | /** 11 | * Returns the name of the main component registered from JavaScript. 12 | * This is used to schedule rendering of the component. 13 | */ 14 | @Override 15 | protected String getMainComponentName() { 16 | return "ThemeExample"; 17 | } 18 | 19 | @Override 20 | protected ReactActivityDelegate createReactActivityDelegate() { 21 | return new ReactActivityDelegate(this, getMainComponentName()) { 22 | @Override 23 | protected ReactRootView createRootView() { 24 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 25 | } 26 | }; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/themeexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.themeexample; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.swmansion.reanimated.ReanimatedPackage; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import com.themeexample.generated.BasePackageList; 12 | import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; 13 | 14 | import org.unimodules.adapters.react.ReactAdapterPackage; 15 | import org.unimodules.adapters.react.ModuleRegistryAdapter; 16 | import org.unimodules.adapters.react.ReactModuleRegistryProvider; 17 | import org.unimodules.core.interfaces.Package; 18 | import org.unimodules.core.interfaces.SingletonModule; 19 | import expo.modules.constants.ConstantsPackage; 20 | import expo.modules.permissions.PermissionsPackage; 21 | import expo.modules.filesystem.FileSystemPackage; 22 | 23 | import java.util.Arrays; 24 | import java.util.List; 25 | 26 | public class MainApplication extends Application implements ReactApplication { 27 | private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider( 28 | new BasePackageList().getPackageList(), 29 | Arrays.asList() 30 | ); 31 | 32 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 33 | @Override 34 | public boolean getUseDeveloperSupport() { 35 | return BuildConfig.DEBUG; 36 | } 37 | 38 | @Override 39 | protected List getPackages() { 40 | return Arrays.asList( 41 | new MainReactPackage(), 42 | new ReanimatedPackage(), 43 | new RNGestureHandlerPackage(), 44 | new ModuleRegistryAdapter(mModuleRegistryProvider) 45 | ); 46 | } 47 | 48 | @Override 49 | protected String getJSMainModuleName() { 50 | return "index"; 51 | } 52 | }; 53 | 54 | @Override 55 | public ReactNativeHost getReactNativeHost() { 56 | return mReactNativeHost; 57 | } 58 | 59 | @Override 60 | public void onCreate() { 61 | super.onCreate(); 62 | SoLoader.init(this, /* native exopackage */ false); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/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/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Theme Example 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 = "28.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 28 8 | targetSdkVersion = 27 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:3.3.0' 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | 35 | 36 | task wrapper(type: Wrapper) { 37 | gradleVersion = '4.7' 38 | distributionUrl = distributionUrl.replace("bin", "all") 39 | } 40 | -------------------------------------------------------------------------------- /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: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 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 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-navigation/theme-example/4a734de67efcde0c5b51515d7abc33909e523b18/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | apply from: '../node_modules/react-native-unimodules/gradle.groovy' 2 | include ':react-native-reanimated' 3 | project(':react-native-reanimated').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-reanimated/android') 4 | includeUnimodulesProjects() 5 | 6 | include ':react-native-gesture-handler' 7 | project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') 8 | 9 | rootProject.name = 'ThemeExample' 10 | 11 | include ':app' 12 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ThemeExample", 3 | "displayName": "Theme Example", 4 | "expo": { 5 | "name": "ThemeExample", 6 | "slug": "expo-template-bare", 7 | "privacy": "unlisted", 8 | "sdkVersion": "34.0.0", 9 | "version": "1.0.0", 10 | "entryPoint": "node_modules/expo/AppEntry.js", 11 | "platforms": [ 12 | "ios", 13 | "android", 14 | "web" 15 | ] 16 | } 17 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function(api) { 2 | api.cache(true); 3 | return { 4 | presets: ['babel-preset-expo'], 5 | }; 6 | }; 7 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | import App from './App'; 3 | import { name as appName } from './app.json'; 4 | 5 | AppRegistry.registerComponent(appName, () => App); 6 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '10.0' 2 | 3 | require_relative '../node_modules/react-native-unimodules/cocoapods' 4 | 5 | target 'ThemeExample' do 6 | # Pods for ThemeExample 7 | pod 'React', :path => '../node_modules/react-native', :subspecs => [ 8 | 'Core', 9 | 'CxxBridge', 10 | 'DevSupport', 11 | 'RCTActionSheet', 12 | 'RCTAnimation', 13 | 'RCTBlob', 14 | 'RCTGeolocation', 15 | 'RCTImage', 16 | 'RCTLinkingIOS', 17 | 'RCTNetwork', 18 | 'RCTSettings', 19 | 'RCTText', 20 | 'RCTVibration', 21 | 'RCTWebSocket', 22 | ] 23 | 24 | pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' 25 | 26 | pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' 27 | pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' 28 | pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' 29 | pod 'RNGestureHandler', :podspec => '../node_modules/react-native-gesture-handler/RNGestureHandler.podspec' 30 | pod 'RNReanimated', :podspec => '../node_modules/react-native-reanimated/RNReanimated.podspec' 31 | 32 | use_unimodules! 33 | pod 'react-native-appearance', :path => '../node_modules/react-native-appearance' 34 | 35 | end 36 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - EXAppLoaderProvider (6.0.0) 5 | - EXConstants (6.0.0): 6 | - UMConstantsInterface 7 | - UMCore 8 | - EXFileSystem (6.0.2): 9 | - UMCore 10 | - UMFileSystemInterface 11 | - EXFont (6.0.1): 12 | - UMCore 13 | - UMFontInterface 14 | - EXKeepAwake (6.0.0): 15 | - UMCore 16 | - EXLinearGradient (6.0.0): 17 | - UMCore 18 | - EXLocation (6.0.0): 19 | - UMCore 20 | - UMPermissionsInterface 21 | - UMTaskManagerInterface 22 | - EXPermissions (6.0.0): 23 | - UMCore 24 | - UMPermissionsInterface 25 | - EXSQLite (6.0.0): 26 | - UMCore 27 | - UMFileSystemInterface 28 | - EXWebBrowser (6.0.0): 29 | - UMCore 30 | - Folly (2018.10.22.00): 31 | - boost-for-react-native 32 | - DoubleConversion 33 | - glog 34 | - glog (0.3.5) 35 | - React (0.59.10): 36 | - React/Core (= 0.59.10) 37 | - react-native-appearance (0.0.4): 38 | - React 39 | - React/Core (0.59.10): 40 | - yoga (= 0.59.10.React) 41 | - React/CxxBridge (0.59.10): 42 | - Folly (= 2018.10.22.00) 43 | - React/Core 44 | - React/cxxreact 45 | - React/jsiexecutor 46 | - React/cxxreact (0.59.10): 47 | - boost-for-react-native (= 1.63.0) 48 | - DoubleConversion 49 | - Folly (= 2018.10.22.00) 50 | - glog 51 | - React/jsinspector 52 | - React/DevSupport (0.59.10): 53 | - React/Core 54 | - React/RCTWebSocket 55 | - React/fishhook (0.59.10) 56 | - React/jsi (0.59.10): 57 | - DoubleConversion 58 | - Folly (= 2018.10.22.00) 59 | - glog 60 | - React/jsiexecutor (0.59.10): 61 | - DoubleConversion 62 | - Folly (= 2018.10.22.00) 63 | - glog 64 | - React/cxxreact 65 | - React/jsi 66 | - React/jsinspector (0.59.10) 67 | - React/RCTActionSheet (0.59.10): 68 | - React/Core 69 | - React/RCTAnimation (0.59.10): 70 | - React/Core 71 | - React/RCTBlob (0.59.10): 72 | - React/Core 73 | - React/RCTGeolocation (0.59.10): 74 | - React/Core 75 | - React/RCTImage (0.59.10): 76 | - React/Core 77 | - React/RCTNetwork 78 | - React/RCTLinkingIOS (0.59.10): 79 | - React/Core 80 | - React/RCTNetwork (0.59.10): 81 | - React/Core 82 | - React/RCTSettings (0.59.10): 83 | - React/Core 84 | - React/RCTText (0.59.10): 85 | - React/Core 86 | - React/RCTVibration (0.59.10): 87 | - React/Core 88 | - React/RCTWebSocket (0.59.10): 89 | - React/Core 90 | - React/fishhook 91 | - React/RCTBlob 92 | - RNGestureHandler (1.3.0): 93 | - React 94 | - RNReanimated (1.1.0): 95 | - React 96 | - UMBarCodeScannerInterface (3.0.0) 97 | - UMCameraInterface (3.0.0) 98 | - UMConstantsInterface (3.0.0) 99 | - UMCore (3.0.2) 100 | - UMFaceDetectorInterface (3.0.0) 101 | - UMFileSystemInterface (3.0.0) 102 | - UMFontInterface (3.0.0) 103 | - UMImageLoaderInterface (3.0.0) 104 | - UMPermissionsInterface (3.0.0) 105 | - UMReactNativeAdapter (3.0.0): 106 | - React 107 | - UMCore 108 | - UMFontInterface 109 | - UMSensorsInterface (3.0.0) 110 | - UMTaskManagerInterface (3.0.0) 111 | - yoga (0.59.10.React) 112 | 113 | DEPENDENCIES: 114 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 115 | - EXAppLoaderProvider (from `../node_modules/expo-app-loader-provider/ios`) 116 | - EXConstants (from `../node_modules/expo-constants/ios`) 117 | - EXFileSystem (from `../node_modules/expo-file-system/ios`) 118 | - EXFont (from `../node_modules/expo-font/ios`) 119 | - EXKeepAwake (from `../node_modules/expo-keep-awake/ios`) 120 | - EXLinearGradient (from `../node_modules/expo-linear-gradient/ios`) 121 | - EXLocation (from `../node_modules/expo-location/ios`) 122 | - EXPermissions (from `../node_modules/expo-permissions/ios`) 123 | - EXSQLite (from `../node_modules/expo-sqlite/ios`) 124 | - EXWebBrowser (from `../node_modules/expo-web-browser/ios`) 125 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 126 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 127 | - react-native-appearance (from `../node_modules/react-native-appearance`) 128 | - React/Core (from `../node_modules/react-native`) 129 | - React/CxxBridge (from `../node_modules/react-native`) 130 | - React/DevSupport (from `../node_modules/react-native`) 131 | - React/RCTActionSheet (from `../node_modules/react-native`) 132 | - React/RCTAnimation (from `../node_modules/react-native`) 133 | - React/RCTBlob (from `../node_modules/react-native`) 134 | - React/RCTGeolocation (from `../node_modules/react-native`) 135 | - React/RCTImage (from `../node_modules/react-native`) 136 | - React/RCTLinkingIOS (from `../node_modules/react-native`) 137 | - React/RCTNetwork (from `../node_modules/react-native`) 138 | - React/RCTSettings (from `../node_modules/react-native`) 139 | - React/RCTText (from `../node_modules/react-native`) 140 | - React/RCTVibration (from `../node_modules/react-native`) 141 | - React/RCTWebSocket (from `../node_modules/react-native`) 142 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler/RNGestureHandler.podspec`) 143 | - RNReanimated (from `../node_modules/react-native-reanimated/RNReanimated.podspec`) 144 | - UMBarCodeScannerInterface (from `../node_modules/unimodules-barcode-scanner-interface/ios`) 145 | - UMCameraInterface (from `../node_modules/unimodules-camera-interface/ios`) 146 | - UMConstantsInterface (from `../node_modules/unimodules-constants-interface/ios`) 147 | - "UMCore (from `../node_modules/@unimodules/core/ios`)" 148 | - UMFaceDetectorInterface (from `../node_modules/unimodules-face-detector-interface/ios`) 149 | - UMFileSystemInterface (from `../node_modules/unimodules-file-system-interface/ios`) 150 | - UMFontInterface (from `../node_modules/unimodules-font-interface/ios`) 151 | - UMImageLoaderInterface (from `../node_modules/unimodules-image-loader-interface/ios`) 152 | - UMPermissionsInterface (from `../node_modules/unimodules-permissions-interface/ios`) 153 | - "UMReactNativeAdapter (from `../node_modules/@unimodules/react-native-adapter/ios`)" 154 | - UMSensorsInterface (from `../node_modules/unimodules-sensors-interface/ios`) 155 | - UMTaskManagerInterface (from `../node_modules/unimodules-task-manager-interface/ios`) 156 | - yoga (from `../node_modules/react-native/ReactCommon/yoga`) 157 | 158 | SPEC REPOS: 159 | https://github.com/cocoapods/specs.git: 160 | - boost-for-react-native 161 | 162 | EXTERNAL SOURCES: 163 | DoubleConversion: 164 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 165 | EXAppLoaderProvider: 166 | :path: !ruby/object:Pathname 167 | path: "../node_modules/expo-app-loader-provider/ios" 168 | EXConstants: 169 | :path: !ruby/object:Pathname 170 | path: "../node_modules/expo-constants/ios" 171 | EXFileSystem: 172 | :path: !ruby/object:Pathname 173 | path: "../node_modules/expo-file-system/ios" 174 | EXFont: 175 | :path: !ruby/object:Pathname 176 | path: "../node_modules/expo-font/ios" 177 | EXKeepAwake: 178 | :path: !ruby/object:Pathname 179 | path: "../node_modules/expo-keep-awake/ios" 180 | EXLinearGradient: 181 | :path: !ruby/object:Pathname 182 | path: "../node_modules/expo-linear-gradient/ios" 183 | EXLocation: 184 | :path: !ruby/object:Pathname 185 | path: "../node_modules/expo-location/ios" 186 | EXPermissions: 187 | :path: !ruby/object:Pathname 188 | path: "../node_modules/expo-permissions/ios" 189 | EXSQLite: 190 | :path: !ruby/object:Pathname 191 | path: "../node_modules/expo-sqlite/ios" 192 | EXWebBrowser: 193 | :path: !ruby/object:Pathname 194 | path: "../node_modules/expo-web-browser/ios" 195 | Folly: 196 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 197 | glog: 198 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 199 | React: 200 | :path: "../node_modules/react-native" 201 | react-native-appearance: 202 | :path: "../node_modules/react-native-appearance" 203 | RNGestureHandler: 204 | :podspec: "../node_modules/react-native-gesture-handler/RNGestureHandler.podspec" 205 | RNReanimated: 206 | :podspec: "../node_modules/react-native-reanimated/RNReanimated.podspec" 207 | UMBarCodeScannerInterface: 208 | :path: !ruby/object:Pathname 209 | path: "../node_modules/unimodules-barcode-scanner-interface/ios" 210 | UMCameraInterface: 211 | :path: !ruby/object:Pathname 212 | path: "../node_modules/unimodules-camera-interface/ios" 213 | UMConstantsInterface: 214 | :path: !ruby/object:Pathname 215 | path: "../node_modules/unimodules-constants-interface/ios" 216 | UMCore: 217 | :path: !ruby/object:Pathname 218 | path: "../node_modules/@unimodules/core/ios" 219 | UMFaceDetectorInterface: 220 | :path: !ruby/object:Pathname 221 | path: "../node_modules/unimodules-face-detector-interface/ios" 222 | UMFileSystemInterface: 223 | :path: !ruby/object:Pathname 224 | path: "../node_modules/unimodules-file-system-interface/ios" 225 | UMFontInterface: 226 | :path: !ruby/object:Pathname 227 | path: "../node_modules/unimodules-font-interface/ios" 228 | UMImageLoaderInterface: 229 | :path: !ruby/object:Pathname 230 | path: "../node_modules/unimodules-image-loader-interface/ios" 231 | UMPermissionsInterface: 232 | :path: !ruby/object:Pathname 233 | path: "../node_modules/unimodules-permissions-interface/ios" 234 | UMReactNativeAdapter: 235 | :path: !ruby/object:Pathname 236 | path: "../node_modules/@unimodules/react-native-adapter/ios" 237 | UMSensorsInterface: 238 | :path: !ruby/object:Pathname 239 | path: "../node_modules/unimodules-sensors-interface/ios" 240 | UMTaskManagerInterface: 241 | :path: !ruby/object:Pathname 242 | path: "../node_modules/unimodules-task-manager-interface/ios" 243 | yoga: 244 | :path: "../node_modules/react-native/ReactCommon/yoga" 245 | 246 | SPEC CHECKSUMS: 247 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 248 | DoubleConversion: bb338842f62ab1d708ceb63ec3d999f0f3d98ecd 249 | EXAppLoaderProvider: 7a8185228d8ba9e689a0e2d6d957fe9bdd49c8a0 250 | EXConstants: 5d81e84ca71b9a552529889cc798b4a04e9e22b3 251 | EXFileSystem: 091907902fcec9f9182b656fdead41a82f30986a 252 | EXFont: c862449210fc86aa11d24a202cb22c71a0d39609 253 | EXKeepAwake: e7cb6516675052b12a7d23291e33078b4239653a 254 | EXLinearGradient: 40781b77e58f844c8dc4ad310dc9755b4d3792a7 255 | EXLocation: 4eb76115832f08b1e78003b335c210e18fa60424 256 | EXPermissions: 99e52dc3e5f8e55153f1958004f6df2a30a1f2f5 257 | EXSQLite: 8dab6a5ab1b78be7925073d6071eb22095d4dda6 258 | EXWebBrowser: def838b95aa9d396f9ce71ace4e614ee16e7ee30 259 | Folly: de497beb10f102453a1afa9edbf8cf8a251890de 260 | glog: aefd1eb5dda2ab95ba0938556f34b98e2da3a60d 261 | React: 36d0768f9e93be2473b37e7fa64f92c1d5341eef 262 | react-native-appearance: f7c8193471d3bcae2679104633a90bac46c3606b 263 | RNGestureHandler: 5329a942fce3d41c68b84c2c2276ce06a696d8b0 264 | RNReanimated: 7a52c90473b5e81c13408d40d797b98387eaddde 265 | UMBarCodeScannerInterface: 84ea2d6b58ff0dc27ef9b68bab71286be18ee020 266 | UMCameraInterface: 26b26005d1756a0d5f4f04f1e168e39ea9154535 267 | UMConstantsInterface: 038bacb19de12b6fd328c589122c8dc977cccf61 268 | UMCore: 733094f43f7244c60ce1f0592d00013ed68fa52c 269 | UMFaceDetectorInterface: c9c3ae4cb045421283667a1698c2f31331f55e3f 270 | UMFileSystemInterface: e9adc71027017de38eaf7d05fa58b2848ecb3797 271 | UMFontInterface: f0c5846977ee8a93d7cfa8ae7e666772c727d195 272 | UMImageLoaderInterface: 36e54e570acc4d720856f03ceebc441f73ea472c 273 | UMPermissionsInterface: 938d010c74c43fcefc9bb990633a7c5a1631267e 274 | UMReactNativeAdapter: 131ea2b944ade8035f0b54c6570c405f6000548d 275 | UMSensorsInterface: 0ed023ce9b96f2ca6fada7bda05b7760da60b293 276 | UMTaskManagerInterface: 8664abd37a00715727e60df9ecd65e42ba47b548 277 | yoga: 684513b14b03201579ba3cee20218c9d1298b0cc 278 | 279 | PODFILE CHECKSUM: df061b11bd16196c8c49258a35b6359d6c7b286e 280 | 281 | COCOAPODS: 1.6.1 282 | -------------------------------------------------------------------------------- /ios/ThemeExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 11 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | BD5439A9AD6839496386C696 /* libPods-ThemeExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3CEBC1FEAD22CF80FAAD946B /* libPods-ThemeExample.a */; }; 15 | /* End PBXBuildFile section */ 16 | 17 | /* Begin PBXFileReference section */ 18 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 19 | 13B07F961A680F5B00A75B9A /* ThemeExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ThemeExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ThemeExample/AppDelegate.h; sourceTree = ""; }; 21 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ThemeExample/AppDelegate.m; sourceTree = ""; }; 22 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 23 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ThemeExample/Images.xcassets; sourceTree = ""; }; 24 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ThemeExample/Info.plist; sourceTree = ""; }; 25 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ThemeExample/main.m; sourceTree = ""; }; 26 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 3CEBC1FEAD22CF80FAAD946B /* libPods-ThemeExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ThemeExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 28 | C317EB14D599CB1F6C04AB59 /* Pods-ThemeExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ThemeExample.release.xcconfig"; path = "Target Support Files/Pods-ThemeExample/Pods-ThemeExample.release.xcconfig"; sourceTree = ""; }; 29 | EA6B4D9705A332BBDED98EC8 /* Pods-ThemeExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ThemeExample.debug.xcconfig"; path = "Target Support Files/Pods-ThemeExample/Pods-ThemeExample.debug.xcconfig"; sourceTree = ""; }; 30 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 31 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | BD5439A9AD6839496386C696 /* libPods-ThemeExample.a in Frameworks */, 40 | ); 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXFrameworksBuildPhase section */ 44 | 45 | /* Begin PBXGroup section */ 46 | 13B07FAE1A68108700A75B9A /* ThemeExample */ = { 47 | isa = PBXGroup; 48 | children = ( 49 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 50 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 51 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 52 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 53 | 13B07FB61A68108700A75B9A /* Info.plist */, 54 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 55 | 13B07FB71A68108700A75B9A /* main.m */, 56 | ); 57 | name = ThemeExample; 58 | sourceTree = ""; 59 | }; 60 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 64 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 65 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 66 | 3CEBC1FEAD22CF80FAAD946B /* libPods-ThemeExample.a */, 67 | ); 68 | name = Frameworks; 69 | sourceTree = ""; 70 | }; 71 | 7325302274A73AE846A527E3 /* Pods */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | EA6B4D9705A332BBDED98EC8 /* Pods-ThemeExample.debug.xcconfig */, 75 | C317EB14D599CB1F6C04AB59 /* Pods-ThemeExample.release.xcconfig */, 76 | ); 77 | name = Pods; 78 | path = Pods; 79 | sourceTree = ""; 80 | }; 81 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | ); 85 | name = Libraries; 86 | sourceTree = ""; 87 | }; 88 | 83CBB9F61A601CBA00E9B192 = { 89 | isa = PBXGroup; 90 | children = ( 91 | 13B07FAE1A68108700A75B9A /* ThemeExample */, 92 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 93 | 83CBBA001A601CBA00E9B192 /* Products */, 94 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 95 | 7325302274A73AE846A527E3 /* Pods */, 96 | ); 97 | indentWidth = 2; 98 | sourceTree = ""; 99 | tabWidth = 2; 100 | usesTabs = 0; 101 | }; 102 | 83CBBA001A601CBA00E9B192 /* Products */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 13B07F961A680F5B00A75B9A /* ThemeExample.app */, 106 | ); 107 | name = Products; 108 | sourceTree = ""; 109 | }; 110 | /* End PBXGroup section */ 111 | 112 | /* Begin PBXNativeTarget section */ 113 | 13B07F861A680F5B00A75B9A /* ThemeExample */ = { 114 | isa = PBXNativeTarget; 115 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ThemeExample" */; 116 | buildPhases = ( 117 | 9957127B0A1A3F4747BAE5F3 /* [CP] Check Pods Manifest.lock */, 118 | FD4C38642228810C00325AF5 /* Start Packager */, 119 | 13B07F871A680F5B00A75B9A /* Sources */, 120 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 121 | 13B07F8E1A680F5B00A75B9A /* Resources */, 122 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 123 | ); 124 | buildRules = ( 125 | ); 126 | dependencies = ( 127 | ); 128 | name = ThemeExample; 129 | productName = "Hello World"; 130 | productReference = 13B07F961A680F5B00A75B9A /* ThemeExample.app */; 131 | productType = "com.apple.product-type.application"; 132 | }; 133 | /* End PBXNativeTarget section */ 134 | 135 | /* Begin PBXProject section */ 136 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 137 | isa = PBXProject; 138 | attributes = { 139 | LastUpgradeCheck = 0940; 140 | ORGANIZATIONNAME = Facebook; 141 | TargetAttributes = { 142 | 00E356ED1AD99517003FC87E = { 143 | CreatedOnToolsVersion = 6.2; 144 | TestTargetID = 13B07F861A680F5B00A75B9A; 145 | }; 146 | }; 147 | }; 148 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ThemeExample" */; 149 | compatibilityVersion = "Xcode 3.2"; 150 | developmentRegion = English; 151 | hasScannedForEncodings = 0; 152 | knownRegions = ( 153 | en, 154 | Base, 155 | ); 156 | mainGroup = 83CBB9F61A601CBA00E9B192; 157 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 158 | projectDirPath = ""; 159 | projectRoot = ""; 160 | targets = ( 161 | 13B07F861A680F5B00A75B9A /* ThemeExample */, 162 | ); 163 | }; 164 | /* End PBXProject section */ 165 | 166 | /* Begin PBXResourcesBuildPhase section */ 167 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 168 | isa = PBXResourcesBuildPhase; 169 | buildActionMask = 2147483647; 170 | files = ( 171 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 172 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | }; 176 | /* End PBXResourcesBuildPhase section */ 177 | 178 | /* Begin PBXShellScriptBuildPhase section */ 179 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 180 | isa = PBXShellScriptBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | ); 184 | inputPaths = ( 185 | ); 186 | name = "Bundle React Native code and images"; 187 | outputPaths = ( 188 | ); 189 | runOnlyForDeploymentPostprocessing = 0; 190 | shellPath = /bin/sh; 191 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 192 | }; 193 | 9957127B0A1A3F4747BAE5F3 /* [CP] Check Pods Manifest.lock */ = { 194 | isa = PBXShellScriptBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | ); 198 | inputFileListPaths = ( 199 | ); 200 | inputPaths = ( 201 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 202 | "${PODS_ROOT}/Manifest.lock", 203 | ); 204 | name = "[CP] Check Pods Manifest.lock"; 205 | outputFileListPaths = ( 206 | ); 207 | outputPaths = ( 208 | "$(DERIVED_FILE_DIR)/Pods-ThemeExample-checkManifestLockResult.txt", 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | shellPath = /bin/sh; 212 | 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"; 213 | showEnvVarsInLog = 0; 214 | }; 215 | FD4C38642228810C00325AF5 /* Start Packager */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputFileListPaths = ( 221 | ); 222 | inputPaths = ( 223 | ); 224 | name = "Start Packager"; 225 | outputFileListPaths = ( 226 | ); 227 | outputPaths = ( 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | shellPath = /bin/sh; 231 | 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"; 232 | showEnvVarsInLog = 0; 233 | }; 234 | /* End PBXShellScriptBuildPhase section */ 235 | 236 | /* Begin PBXSourcesBuildPhase section */ 237 | 13B07F871A680F5B00A75B9A /* Sources */ = { 238 | isa = PBXSourcesBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 242 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | }; 246 | /* End PBXSourcesBuildPhase section */ 247 | 248 | /* Begin PBXVariantGroup section */ 249 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 250 | isa = PBXVariantGroup; 251 | children = ( 252 | 13B07FB21A68108700A75B9A /* Base */, 253 | ); 254 | name = LaunchScreen.xib; 255 | path = ThemeExample; 256 | sourceTree = ""; 257 | }; 258 | /* End PBXVariantGroup section */ 259 | 260 | /* Begin XCBuildConfiguration section */ 261 | 13B07F941A680F5B00A75B9A /* Debug */ = { 262 | isa = XCBuildConfiguration; 263 | baseConfigurationReference = EA6B4D9705A332BBDED98EC8 /* Pods-ThemeExample.debug.xcconfig */; 264 | buildSettings = { 265 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 266 | CURRENT_PROJECT_VERSION = 1; 267 | DEAD_CODE_STRIPPING = NO; 268 | INFOPLIST_FILE = ThemeExample/Info.plist; 269 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 270 | OTHER_LDFLAGS = ( 271 | "$(inherited)", 272 | "-ObjC", 273 | "-lc++", 274 | ); 275 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 276 | PRODUCT_NAME = ThemeExample; 277 | VERSIONING_SYSTEM = "apple-generic"; 278 | }; 279 | name = Debug; 280 | }; 281 | 13B07F951A680F5B00A75B9A /* Release */ = { 282 | isa = XCBuildConfiguration; 283 | baseConfigurationReference = C317EB14D599CB1F6C04AB59 /* Pods-ThemeExample.release.xcconfig */; 284 | buildSettings = { 285 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 286 | CURRENT_PROJECT_VERSION = 1; 287 | INFOPLIST_FILE = ThemeExample/Info.plist; 288 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 289 | OTHER_LDFLAGS = ( 290 | "$(inherited)", 291 | "-ObjC", 292 | "-lc++", 293 | ); 294 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 295 | PRODUCT_NAME = ThemeExample; 296 | VERSIONING_SYSTEM = "apple-generic"; 297 | }; 298 | name = Release; 299 | }; 300 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ALWAYS_SEARCH_USER_PATHS = NO; 304 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 305 | CLANG_CXX_LIBRARY = "libc++"; 306 | CLANG_ENABLE_MODULES = YES; 307 | CLANG_ENABLE_OBJC_ARC = YES; 308 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 309 | CLANG_WARN_BOOL_CONVERSION = YES; 310 | CLANG_WARN_COMMA = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 313 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 314 | CLANG_WARN_EMPTY_BODY = YES; 315 | CLANG_WARN_ENUM_CONVERSION = YES; 316 | CLANG_WARN_INFINITE_RECURSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 319 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 320 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 321 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 322 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 323 | CLANG_WARN_STRICT_PROTOTYPES = YES; 324 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 325 | CLANG_WARN_UNREACHABLE_CODE = YES; 326 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 327 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 328 | COPY_PHASE_STRIP = NO; 329 | ENABLE_STRICT_OBJC_MSGSEND = YES; 330 | ENABLE_TESTABILITY = YES; 331 | GCC_C_LANGUAGE_STANDARD = gnu99; 332 | GCC_DYNAMIC_NO_PIC = NO; 333 | GCC_NO_COMMON_BLOCKS = YES; 334 | GCC_OPTIMIZATION_LEVEL = 0; 335 | GCC_PREPROCESSOR_DEFINITIONS = ( 336 | "DEBUG=1", 337 | "$(inherited)", 338 | ); 339 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 340 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 341 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 342 | GCC_WARN_UNDECLARED_SELECTOR = YES; 343 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 344 | GCC_WARN_UNUSED_FUNCTION = YES; 345 | GCC_WARN_UNUSED_VARIABLE = YES; 346 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 347 | MTL_ENABLE_DEBUG_INFO = YES; 348 | ONLY_ACTIVE_ARCH = YES; 349 | SDKROOT = iphoneos; 350 | }; 351 | name = Debug; 352 | }; 353 | 83CBBA211A601CBA00E9B192 /* Release */ = { 354 | isa = XCBuildConfiguration; 355 | buildSettings = { 356 | ALWAYS_SEARCH_USER_PATHS = NO; 357 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 358 | CLANG_CXX_LIBRARY = "libc++"; 359 | CLANG_ENABLE_MODULES = YES; 360 | CLANG_ENABLE_OBJC_ARC = YES; 361 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 362 | CLANG_WARN_BOOL_CONVERSION = YES; 363 | CLANG_WARN_COMMA = YES; 364 | CLANG_WARN_CONSTANT_CONVERSION = YES; 365 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 366 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 367 | CLANG_WARN_EMPTY_BODY = YES; 368 | CLANG_WARN_ENUM_CONVERSION = YES; 369 | CLANG_WARN_INFINITE_RECURSION = YES; 370 | CLANG_WARN_INT_CONVERSION = YES; 371 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 372 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 373 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 374 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 375 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 376 | CLANG_WARN_STRICT_PROTOTYPES = YES; 377 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 378 | CLANG_WARN_UNREACHABLE_CODE = YES; 379 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 380 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 381 | COPY_PHASE_STRIP = YES; 382 | ENABLE_NS_ASSERTIONS = NO; 383 | ENABLE_STRICT_OBJC_MSGSEND = YES; 384 | GCC_C_LANGUAGE_STANDARD = gnu99; 385 | GCC_NO_COMMON_BLOCKS = YES; 386 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 387 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 388 | GCC_WARN_UNDECLARED_SELECTOR = YES; 389 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 390 | GCC_WARN_UNUSED_FUNCTION = YES; 391 | GCC_WARN_UNUSED_VARIABLE = YES; 392 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 393 | MTL_ENABLE_DEBUG_INFO = NO; 394 | SDKROOT = iphoneos; 395 | VALIDATE_PRODUCT = YES; 396 | }; 397 | name = Release; 398 | }; 399 | /* End XCBuildConfiguration section */ 400 | 401 | /* Begin XCConfigurationList section */ 402 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ThemeExample" */ = { 403 | isa = XCConfigurationList; 404 | buildConfigurations = ( 405 | 13B07F941A680F5B00A75B9A /* Debug */, 406 | 13B07F951A680F5B00A75B9A /* Release */, 407 | ); 408 | defaultConfigurationIsVisible = 0; 409 | defaultConfigurationName = Release; 410 | }; 411 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ThemeExample" */ = { 412 | isa = XCConfigurationList; 413 | buildConfigurations = ( 414 | 83CBBA201A601CBA00E9B192 /* Debug */, 415 | 83CBBA211A601CBA00E9B192 /* Release */, 416 | ); 417 | defaultConfigurationIsVisible = 0; 418 | defaultConfigurationName = Release; 419 | }; 420 | /* End XCConfigurationList section */ 421 | }; 422 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 423 | } 424 | -------------------------------------------------------------------------------- /ios/ThemeExample.xcodeproj/xcshareddata/xcschemes/ThemeExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/ThemeExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/ThemeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/ThemeExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | #import 11 | #import 12 | 13 | @interface AppDelegate : UMAppDelegateWrapper 14 | 15 | @property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter; 16 | @property (nonatomic, strong) UIWindow *window; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /ios/ThemeExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | #import 16 | 17 | @implementation AppDelegate 18 | 19 | @synthesize window = _window; 20 | 21 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 22 | { 23 | self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]]; 24 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 25 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"ThemeExample" initialProperties:nil]; 26 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 27 | 28 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 29 | UIViewController *rootViewController = [UIViewController new]; 30 | rootViewController.view = rootView; 31 | self.window.rootViewController = rootViewController; 32 | [self.window makeKeyAndVisible]; 33 | 34 | [super application:application didFinishLaunchingWithOptions:launchOptions]; 35 | 36 | return YES; 37 | } 38 | 39 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge 40 | { 41 | NSArray> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge]; 42 | // You can inject any extra modules that you would like here, more information at: 43 | // https://facebook.github.io/react-native/docs/native-modules-ios.html#dependency-injection 44 | return extraModules; 45 | } 46 | 47 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { 48 | #ifdef DEBUG 49 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 50 | #else 51 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 52 | #endif 53 | } 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /ios/ThemeExample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/ThemeExample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/ThemeExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/ThemeExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Theme Example 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 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSLocationWhenInUseUsageDescription 28 | 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UIViewControllerBasedStatusBarAppearance 42 | 43 | NSLocationWhenInUseUsageDescription 44 | 45 | NSAppTransportSecurity 46 | 47 | 48 | NSAllowsArbitraryLoads 49 | 50 | NSExceptionDomains 51 | 52 | localhost 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | NSCalendarsUsageDescription 60 | Allow Theme Example to access your calendar 61 | NSCameraUsageDescription 62 | Allow Theme Example to use the camera 63 | NSContactsUsageDescription 64 | Allow Theme Example experiences to access your contacts 65 | NSLocationAlwaysAndWhenInUseUsageDescription 66 | Allow Theme Example to use your location 67 | NSLocationAlwaysUsageDescription 68 | Allow Theme Example to use your location 69 | NSLocationWhenInUseUsageDescription 70 | Allow Theme Example to use your location 71 | NSMicrophoneUsageDescription 72 | Allow Theme Example to access your microphone 73 | NSMotionUsageDescription 74 | Allow Theme Example to access your device's accelerometer 75 | NSPhotoLibraryAddUsageDescription 76 | Give Theme Example periences permission to save photos 77 | NSPhotoLibraryUsageDescription 78 | Give Theme Example periences permission to access your photos 79 | NSRemindersUsageDescription 80 | Allow Theme Example to access your reminders 81 | 82 | 83 | -------------------------------------------------------------------------------- /ios/ThemeExample/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "android": "react-native run-android", 4 | "ios": "react-native run-ios", 5 | "web": "expo start --web", 6 | "start": "react-native start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "expo": "^34.0.1", 11 | "react": "16.8.3", 12 | "react-dom": "^16.8.6", 13 | "react-native": "0.59.10", 14 | "react-native-appearance": "0.0.5", 15 | "react-native-gesture-handler": "~1.3.0", 16 | "react-native-reanimated": "~1.1.0", 17 | "react-native-unimodules": "~0.5.2", 18 | "react-native-web": "^0.11.4", 19 | "react-navigation": "^3.12.0" 20 | }, 21 | "devDependencies": { 22 | "@babel/core": "^7.0.0", 23 | "@types/react": "^16.8.23", 24 | "@types/react-native": "^0.57.65", 25 | "babel-preset-expo": "^6.0.0", 26 | "jest-expo": "^34.0.0", 27 | "typescript": "^3.4.5" 28 | }, 29 | "jest": { 30 | "preset": "react-native" 31 | }, 32 | "private": true 33 | } 34 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowSyntheticDefaultImports": true, 4 | "jsx": "react-native", 5 | "lib": ["dom", "esnext"], 6 | "moduleResolution": "node", 7 | "noEmit": true, 8 | "skipLibCheck": true, 9 | "resolveJsonModule": true 10 | } 11 | } 12 | --------------------------------------------------------------------------------