├── .all-contributorsrc
├── .prettierrc.json
├── LICENSE
├── README.md
├── demo
├── .buckconfig
├── .flowconfig
├── .gitattributes
├── .gitignore
├── .watchmanconfig
├── App.js
├── __tests__
│ └── App-test.js
├── android
│ ├── app
│ │ ├── BUCK
│ │ ├── build.gradle
│ │ ├── build_defs.bzl
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── demo
│ │ │ │ ├── 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
├── images
│ ├── hook.png
│ ├── scrsht01.png
│ └── scrshtdebug.png
├── index.js
├── ios
│ ├── demo-tvOS
│ │ └── Info.plist
│ ├── demo-tvOSTests
│ │ └── Info.plist
│ ├── demo.xcodeproj
│ │ ├── project.pbxproj
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ ├── demo-tvOS.xcscheme
│ │ │ └── demo.xcscheme
│ ├── demo
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj
│ │ │ └── LaunchScreen.xib
│ │ ├── Images.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ ├── Info.plist
│ │ └── main.m
│ └── demoTests
│ │ ├── Info.plist
│ │ └── demoTests.m
├── metro.config.js
├── package.json
└── yarn.lock
├── index.d.ts
├── index.js
├── package.json
└── react-native-hooks-persist.podspec
/.all-contributorsrc:
--------------------------------------------------------------------------------
1 | {
2 | "files": [
3 | "README.md"
4 | ],
5 | "imageSize": 100,
6 | "commit": false,
7 | "contributors": [
8 | {
9 | "login": "Yaxian",
10 | "name": "Yaxian",
11 | "avatar_url": "https://avatars1.githubusercontent.com/u/9707805?v=4",
12 | "profile": "https://github.com/Yaxian",
13 | "contributions": [
14 | "code"
15 | ]
16 | }
17 | ],
18 | "contributorsPerLine": 7,
19 | "projectName": "react-native-hooks-persist",
20 | "projectOwner": "rcerrejon",
21 | "repoType": "github",
22 | "repoHost": "https://github.com"
23 | }
24 |
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "trailingComma": "es5",
3 | "spaceWidth": 2,
4 | "semi": true,
5 | "singleQuote": true
6 | }
7 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Rafael Cerrejon
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # React-Native Hooks Persist
2 |
3 |
4 |
5 | React Native Hooks Persist with Async Storage
6 |
7 | 
8 |
9 | [](#contributors)
10 |
11 | 
12 |
13 | 
14 |
15 | 
16 |
17 | ## Getting Started
18 |
19 | ### Install
20 |
21 | `yarn add react-native-hooks-persist`
22 |
23 | or
24 |
25 | `npm install react-native-hooks-persist`
26 |
27 | ### Methods
28 |
29 | | Name | Description |
30 | | :----------------- | :------------------------ |
31 | | useStatePersist | Main hook persist method |
32 | | removeStatePersist | Remove an item from Store |
33 | | debugStatePersist | Debug all items on Store |
34 |
35 | ## Basic usage
36 |
37 | ### imports
38 |
39 | ```
40 | import {
41 | useStatePersist,
42 | removeStatePersist,
43 | debugStatePersist,
44 | } from 'react-native-hooks-persist';
45 |
46 | const DB_NAME = 'globalStorage';
47 | const FIELD_KEY = 'selectedColor';
48 | const INITIAL_VALUE = 'Red';
49 | ```
50 |
51 | ### Create
52 |
53 | `const [color, setColor] = useStatePersist(DB_NAME, FIELD_KEY, INITIAL_VALUE);`
54 |
55 | ### Read
56 |
57 | `{color.selectedColor} Selected`
58 |
59 | ### Update
60 |
61 | `setColor(DB_NAME, FIELD_KEY, 'Blue');`
62 |
63 | ### Update with an Object (MultiSet)
64 |
65 | `setValue(DB_NAME, { [FIELD_KEY]: 4, [FIELD_KEY_COLOR]: 'Black' });`
66 |
67 | ### Delete
68 |
69 | `removeStatePersist(DB_NAME, FIELD_KEY);`
70 |
71 | ### Debug all Items
72 |
73 | `debugStatePersist(DB_NAME);`
74 |
75 |
76 |
77 | ## Example in `/demo`
78 |
79 | ### Run in demo folder:
80 |
81 | - `yarn` or `npm install`
82 |
83 | - `react-native start`
84 |
85 | - `react-native run-ios` or `react-native run-android`
86 |
87 |
88 |
89 | ## Contributing
90 |
91 | - Clone this Repo
92 | - Install dependencies
93 | - Checkout develop branch
94 | - Add your feature or fix
95 | - Make sure your improvement works
96 | - Open a pull request
97 |
98 | ---
99 |
100 | Baked with Love ♥ from Cologne & Huelva
101 |
102 | ## Contributors ✨
103 |
104 | Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
105 |
106 |
107 |
108 |
113 |
114 |
115 |
116 | This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
117 |
--------------------------------------------------------------------------------
/demo/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/demo/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 |
16 | ; Ignore polyfills
17 | .*/Libraries/polyfills/.*
18 |
19 | ; Ignore metro
20 | .*/node_modules/metro/.*
21 |
22 | [include]
23 |
24 | [libs]
25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
26 | node_modules/react-native/flow/
27 |
28 | [options]
29 | emoji=true
30 |
31 | esproposal.optional_chaining=enable
32 | esproposal.nullish_coalescing=enable
33 |
34 | module.system=haste
35 | module.system.haste.use_name_reducers=true
36 | # get basename
37 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
38 | # strip .js or .js.flow suffix
39 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
40 | # strip .ios suffix
41 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
42 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
43 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
44 | module.system.haste.paths.blacklist=.*/__tests__/.*
45 | module.system.haste.paths.blacklist=.*/__mocks__/.*
46 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.*
47 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.*
48 |
49 | munge_underscores=true
50 |
51 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
52 |
53 | module.file_ext=.js
54 | module.file_ext=.jsx
55 | module.file_ext=.json
56 | module.file_ext=.native.js
57 |
58 | suppress_type=$FlowIssue
59 | suppress_type=$FlowFixMe
60 | suppress_type=$FlowFixMeProps
61 | suppress_type=$FlowFixMeState
62 |
63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
64 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
65 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
66 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
67 |
68 | [version]
69 | ^0.107.0
70 |
--------------------------------------------------------------------------------
/demo/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/demo/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
--------------------------------------------------------------------------------
/demo/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/demo/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * React-Native Hooks Persist Demo
3 | * by: Rafael Cerrejon
4 | * https://github.com/facebook/react-native
5 | *
6 | * @format
7 | * @flow
8 | */
9 |
10 | import React from 'react';
11 | import { StyleSheet, Text, View, Button } from 'react-native';
12 | import {
13 | useStatePersist,
14 | removeStatePersist,
15 | debugStatePersist,
16 | } from 'react-native-hooks-persist';
17 |
18 | const App = (props: any) => {
19 | const DB_NAME = 'globalStorage';
20 |
21 | const FIELD_KEY = 'buttonSelected';
22 | const INITIAL_VALUE = 'No';
23 |
24 | const [value, setValue] = useStatePersist(DB_NAME, FIELD_KEY, INITIAL_VALUE);
25 |
26 | const FIELD_KEY_COLOR = 'color';
27 |
28 | return (
29 |
30 | Welcome to React Native Hooks Persist!
31 |
32 |
41 |
42 | setValue(DB_NAME, FIELD_KEY_COLOR, 'Red')}
44 | title="Set Red"
45 | />
46 | setValue(DB_NAME, FIELD_KEY_COLOR, 'Green')}
48 | title="Set Green"
49 | />
50 | setValue(DB_NAME, FIELD_KEY_COLOR, 'Blue')}
52 | title="Set Blue"
53 | />
54 | removeStatePersist(DB_NAME, FIELD_KEY_COLOR)}
56 | title="Remove Color"
57 | />
58 | {value.color} Saved
59 |
60 |
61 |
63 | setValue(DB_NAME, { [FIELD_KEY]: 4, [FIELD_KEY_COLOR]: 'Black' })
64 | }
65 | title="Set 4 & Set Black"
66 | />
67 |
68 |
69 | debugStatePersist(DB_NAME)}
71 | title="Debug State Persist"
72 | />
73 |
74 |
75 | );
76 | };
77 |
78 | const styles = StyleSheet.create({
79 | container: {
80 | flex: 1,
81 | justifyContent: 'center',
82 | alignItems: 'center',
83 | backgroundColor: '#FFFFFF',
84 | },
85 | buttonSelectedContainer: {
86 | borderWidth: 1,
87 | borderColor: '#333333',
88 | backgroundColor: '#CCCCCC',
89 | width: '100%',
90 | marginVertical: 5,
91 | },
92 | welcome: {
93 | fontSize: 20,
94 | textAlign: 'center',
95 | margin: 10,
96 | },
97 | textSelected: {
98 | fontWeight: 'bold',
99 | textAlign: 'center',
100 | color: '#333333',
101 | marginVertical: 10,
102 | },
103 | });
104 |
105 | export default App;
106 |
--------------------------------------------------------------------------------
/demo/__tests__/App-test.js:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/demo/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 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.demo",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.demo",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/demo/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/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion rootProject.ext.compileSdkVersion
98 |
99 | compileOptions {
100 | sourceCompatibility JavaVersion.VERSION_1_8
101 | targetCompatibility JavaVersion.VERSION_1_8
102 | }
103 |
104 | defaultConfig {
105 | applicationId "com.demo"
106 | minSdkVersion rootProject.ext.minSdkVersion
107 | targetSdkVersion rootProject.ext.targetSdkVersion
108 | versionCode 1
109 | versionName "1.0"
110 | }
111 | splits {
112 | abi {
113 | reset()
114 | enable enableSeparateBuildPerCPUArchitecture
115 | universalApk false // If true, also generate a universal APK
116 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
117 | }
118 | }
119 | buildTypes {
120 | release {
121 | minifyEnabled enableProguardInReleaseBuilds
122 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
123 | }
124 | }
125 | // applicationVariants are e.g. debug, release
126 | applicationVariants.all { variant ->
127 | variant.outputs.each { output ->
128 | // For each separate APK per architecture, set a unique version code as described here:
129 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
130 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
131 | def abi = output.getFilter(OutputFile.ABI)
132 | if (abi != null) { // null for the universal-debug, universal-release variants
133 | output.versionCodeOverride =
134 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
135 | }
136 | }
137 | }
138 | }
139 |
140 | dependencies {
141 | implementation project(':@react-native-community_async-storage')
142 | implementation fileTree(dir: "libs", include: ["*.jar"])
143 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
144 | implementation "com.facebook.react:react-native:+" // From node_modules
145 | }
146 |
147 | // Run this once to be able to run the application with BUCK
148 | // puts all compile dependencies into folder libs for BUCK to use
149 | task copyDownloadableDepsToLibs(type: Copy) {
150 | from configurations.compile
151 | into 'libs'
152 | }
153 |
--------------------------------------------------------------------------------
/demo/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 |
--------------------------------------------------------------------------------
/demo/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 |
--------------------------------------------------------------------------------
/demo/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/demo/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
13 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/demo/android/app/src/main/java/com/demo/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.demo;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "demo";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/demo/android/app/src/main/java/com/demo/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.demo;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;
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 |
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | public class MainApplication extends Application implements ReactApplication {
16 |
17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
18 | @Override
19 | public boolean getUseDeveloperSupport() {
20 | return BuildConfig.DEBUG;
21 | }
22 |
23 | @Override
24 | protected List getPackages() {
25 | return Arrays.asList(
26 | new MainReactPackage(),
27 | new AsyncStoragePackage()
28 | );
29 | }
30 |
31 | @Override
32 | protected String getJSMainModuleName() {
33 | return "index";
34 | }
35 | };
36 |
37 | @Override
38 | public ReactNativeHost getReactNativeHost() {
39 | return mReactNativeHost;
40 | }
41 |
42 | @Override
43 | public void onCreate() {
44 | super.onCreate();
45 | SoLoader.init(this, /* native exopackage */ false);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | demo
3 |
4 |
--------------------------------------------------------------------------------
/demo/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/demo/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 = 16
7 | compileSdkVersion = 28
8 | targetSdkVersion = 28
9 | supportLibVersion = "28.0.0"
10 | }
11 | repositories {
12 | google()
13 | jcenter()
14 | }
15 | dependencies {
16 | classpath 'com.android.tools.build:gradle:3.3.1'
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 |
--------------------------------------------------------------------------------
/demo/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 |
--------------------------------------------------------------------------------
/demo/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/demo/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.2-all.zip
6 |
--------------------------------------------------------------------------------
/demo/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 |
--------------------------------------------------------------------------------
/demo/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 |
--------------------------------------------------------------------------------
/demo/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/demo/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 |
--------------------------------------------------------------------------------
/demo/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'demo'
2 | include ':@react-native-community_async-storage'
3 | project(':@react-native-community_async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/async-storage/android')
4 |
5 | include ':app'
6 |
--------------------------------------------------------------------------------
/demo/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo",
3 | "displayName": "demo"
4 | }
--------------------------------------------------------------------------------
/demo/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | };
4 |
--------------------------------------------------------------------------------
/demo/images/hook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/images/hook.png
--------------------------------------------------------------------------------
/demo/images/scrsht01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/images/scrsht01.png
--------------------------------------------------------------------------------
/demo/images/scrshtdebug.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rcerrejon/react-native-hooks-persist/c63d7db73596b5f7f43f068a57ecf2a1dd44c808/demo/images/scrshtdebug.png
--------------------------------------------------------------------------------
/demo/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 |
--------------------------------------------------------------------------------
/demo/ios/demo-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/demo/ios/demo-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
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 |
--------------------------------------------------------------------------------
/demo/ios/demo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 | /* Begin PBXBuildFile section */
9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
14 | 00E356F31AD99517003FC87E /* demoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* demoTests.m */; };
15 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; };
30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; };
31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; };
32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; };
33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
35 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
36 | 2DCD954D1E0B4F2C00145EB5 /* demoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* demoTests.m */; };
37 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
39 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
40 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
41 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
42 | 0D3C5130234E477A98BC6FB2 /* libRNCAsyncStorage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F402EA0210F64549AAB53589 /* libRNCAsyncStorage.a */; };
43 | /* End PBXBuildFile section */
44 |
45 | /* Begin PBXContainerItemProxy section */
46 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
47 | isa = PBXContainerItemProxy;
48 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
49 | proxyType = 2;
50 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
51 | remoteInfo = RCTActionSheet;
52 | };
53 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
54 | isa = PBXContainerItemProxy;
55 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
56 | proxyType = 2;
57 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
58 | remoteInfo = RCTGeolocation;
59 | };
60 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
61 | isa = PBXContainerItemProxy;
62 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
63 | proxyType = 2;
64 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
65 | remoteInfo = RCTImage;
66 | };
67 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
68 | isa = PBXContainerItemProxy;
69 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
70 | proxyType = 2;
71 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
72 | remoteInfo = RCTNetwork;
73 | };
74 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
75 | isa = PBXContainerItemProxy;
76 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
77 | proxyType = 2;
78 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
79 | remoteInfo = RCTVibration;
80 | };
81 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
82 | isa = PBXContainerItemProxy;
83 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
84 | proxyType = 1;
85 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
86 | remoteInfo = demo;
87 | };
88 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
89 | isa = PBXContainerItemProxy;
90 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
91 | proxyType = 2;
92 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
93 | remoteInfo = RCTSettings;
94 | };
95 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
96 | isa = PBXContainerItemProxy;
97 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
98 | proxyType = 2;
99 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
100 | remoteInfo = RCTWebSocket;
101 | };
102 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
103 | isa = PBXContainerItemProxy;
104 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
105 | proxyType = 2;
106 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
107 | remoteInfo = React;
108 | };
109 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
110 | isa = PBXContainerItemProxy;
111 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
112 | proxyType = 1;
113 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
114 | remoteInfo = "demo-tvOS";
115 | };
116 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
117 | isa = PBXContainerItemProxy;
118 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
119 | proxyType = 2;
120 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
121 | remoteInfo = "RCTBlob-tvOS";
122 | };
123 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
124 | isa = PBXContainerItemProxy;
125 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
126 | proxyType = 2;
127 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
128 | remoteInfo = fishhook;
129 | };
130 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
131 | isa = PBXContainerItemProxy;
132 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
133 | proxyType = 2;
134 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
135 | remoteInfo = "fishhook-tvOS";
136 | };
137 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = {
138 | isa = PBXContainerItemProxy;
139 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
140 | proxyType = 2;
141 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5;
142 | remoteInfo = jsinspector;
143 | };
144 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = {
145 | isa = PBXContainerItemProxy;
146 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
147 | proxyType = 2;
148 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5;
149 | remoteInfo = "jsinspector-tvOS";
150 | };
151 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = {
152 | isa = PBXContainerItemProxy;
153 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
154 | proxyType = 2;
155 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
156 | remoteInfo = "third-party";
157 | };
158 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = {
159 | isa = PBXContainerItemProxy;
160 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
161 | proxyType = 2;
162 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
163 | remoteInfo = "third-party-tvOS";
164 | };
165 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = {
166 | isa = PBXContainerItemProxy;
167 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
168 | proxyType = 2;
169 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
170 | remoteInfo = "double-conversion";
171 | };
172 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = {
173 | isa = PBXContainerItemProxy;
174 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
175 | proxyType = 2;
176 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
177 | remoteInfo = "double-conversion-tvOS";
178 | };
179 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = {
180 | isa = PBXContainerItemProxy;
181 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
182 | proxyType = 2;
183 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04;
184 | remoteInfo = privatedata;
185 | };
186 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = {
187 | isa = PBXContainerItemProxy;
188 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
189 | proxyType = 2;
190 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04;
191 | remoteInfo = "privatedata-tvOS";
192 | };
193 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
194 | isa = PBXContainerItemProxy;
195 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
196 | proxyType = 2;
197 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
198 | remoteInfo = "RCTImage-tvOS";
199 | };
200 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
201 | isa = PBXContainerItemProxy;
202 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
203 | proxyType = 2;
204 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
205 | remoteInfo = "RCTLinking-tvOS";
206 | };
207 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
208 | isa = PBXContainerItemProxy;
209 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
210 | proxyType = 2;
211 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
212 | remoteInfo = "RCTNetwork-tvOS";
213 | };
214 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
215 | isa = PBXContainerItemProxy;
216 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
217 | proxyType = 2;
218 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
219 | remoteInfo = "RCTSettings-tvOS";
220 | };
221 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
222 | isa = PBXContainerItemProxy;
223 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
224 | proxyType = 2;
225 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
226 | remoteInfo = "RCTText-tvOS";
227 | };
228 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
229 | isa = PBXContainerItemProxy;
230 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
231 | proxyType = 2;
232 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
233 | remoteInfo = "RCTWebSocket-tvOS";
234 | };
235 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
236 | isa = PBXContainerItemProxy;
237 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
238 | proxyType = 2;
239 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
240 | remoteInfo = "React-tvOS";
241 | };
242 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
243 | isa = PBXContainerItemProxy;
244 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
245 | proxyType = 2;
246 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
247 | remoteInfo = yoga;
248 | };
249 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
250 | isa = PBXContainerItemProxy;
251 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
252 | proxyType = 2;
253 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
254 | remoteInfo = "yoga-tvOS";
255 | };
256 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
257 | isa = PBXContainerItemProxy;
258 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
259 | proxyType = 2;
260 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
261 | remoteInfo = cxxreact;
262 | };
263 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
264 | isa = PBXContainerItemProxy;
265 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
266 | proxyType = 2;
267 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
268 | remoteInfo = "cxxreact-tvOS";
269 | };
270 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
271 | isa = PBXContainerItemProxy;
272 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
273 | proxyType = 2;
274 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
275 | remoteInfo = jschelpers;
276 | };
277 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
278 | isa = PBXContainerItemProxy;
279 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
280 | proxyType = 2;
281 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
282 | remoteInfo = "jschelpers-tvOS";
283 | };
284 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
285 | isa = PBXContainerItemProxy;
286 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
287 | proxyType = 2;
288 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
289 | remoteInfo = RCTAnimation;
290 | };
291 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
292 | isa = PBXContainerItemProxy;
293 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
294 | proxyType = 2;
295 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
296 | remoteInfo = "RCTAnimation-tvOS";
297 | };
298 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
299 | isa = PBXContainerItemProxy;
300 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
301 | proxyType = 2;
302 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
303 | remoteInfo = RCTLinking;
304 | };
305 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
306 | isa = PBXContainerItemProxy;
307 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
308 | proxyType = 2;
309 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
310 | remoteInfo = RCTText;
311 | };
312 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
313 | isa = PBXContainerItemProxy;
314 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
315 | proxyType = 2;
316 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
317 | remoteInfo = RCTBlob;
318 | };
319 | /* End PBXContainerItemProxy section */
320 |
321 | /* Begin PBXFileReference section */
322 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
323 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
324 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
325 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
326 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
327 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
328 | 00E356EE1AD99517003FC87E /* demoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = demoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
329 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
330 | 00E356F21AD99517003FC87E /* demoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = demoTests.m; sourceTree = ""; };
331 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
332 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
333 | 13B07F961A680F5B00A75B9A /* demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = demo.app; sourceTree = BUILT_PRODUCTS_DIR; };
334 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = demo/AppDelegate.h; sourceTree = ""; };
335 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = demo/AppDelegate.m; sourceTree = ""; };
336 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
337 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = demo/Images.xcassets; sourceTree = ""; };
338 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = demo/Info.plist; sourceTree = ""; };
339 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = demo/main.m; sourceTree = ""; };
340 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
341 | 2D02E47B1E0B4A5D006451C7 /* demo-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "demo-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
342 | 2D02E4901E0B4A5D006451C7 /* demo-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "demo-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
343 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
344 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
345 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
346 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
347 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
348 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
349 | 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; };
350 | 61FB470438F74C628350DB33 /* RNCAsyncStorage.xcodeproj */ = {isa = PBXFileReference; name = "RNCAsyncStorage.xcodeproj"; path = "../node_modules/@react-native-community/async-storage/ios/RNCAsyncStorage.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
351 | F402EA0210F64549AAB53589 /* libRNCAsyncStorage.a */ = {isa = PBXFileReference; name = "libRNCAsyncStorage.a"; path = "libRNCAsyncStorage.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
352 | /* End PBXFileReference section */
353 |
354 | /* Begin PBXFrameworksBuildPhase section */
355 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
356 | isa = PBXFrameworksBuildPhase;
357 | buildActionMask = 2147483647;
358 | files = (
359 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
360 | );
361 | runOnlyForDeploymentPostprocessing = 0;
362 | };
363 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
364 | isa = PBXFrameworksBuildPhase;
365 | buildActionMask = 2147483647;
366 | files = (
367 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */,
368 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
369 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */,
370 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
371 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
372 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
373 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
374 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
375 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
376 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
377 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
378 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
379 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
380 | 0D3C5130234E477A98BC6FB2 /* libRNCAsyncStorage.a in Frameworks */,
381 | );
382 | runOnlyForDeploymentPostprocessing = 0;
383 | };
384 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
385 | isa = PBXFrameworksBuildPhase;
386 | buildActionMask = 2147483647;
387 | files = (
388 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */,
389 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */,
390 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */,
391 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
392 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
393 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
394 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
395 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
396 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
397 | );
398 | runOnlyForDeploymentPostprocessing = 0;
399 | };
400 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
401 | isa = PBXFrameworksBuildPhase;
402 | buildActionMask = 2147483647;
403 | files = (
404 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */,
405 | );
406 | runOnlyForDeploymentPostprocessing = 0;
407 | };
408 | /* End PBXFrameworksBuildPhase section */
409 |
410 | /* Begin PBXGroup section */
411 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
412 | isa = PBXGroup;
413 | children = (
414 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
415 | );
416 | name = Products;
417 | sourceTree = "";
418 | };
419 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
420 | isa = PBXGroup;
421 | children = (
422 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
423 | );
424 | name = Products;
425 | sourceTree = "";
426 | };
427 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
428 | isa = PBXGroup;
429 | children = (
430 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
431 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
432 | );
433 | name = Products;
434 | sourceTree = "";
435 | };
436 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
437 | isa = PBXGroup;
438 | children = (
439 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
440 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
441 | );
442 | name = Products;
443 | sourceTree = "";
444 | };
445 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
446 | isa = PBXGroup;
447 | children = (
448 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
449 | );
450 | name = Products;
451 | sourceTree = "";
452 | };
453 | 00E356EF1AD99517003FC87E /* demoTests */ = {
454 | isa = PBXGroup;
455 | children = (
456 | 00E356F21AD99517003FC87E /* demoTests.m */,
457 | 00E356F01AD99517003FC87E /* Supporting Files */,
458 | );
459 | path = demoTests;
460 | sourceTree = "";
461 | };
462 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
463 | isa = PBXGroup;
464 | children = (
465 | 00E356F11AD99517003FC87E /* Info.plist */,
466 | );
467 | name = "Supporting Files";
468 | sourceTree = "";
469 | };
470 | 139105B71AF99BAD00B5F7CC /* Products */ = {
471 | isa = PBXGroup;
472 | children = (
473 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
474 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
475 | );
476 | name = Products;
477 | sourceTree = "";
478 | };
479 | 139FDEE71B06529A00C62182 /* Products */ = {
480 | isa = PBXGroup;
481 | children = (
482 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
483 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
484 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */,
485 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */,
486 | );
487 | name = Products;
488 | sourceTree = "";
489 | };
490 | 13B07FAE1A68108700A75B9A /* demo */ = {
491 | isa = PBXGroup;
492 | children = (
493 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
494 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
495 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
496 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
497 | 13B07FB61A68108700A75B9A /* Info.plist */,
498 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
499 | 13B07FB71A68108700A75B9A /* main.m */,
500 | );
501 | name = demo;
502 | sourceTree = "";
503 | };
504 | 146834001AC3E56700842450 /* Products */ = {
505 | isa = PBXGroup;
506 | children = (
507 | 146834041AC3E56700842450 /* libReact.a */,
508 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
509 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
510 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
511 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
512 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
513 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
514 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
515 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */,
516 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */,
517 | 2DF0FFE32056DD460020B375 /* libthird-party.a */,
518 | 2DF0FFE52056DD460020B375 /* libthird-party.a */,
519 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */,
520 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */,
521 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */,
522 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */,
523 | );
524 | name = Products;
525 | sourceTree = "";
526 | };
527 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
528 | isa = PBXGroup;
529 | children = (
530 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
531 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
532 | 2D16E6891FA4F8E400B85C8A /* libReact.a */,
533 | );
534 | name = Frameworks;
535 | sourceTree = "";
536 | };
537 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
538 | isa = PBXGroup;
539 | children = (
540 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
541 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
542 | );
543 | name = Products;
544 | sourceTree = "";
545 | };
546 | 78C398B11ACF4ADC00677621 /* Products */ = {
547 | isa = PBXGroup;
548 | children = (
549 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
550 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
551 | );
552 | name = Products;
553 | sourceTree = "";
554 | };
555 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
556 | isa = PBXGroup;
557 | children = (
558 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
559 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
560 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
561 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
562 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
563 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
564 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
565 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
566 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
567 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
568 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
569 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
570 | 61FB470438F74C628350DB33 /* RNCAsyncStorage.xcodeproj */,
571 | );
572 | name = Libraries;
573 | sourceTree = "";
574 | };
575 | 832341B11AAA6A8300B99B32 /* Products */ = {
576 | isa = PBXGroup;
577 | children = (
578 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
579 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
580 | );
581 | name = Products;
582 | sourceTree = "";
583 | };
584 | 83CBB9F61A601CBA00E9B192 = {
585 | isa = PBXGroup;
586 | children = (
587 | 13B07FAE1A68108700A75B9A /* demo */,
588 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
589 | 00E356EF1AD99517003FC87E /* demoTests */,
590 | 83CBBA001A601CBA00E9B192 /* Products */,
591 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
592 | );
593 | indentWidth = 2;
594 | sourceTree = "";
595 | tabWidth = 2;
596 | usesTabs = 0;
597 | };
598 | 83CBBA001A601CBA00E9B192 /* Products */ = {
599 | isa = PBXGroup;
600 | children = (
601 | 13B07F961A680F5B00A75B9A /* demo.app */,
602 | 00E356EE1AD99517003FC87E /* demoTests.xctest */,
603 | 2D02E47B1E0B4A5D006451C7 /* demo-tvOS.app */,
604 | 2D02E4901E0B4A5D006451C7 /* demo-tvOSTests.xctest */,
605 | );
606 | name = Products;
607 | sourceTree = "";
608 | };
609 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
610 | isa = PBXGroup;
611 | children = (
612 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
613 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */,
614 | );
615 | name = Products;
616 | sourceTree = "";
617 | };
618 | /* End PBXGroup section */
619 |
620 | /* Begin PBXNativeTarget section */
621 | 00E356ED1AD99517003FC87E /* demoTests */ = {
622 | isa = PBXNativeTarget;
623 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "demoTests" */;
624 | buildPhases = (
625 | 00E356EA1AD99517003FC87E /* Sources */,
626 | 00E356EB1AD99517003FC87E /* Frameworks */,
627 | 00E356EC1AD99517003FC87E /* Resources */,
628 | );
629 | buildRules = (
630 | );
631 | dependencies = (
632 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
633 | );
634 | name = demoTests;
635 | productName = demoTests;
636 | productReference = 00E356EE1AD99517003FC87E /* demoTests.xctest */;
637 | productType = "com.apple.product-type.bundle.unit-test";
638 | };
639 | 13B07F861A680F5B00A75B9A /* demo */ = {
640 | isa = PBXNativeTarget;
641 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "demo" */;
642 | buildPhases = (
643 | 13B07F871A680F5B00A75B9A /* Sources */,
644 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
645 | 13B07F8E1A680F5B00A75B9A /* Resources */,
646 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
647 | );
648 | buildRules = (
649 | );
650 | dependencies = (
651 | );
652 | name = demo;
653 | productName = "Hello World";
654 | productReference = 13B07F961A680F5B00A75B9A /* demo.app */;
655 | productType = "com.apple.product-type.application";
656 | };
657 | 2D02E47A1E0B4A5D006451C7 /* demo-tvOS */ = {
658 | isa = PBXNativeTarget;
659 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "demo-tvOS" */;
660 | buildPhases = (
661 | 2D02E4771E0B4A5D006451C7 /* Sources */,
662 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
663 | 2D02E4791E0B4A5D006451C7 /* Resources */,
664 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
665 | );
666 | buildRules = (
667 | );
668 | dependencies = (
669 | );
670 | name = "demo-tvOS";
671 | productName = "demo-tvOS";
672 | productReference = 2D02E47B1E0B4A5D006451C7 /* demo-tvOS.app */;
673 | productType = "com.apple.product-type.application";
674 | };
675 | 2D02E48F1E0B4A5D006451C7 /* demo-tvOSTests */ = {
676 | isa = PBXNativeTarget;
677 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "demo-tvOSTests" */;
678 | buildPhases = (
679 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
680 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
681 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
682 | );
683 | buildRules = (
684 | );
685 | dependencies = (
686 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
687 | );
688 | name = "demo-tvOSTests";
689 | productName = "demo-tvOSTests";
690 | productReference = 2D02E4901E0B4A5D006451C7 /* demo-tvOSTests.xctest */;
691 | productType = "com.apple.product-type.bundle.unit-test";
692 | };
693 | /* End PBXNativeTarget section */
694 |
695 | /* Begin PBXProject section */
696 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
697 | isa = PBXProject;
698 | attributes = {
699 | LastUpgradeCheck = 940;
700 | ORGANIZATIONNAME = Facebook;
701 | TargetAttributes = {
702 | 00E356ED1AD99517003FC87E = {
703 | CreatedOnToolsVersion = 6.2;
704 | TestTargetID = 13B07F861A680F5B00A75B9A;
705 | };
706 | 2D02E47A1E0B4A5D006451C7 = {
707 | CreatedOnToolsVersion = 8.2.1;
708 | ProvisioningStyle = Automatic;
709 | };
710 | 2D02E48F1E0B4A5D006451C7 = {
711 | CreatedOnToolsVersion = 8.2.1;
712 | ProvisioningStyle = Automatic;
713 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
714 | };
715 | };
716 | };
717 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "demo" */;
718 | compatibilityVersion = "Xcode 3.2";
719 | developmentRegion = English;
720 | hasScannedForEncodings = 0;
721 | knownRegions = (
722 | en,
723 | Base,
724 | );
725 | mainGroup = 83CBB9F61A601CBA00E9B192;
726 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
727 | projectDirPath = "";
728 | projectReferences = (
729 | {
730 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
731 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
732 | },
733 | {
734 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
735 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
736 | },
737 | {
738 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
739 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
740 | },
741 | {
742 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
743 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
744 | },
745 | {
746 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
747 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
748 | },
749 | {
750 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
751 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
752 | },
753 | {
754 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
755 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
756 | },
757 | {
758 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
759 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
760 | },
761 | {
762 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
763 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
764 | },
765 | {
766 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
767 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
768 | },
769 | {
770 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
771 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
772 | },
773 | {
774 | ProductGroup = 146834001AC3E56700842450 /* Products */;
775 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
776 | },
777 | );
778 | projectRoot = "";
779 | targets = (
780 | 13B07F861A680F5B00A75B9A /* demo */,
781 | 00E356ED1AD99517003FC87E /* demoTests */,
782 | 2D02E47A1E0B4A5D006451C7 /* demo-tvOS */,
783 | 2D02E48F1E0B4A5D006451C7 /* demo-tvOSTests */,
784 | );
785 | };
786 | /* End PBXProject section */
787 |
788 | /* Begin PBXReferenceProxy section */
789 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
790 | isa = PBXReferenceProxy;
791 | fileType = archive.ar;
792 | path = libRCTActionSheet.a;
793 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
794 | sourceTree = BUILT_PRODUCTS_DIR;
795 | };
796 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
797 | isa = PBXReferenceProxy;
798 | fileType = archive.ar;
799 | path = libRCTGeolocation.a;
800 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
801 | sourceTree = BUILT_PRODUCTS_DIR;
802 | };
803 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
804 | isa = PBXReferenceProxy;
805 | fileType = archive.ar;
806 | path = libRCTImage.a;
807 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
808 | sourceTree = BUILT_PRODUCTS_DIR;
809 | };
810 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
811 | isa = PBXReferenceProxy;
812 | fileType = archive.ar;
813 | path = libRCTNetwork.a;
814 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
815 | sourceTree = BUILT_PRODUCTS_DIR;
816 | };
817 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
818 | isa = PBXReferenceProxy;
819 | fileType = archive.ar;
820 | path = libRCTVibration.a;
821 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
822 | sourceTree = BUILT_PRODUCTS_DIR;
823 | };
824 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
825 | isa = PBXReferenceProxy;
826 | fileType = archive.ar;
827 | path = libRCTSettings.a;
828 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
829 | sourceTree = BUILT_PRODUCTS_DIR;
830 | };
831 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
832 | isa = PBXReferenceProxy;
833 | fileType = archive.ar;
834 | path = libRCTWebSocket.a;
835 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
836 | sourceTree = BUILT_PRODUCTS_DIR;
837 | };
838 | 146834041AC3E56700842450 /* libReact.a */ = {
839 | isa = PBXReferenceProxy;
840 | fileType = archive.ar;
841 | path = libReact.a;
842 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
843 | sourceTree = BUILT_PRODUCTS_DIR;
844 | };
845 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = {
846 | isa = PBXReferenceProxy;
847 | fileType = archive.ar;
848 | path = "libRCTBlob-tvOS.a";
849 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */;
850 | sourceTree = BUILT_PRODUCTS_DIR;
851 | };
852 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = {
853 | isa = PBXReferenceProxy;
854 | fileType = archive.ar;
855 | path = libfishhook.a;
856 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */;
857 | sourceTree = BUILT_PRODUCTS_DIR;
858 | };
859 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = {
860 | isa = PBXReferenceProxy;
861 | fileType = archive.ar;
862 | path = "libfishhook-tvOS.a";
863 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */;
864 | sourceTree = BUILT_PRODUCTS_DIR;
865 | };
866 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = {
867 | isa = PBXReferenceProxy;
868 | fileType = archive.ar;
869 | path = libjsinspector.a;
870 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */;
871 | sourceTree = BUILT_PRODUCTS_DIR;
872 | };
873 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = {
874 | isa = PBXReferenceProxy;
875 | fileType = archive.ar;
876 | path = "libjsinspector-tvOS.a";
877 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */;
878 | sourceTree = BUILT_PRODUCTS_DIR;
879 | };
880 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = {
881 | isa = PBXReferenceProxy;
882 | fileType = archive.ar;
883 | path = "libthird-party.a";
884 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */;
885 | sourceTree = BUILT_PRODUCTS_DIR;
886 | };
887 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = {
888 | isa = PBXReferenceProxy;
889 | fileType = archive.ar;
890 | path = "libthird-party.a";
891 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */;
892 | sourceTree = BUILT_PRODUCTS_DIR;
893 | };
894 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = {
895 | isa = PBXReferenceProxy;
896 | fileType = archive.ar;
897 | path = "libdouble-conversion.a";
898 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */;
899 | sourceTree = BUILT_PRODUCTS_DIR;
900 | };
901 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = {
902 | isa = PBXReferenceProxy;
903 | fileType = archive.ar;
904 | path = "libdouble-conversion.a";
905 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */;
906 | sourceTree = BUILT_PRODUCTS_DIR;
907 | };
908 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = {
909 | isa = PBXReferenceProxy;
910 | fileType = archive.ar;
911 | path = libprivatedata.a;
912 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */;
913 | sourceTree = BUILT_PRODUCTS_DIR;
914 | };
915 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = {
916 | isa = PBXReferenceProxy;
917 | fileType = archive.ar;
918 | path = "libprivatedata-tvOS.a";
919 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */;
920 | sourceTree = BUILT_PRODUCTS_DIR;
921 | };
922 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
923 | isa = PBXReferenceProxy;
924 | fileType = archive.ar;
925 | path = "libRCTImage-tvOS.a";
926 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
927 | sourceTree = BUILT_PRODUCTS_DIR;
928 | };
929 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
930 | isa = PBXReferenceProxy;
931 | fileType = archive.ar;
932 | path = "libRCTLinking-tvOS.a";
933 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
934 | sourceTree = BUILT_PRODUCTS_DIR;
935 | };
936 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
937 | isa = PBXReferenceProxy;
938 | fileType = archive.ar;
939 | path = "libRCTNetwork-tvOS.a";
940 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
941 | sourceTree = BUILT_PRODUCTS_DIR;
942 | };
943 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
944 | isa = PBXReferenceProxy;
945 | fileType = archive.ar;
946 | path = "libRCTSettings-tvOS.a";
947 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
948 | sourceTree = BUILT_PRODUCTS_DIR;
949 | };
950 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
951 | isa = PBXReferenceProxy;
952 | fileType = archive.ar;
953 | path = "libRCTText-tvOS.a";
954 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
955 | sourceTree = BUILT_PRODUCTS_DIR;
956 | };
957 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
958 | isa = PBXReferenceProxy;
959 | fileType = archive.ar;
960 | path = "libRCTWebSocket-tvOS.a";
961 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
962 | sourceTree = BUILT_PRODUCTS_DIR;
963 | };
964 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
965 | isa = PBXReferenceProxy;
966 | fileType = archive.ar;
967 | path = libReact.a;
968 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
969 | sourceTree = BUILT_PRODUCTS_DIR;
970 | };
971 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
972 | isa = PBXReferenceProxy;
973 | fileType = archive.ar;
974 | path = libyoga.a;
975 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
976 | sourceTree = BUILT_PRODUCTS_DIR;
977 | };
978 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
979 | isa = PBXReferenceProxy;
980 | fileType = archive.ar;
981 | path = libyoga.a;
982 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
983 | sourceTree = BUILT_PRODUCTS_DIR;
984 | };
985 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
986 | isa = PBXReferenceProxy;
987 | fileType = archive.ar;
988 | path = libcxxreact.a;
989 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
990 | sourceTree = BUILT_PRODUCTS_DIR;
991 | };
992 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
993 | isa = PBXReferenceProxy;
994 | fileType = archive.ar;
995 | path = libcxxreact.a;
996 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
997 | sourceTree = BUILT_PRODUCTS_DIR;
998 | };
999 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
1000 | isa = PBXReferenceProxy;
1001 | fileType = archive.ar;
1002 | path = libjschelpers.a;
1003 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
1004 | sourceTree = BUILT_PRODUCTS_DIR;
1005 | };
1006 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
1007 | isa = PBXReferenceProxy;
1008 | fileType = archive.ar;
1009 | path = libjschelpers.a;
1010 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
1011 | sourceTree = BUILT_PRODUCTS_DIR;
1012 | };
1013 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1014 | isa = PBXReferenceProxy;
1015 | fileType = archive.ar;
1016 | path = libRCTAnimation.a;
1017 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1018 | sourceTree = BUILT_PRODUCTS_DIR;
1019 | };
1020 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
1021 | isa = PBXReferenceProxy;
1022 | fileType = archive.ar;
1023 | path = libRCTAnimation.a;
1024 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
1025 | sourceTree = BUILT_PRODUCTS_DIR;
1026 | };
1027 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
1028 | isa = PBXReferenceProxy;
1029 | fileType = archive.ar;
1030 | path = libRCTLinking.a;
1031 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
1032 | sourceTree = BUILT_PRODUCTS_DIR;
1033 | };
1034 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
1035 | isa = PBXReferenceProxy;
1036 | fileType = archive.ar;
1037 | path = libRCTText.a;
1038 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
1039 | sourceTree = BUILT_PRODUCTS_DIR;
1040 | };
1041 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
1042 | isa = PBXReferenceProxy;
1043 | fileType = archive.ar;
1044 | path = libRCTBlob.a;
1045 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
1046 | sourceTree = BUILT_PRODUCTS_DIR;
1047 | };
1048 | /* End PBXReferenceProxy section */
1049 |
1050 | /* Begin PBXResourcesBuildPhase section */
1051 | 00E356EC1AD99517003FC87E /* Resources */ = {
1052 | isa = PBXResourcesBuildPhase;
1053 | buildActionMask = 2147483647;
1054 | files = (
1055 | );
1056 | runOnlyForDeploymentPostprocessing = 0;
1057 | };
1058 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
1059 | isa = PBXResourcesBuildPhase;
1060 | buildActionMask = 2147483647;
1061 | files = (
1062 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
1063 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
1064 | );
1065 | runOnlyForDeploymentPostprocessing = 0;
1066 | };
1067 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
1068 | isa = PBXResourcesBuildPhase;
1069 | buildActionMask = 2147483647;
1070 | files = (
1071 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
1072 | );
1073 | runOnlyForDeploymentPostprocessing = 0;
1074 | };
1075 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
1076 | isa = PBXResourcesBuildPhase;
1077 | buildActionMask = 2147483647;
1078 | files = (
1079 | );
1080 | runOnlyForDeploymentPostprocessing = 0;
1081 | };
1082 | /* End PBXResourcesBuildPhase section */
1083 |
1084 | /* Begin PBXShellScriptBuildPhase section */
1085 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
1086 | isa = PBXShellScriptBuildPhase;
1087 | buildActionMask = 2147483647;
1088 | files = (
1089 | );
1090 | inputPaths = (
1091 | );
1092 | name = "Bundle React Native code and images";
1093 | outputPaths = (
1094 | );
1095 | runOnlyForDeploymentPostprocessing = 0;
1096 | shellPath = /bin/sh;
1097 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1098 | };
1099 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
1100 | isa = PBXShellScriptBuildPhase;
1101 | buildActionMask = 2147483647;
1102 | files = (
1103 | );
1104 | inputPaths = (
1105 | );
1106 | name = "Bundle React Native Code And Images";
1107 | outputPaths = (
1108 | );
1109 | runOnlyForDeploymentPostprocessing = 0;
1110 | shellPath = /bin/sh;
1111 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1112 | };
1113 | /* End PBXShellScriptBuildPhase section */
1114 |
1115 | /* Begin PBXSourcesBuildPhase section */
1116 | 00E356EA1AD99517003FC87E /* Sources */ = {
1117 | isa = PBXSourcesBuildPhase;
1118 | buildActionMask = 2147483647;
1119 | files = (
1120 | 00E356F31AD99517003FC87E /* demoTests.m in Sources */,
1121 | );
1122 | runOnlyForDeploymentPostprocessing = 0;
1123 | };
1124 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1125 | isa = PBXSourcesBuildPhase;
1126 | buildActionMask = 2147483647;
1127 | files = (
1128 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1129 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1130 | );
1131 | runOnlyForDeploymentPostprocessing = 0;
1132 | };
1133 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
1134 | isa = PBXSourcesBuildPhase;
1135 | buildActionMask = 2147483647;
1136 | files = (
1137 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
1138 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
1139 | );
1140 | runOnlyForDeploymentPostprocessing = 0;
1141 | };
1142 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
1143 | isa = PBXSourcesBuildPhase;
1144 | buildActionMask = 2147483647;
1145 | files = (
1146 | 2DCD954D1E0B4F2C00145EB5 /* demoTests.m in Sources */,
1147 | );
1148 | runOnlyForDeploymentPostprocessing = 0;
1149 | };
1150 | /* End PBXSourcesBuildPhase section */
1151 |
1152 | /* Begin PBXTargetDependency section */
1153 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
1154 | isa = PBXTargetDependency;
1155 | target = 13B07F861A680F5B00A75B9A /* demo */;
1156 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
1157 | };
1158 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
1159 | isa = PBXTargetDependency;
1160 | target = 2D02E47A1E0B4A5D006451C7 /* demo-tvOS */;
1161 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
1162 | };
1163 | /* End PBXTargetDependency section */
1164 |
1165 | /* Begin PBXVariantGroup section */
1166 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1167 | isa = PBXVariantGroup;
1168 | children = (
1169 | 13B07FB21A68108700A75B9A /* Base */,
1170 | );
1171 | name = LaunchScreen.xib;
1172 | path = demo;
1173 | sourceTree = "";
1174 | };
1175 | /* End PBXVariantGroup section */
1176 |
1177 | /* Begin XCBuildConfiguration section */
1178 | 00E356F61AD99517003FC87E /* Debug */ = {
1179 | isa = XCBuildConfiguration;
1180 | buildSettings = {
1181 | BUNDLE_LOADER = "$(TEST_HOST)";
1182 | GCC_PREPROCESSOR_DEFINITIONS = (
1183 | "DEBUG=1",
1184 | "$(inherited)",
1185 | );
1186 | INFOPLIST_FILE = demoTests/Info.plist;
1187 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1188 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1189 | OTHER_LDFLAGS = (
1190 | "-ObjC",
1191 | "-lc++",
1192 | );
1193 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1194 | PRODUCT_NAME = "$(TARGET_NAME)";
1195 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/demo.app/demo";
1196 | LIBRARY_SEARCH_PATHS = (
1197 | "$(inherited)",
1198 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1199 | );
1200 | HEADER_SEARCH_PATHS = (
1201 | "$(inherited)",
1202 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1203 | );
1204 | };
1205 | name = Debug;
1206 | };
1207 | 00E356F71AD99517003FC87E /* Release */ = {
1208 | isa = XCBuildConfiguration;
1209 | buildSettings = {
1210 | BUNDLE_LOADER = "$(TEST_HOST)";
1211 | COPY_PHASE_STRIP = NO;
1212 | INFOPLIST_FILE = demoTests/Info.plist;
1213 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1214 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1215 | OTHER_LDFLAGS = (
1216 | "-ObjC",
1217 | "-lc++",
1218 | );
1219 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1220 | PRODUCT_NAME = "$(TARGET_NAME)";
1221 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/demo.app/demo";
1222 | LIBRARY_SEARCH_PATHS = (
1223 | "$(inherited)",
1224 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1225 | );
1226 | HEADER_SEARCH_PATHS = (
1227 | "$(inherited)",
1228 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1229 | );
1230 | };
1231 | name = Release;
1232 | };
1233 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1234 | isa = XCBuildConfiguration;
1235 | buildSettings = {
1236 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1237 | CURRENT_PROJECT_VERSION = 1;
1238 | DEAD_CODE_STRIPPING = NO;
1239 | INFOPLIST_FILE = demo/Info.plist;
1240 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1241 | OTHER_LDFLAGS = (
1242 | "$(inherited)",
1243 | "-ObjC",
1244 | "-lc++",
1245 | );
1246 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1247 | PRODUCT_NAME = demo;
1248 | VERSIONING_SYSTEM = "apple-generic";
1249 | HEADER_SEARCH_PATHS = (
1250 | "$(inherited)",
1251 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1252 | );
1253 | };
1254 | name = Debug;
1255 | };
1256 | 13B07F951A680F5B00A75B9A /* Release */ = {
1257 | isa = XCBuildConfiguration;
1258 | buildSettings = {
1259 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1260 | CURRENT_PROJECT_VERSION = 1;
1261 | INFOPLIST_FILE = demo/Info.plist;
1262 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1263 | OTHER_LDFLAGS = (
1264 | "$(inherited)",
1265 | "-ObjC",
1266 | "-lc++",
1267 | );
1268 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
1269 | PRODUCT_NAME = demo;
1270 | VERSIONING_SYSTEM = "apple-generic";
1271 | HEADER_SEARCH_PATHS = (
1272 | "$(inherited)",
1273 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1274 | );
1275 | };
1276 | name = Release;
1277 | };
1278 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1279 | isa = XCBuildConfiguration;
1280 | buildSettings = {
1281 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1282 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1283 | CLANG_ANALYZER_NONNULL = YES;
1284 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1285 | CLANG_WARN_INFINITE_RECURSION = YES;
1286 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1287 | DEBUG_INFORMATION_FORMAT = dwarf;
1288 | ENABLE_TESTABILITY = YES;
1289 | GCC_NO_COMMON_BLOCKS = YES;
1290 | INFOPLIST_FILE = "demo-tvOS/Info.plist";
1291 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1292 | OTHER_LDFLAGS = (
1293 | "-ObjC",
1294 | "-lc++",
1295 | );
1296 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.demo-tvOS";
1297 | PRODUCT_NAME = "$(TARGET_NAME)";
1298 | SDKROOT = appletvos;
1299 | TARGETED_DEVICE_FAMILY = 3;
1300 | TVOS_DEPLOYMENT_TARGET = 9.2;
1301 | LIBRARY_SEARCH_PATHS = (
1302 | "$(inherited)",
1303 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1304 | );
1305 | HEADER_SEARCH_PATHS = (
1306 | "$(inherited)",
1307 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1308 | );
1309 | };
1310 | name = Debug;
1311 | };
1312 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1313 | isa = XCBuildConfiguration;
1314 | buildSettings = {
1315 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1316 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1317 | CLANG_ANALYZER_NONNULL = YES;
1318 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1319 | CLANG_WARN_INFINITE_RECURSION = YES;
1320 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1321 | COPY_PHASE_STRIP = NO;
1322 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1323 | GCC_NO_COMMON_BLOCKS = YES;
1324 | INFOPLIST_FILE = "demo-tvOS/Info.plist";
1325 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1326 | OTHER_LDFLAGS = (
1327 | "-ObjC",
1328 | "-lc++",
1329 | );
1330 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.demo-tvOS";
1331 | PRODUCT_NAME = "$(TARGET_NAME)";
1332 | SDKROOT = appletvos;
1333 | TARGETED_DEVICE_FAMILY = 3;
1334 | TVOS_DEPLOYMENT_TARGET = 9.2;
1335 | LIBRARY_SEARCH_PATHS = (
1336 | "$(inherited)",
1337 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1338 | );
1339 | HEADER_SEARCH_PATHS = (
1340 | "$(inherited)",
1341 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1342 | );
1343 | };
1344 | name = Release;
1345 | };
1346 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
1347 | isa = XCBuildConfiguration;
1348 | buildSettings = {
1349 | BUNDLE_LOADER = "$(TEST_HOST)";
1350 | CLANG_ANALYZER_NONNULL = YES;
1351 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1352 | CLANG_WARN_INFINITE_RECURSION = YES;
1353 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1354 | DEBUG_INFORMATION_FORMAT = dwarf;
1355 | ENABLE_TESTABILITY = YES;
1356 | GCC_NO_COMMON_BLOCKS = YES;
1357 | INFOPLIST_FILE = "demo-tvOSTests/Info.plist";
1358 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1359 | OTHER_LDFLAGS = (
1360 | "-ObjC",
1361 | "-lc++",
1362 | );
1363 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.demo-tvOSTests";
1364 | PRODUCT_NAME = "$(TARGET_NAME)";
1365 | SDKROOT = appletvos;
1366 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/demo-tvOS.app/demo-tvOS";
1367 | TVOS_DEPLOYMENT_TARGET = 10.1;
1368 | LIBRARY_SEARCH_PATHS = (
1369 | "$(inherited)",
1370 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1371 | );
1372 | HEADER_SEARCH_PATHS = (
1373 | "$(inherited)",
1374 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1375 | );
1376 | };
1377 | name = Debug;
1378 | };
1379 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
1380 | isa = XCBuildConfiguration;
1381 | buildSettings = {
1382 | BUNDLE_LOADER = "$(TEST_HOST)";
1383 | CLANG_ANALYZER_NONNULL = YES;
1384 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1385 | CLANG_WARN_INFINITE_RECURSION = YES;
1386 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1387 | COPY_PHASE_STRIP = NO;
1388 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1389 | GCC_NO_COMMON_BLOCKS = YES;
1390 | INFOPLIST_FILE = "demo-tvOSTests/Info.plist";
1391 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1392 | OTHER_LDFLAGS = (
1393 | "-ObjC",
1394 | "-lc++",
1395 | );
1396 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.demo-tvOSTests";
1397 | PRODUCT_NAME = "$(TARGET_NAME)";
1398 | SDKROOT = appletvos;
1399 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/demo-tvOS.app/demo-tvOS";
1400 | TVOS_DEPLOYMENT_TARGET = 10.1;
1401 | LIBRARY_SEARCH_PATHS = (
1402 | "$(inherited)",
1403 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1404 | );
1405 | HEADER_SEARCH_PATHS = (
1406 | "$(inherited)",
1407 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios",
1408 | );
1409 | };
1410 | name = Release;
1411 | };
1412 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1413 | isa = XCBuildConfiguration;
1414 | buildSettings = {
1415 | ALWAYS_SEARCH_USER_PATHS = NO;
1416 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1417 | CLANG_CXX_LIBRARY = "libc++";
1418 | CLANG_ENABLE_MODULES = YES;
1419 | CLANG_ENABLE_OBJC_ARC = YES;
1420 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1421 | CLANG_WARN_BOOL_CONVERSION = YES;
1422 | CLANG_WARN_COMMA = YES;
1423 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1424 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1425 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1426 | CLANG_WARN_EMPTY_BODY = YES;
1427 | CLANG_WARN_ENUM_CONVERSION = YES;
1428 | CLANG_WARN_INFINITE_RECURSION = YES;
1429 | CLANG_WARN_INT_CONVERSION = YES;
1430 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1431 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1432 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1433 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1434 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1435 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1436 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1437 | CLANG_WARN_UNREACHABLE_CODE = YES;
1438 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1439 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1440 | COPY_PHASE_STRIP = NO;
1441 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1442 | ENABLE_TESTABILITY = YES;
1443 | GCC_C_LANGUAGE_STANDARD = gnu99;
1444 | GCC_DYNAMIC_NO_PIC = NO;
1445 | GCC_NO_COMMON_BLOCKS = YES;
1446 | GCC_OPTIMIZATION_LEVEL = 0;
1447 | GCC_PREPROCESSOR_DEFINITIONS = (
1448 | "DEBUG=1",
1449 | "$(inherited)",
1450 | );
1451 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1452 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1453 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1454 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1455 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1456 | GCC_WARN_UNUSED_FUNCTION = YES;
1457 | GCC_WARN_UNUSED_VARIABLE = YES;
1458 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1459 | MTL_ENABLE_DEBUG_INFO = YES;
1460 | ONLY_ACTIVE_ARCH = YES;
1461 | SDKROOT = iphoneos;
1462 | };
1463 | name = Debug;
1464 | };
1465 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1466 | isa = XCBuildConfiguration;
1467 | buildSettings = {
1468 | ALWAYS_SEARCH_USER_PATHS = NO;
1469 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1470 | CLANG_CXX_LIBRARY = "libc++";
1471 | CLANG_ENABLE_MODULES = YES;
1472 | CLANG_ENABLE_OBJC_ARC = YES;
1473 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1474 | CLANG_WARN_BOOL_CONVERSION = YES;
1475 | CLANG_WARN_COMMA = YES;
1476 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1477 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1478 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1479 | CLANG_WARN_EMPTY_BODY = YES;
1480 | CLANG_WARN_ENUM_CONVERSION = YES;
1481 | CLANG_WARN_INFINITE_RECURSION = YES;
1482 | CLANG_WARN_INT_CONVERSION = YES;
1483 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1484 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1485 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1486 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1487 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1488 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1489 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1490 | CLANG_WARN_UNREACHABLE_CODE = YES;
1491 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1492 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1493 | COPY_PHASE_STRIP = YES;
1494 | ENABLE_NS_ASSERTIONS = NO;
1495 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1496 | GCC_C_LANGUAGE_STANDARD = gnu99;
1497 | GCC_NO_COMMON_BLOCKS = YES;
1498 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1499 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1500 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1501 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1502 | GCC_WARN_UNUSED_FUNCTION = YES;
1503 | GCC_WARN_UNUSED_VARIABLE = YES;
1504 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1505 | MTL_ENABLE_DEBUG_INFO = NO;
1506 | SDKROOT = iphoneos;
1507 | VALIDATE_PRODUCT = YES;
1508 | };
1509 | name = Release;
1510 | };
1511 | /* End XCBuildConfiguration section */
1512 |
1513 | /* Begin XCConfigurationList section */
1514 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "demoTests" */ = {
1515 | isa = XCConfigurationList;
1516 | buildConfigurations = (
1517 | 00E356F61AD99517003FC87E /* Debug */,
1518 | 00E356F71AD99517003FC87E /* Release */,
1519 | );
1520 | defaultConfigurationIsVisible = 0;
1521 | defaultConfigurationName = Release;
1522 | };
1523 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "demo" */ = {
1524 | isa = XCConfigurationList;
1525 | buildConfigurations = (
1526 | 13B07F941A680F5B00A75B9A /* Debug */,
1527 | 13B07F951A680F5B00A75B9A /* Release */,
1528 | );
1529 | defaultConfigurationIsVisible = 0;
1530 | defaultConfigurationName = Release;
1531 | };
1532 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "demo-tvOS" */ = {
1533 | isa = XCConfigurationList;
1534 | buildConfigurations = (
1535 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1536 | 2D02E4981E0B4A5E006451C7 /* Release */,
1537 | );
1538 | defaultConfigurationIsVisible = 0;
1539 | defaultConfigurationName = Release;
1540 | };
1541 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "demo-tvOSTests" */ = {
1542 | isa = XCConfigurationList;
1543 | buildConfigurations = (
1544 | 2D02E4991E0B4A5E006451C7 /* Debug */,
1545 | 2D02E49A1E0B4A5E006451C7 /* Release */,
1546 | );
1547 | defaultConfigurationIsVisible = 0;
1548 | defaultConfigurationName = Release;
1549 | };
1550 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "demo" */ = {
1551 | isa = XCConfigurationList;
1552 | buildConfigurations = (
1553 | 83CBBA201A601CBA00E9B192 /* Debug */,
1554 | 83CBBA211A601CBA00E9B192 /* Release */,
1555 | );
1556 | defaultConfigurationIsVisible = 0;
1557 | defaultConfigurationName = Release;
1558 | };
1559 | /* End XCConfigurationList section */
1560 | };
1561 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1562 | }
1563 |
--------------------------------------------------------------------------------
/demo/ios/demo.xcodeproj/xcshareddata/xcschemes/demo-tvOS.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 |
--------------------------------------------------------------------------------
/demo/ios/demo.xcodeproj/xcshareddata/xcschemes/demo.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 |
--------------------------------------------------------------------------------
/demo/ios/demo/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 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (nonatomic, strong) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/demo/ios/demo/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 | #import
13 |
14 | @implementation AppDelegate
15 |
16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
17 | {
18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
20 | moduleName:@"demo"
21 | initialProperties:nil];
22 |
23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
24 |
25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
26 | UIViewController *rootViewController = [UIViewController new];
27 | rootViewController.view = rootView;
28 | self.window.rootViewController = rootViewController;
29 | [self.window makeKeyAndVisible];
30 | return YES;
31 | }
32 |
33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
34 | {
35 | #if DEBUG
36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
37 | #else
38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
39 | #endif
40 | }
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/demo/ios/demo/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 |
--------------------------------------------------------------------------------
/demo/ios/demo/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 | }
--------------------------------------------------------------------------------
/demo/ios/demo/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/demo/ios/demo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | demo
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 |
60 |
61 |
--------------------------------------------------------------------------------
/demo/ios/demo/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 |
--------------------------------------------------------------------------------
/demo/ios/demoTests/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 |
--------------------------------------------------------------------------------
/demo/ios/demoTests/demoTests.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 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define TIMEOUT_SECONDS 600
15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
16 |
17 | @interface demoTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation demoTests
22 |
23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
24 | {
25 | if (test(view)) {
26 | return YES;
27 | }
28 | for (UIView *subview in [view subviews]) {
29 | if ([self findSubviewInView:subview matching:test]) {
30 | return YES;
31 | }
32 | }
33 | return NO;
34 | }
35 |
36 | - (void)testRendersWelcomeScreen
37 | {
38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
40 | BOOL foundElement = NO;
41 |
42 | __block NSString *redboxError = nil;
43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
44 | if (level >= RCTLogLevelError) {
45 | redboxError = message;
46 | }
47 | });
48 |
49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
52 |
53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
55 | return YES;
56 | }
57 | return NO;
58 | }];
59 | }
60 |
61 | RCTSetLogFunction(RCTDefaultLogFunction);
62 |
63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
65 | }
66 |
67 |
68 | @end
69 |
--------------------------------------------------------------------------------
/demo/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: false,
14 | },
15 | }),
16 | },
17 | };
18 |
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo",
3 | "version": "0.0.2",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "@react-native-community/async-storage": "^1.6.2",
11 | "react": "16.8.3",
12 | "react-native": "0.59.5",
13 | "react-native-hooks-persist": "^1.0.0"
14 | },
15 | "devDependencies": {
16 | "@babel/core": "^7.4.4",
17 | "@babel/runtime": "^7.4.4",
18 | "babel-jest": "^24.7.1",
19 | "jest": "^24.7.1",
20 | "metro-react-native-babel-preset": "^0.53.1",
21 | "react-test-renderer": "16.8.3"
22 | },
23 | "jest": {
24 | "preset": "react-native"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/index.d.ts:
--------------------------------------------------------------------------------
1 | type Value = { [fieldKey: string]: T };
2 |
3 | function setStore(dbName: string, fieldKey: string, fieldValue: T): void;
4 |
5 | export function useStatePersist(
6 | dbName: string,
7 | fieldKey: string,
8 | fieldValue: T
9 | ): [Value, setStore];
10 |
11 | export function removeStatePersist(dbName: string, fieldKey: string): void;
12 |
13 | export function debugStatePersist(dbName: string): void;
14 |
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import { useState, useEffect } from 'react';
2 | import AsyncStorage from '@react-native-community/async-storage';
3 |
4 | export function useStatePersist(dbName, fieldKey, fieldValue) {
5 | let isGetStoreSubscribed = true;
6 | function getStore() {
7 | AsyncStorage.getItem(dbName)
8 | .then(item => {
9 | if (!isGetStoreSubscribed) {
10 | return;
11 | }
12 | if (item !== null) {
13 | const parsedItem = JSON.parse(item);
14 | setValue(parsedItem);
15 | } else {
16 | const initObjectToSave = { [fieldKey]: fieldValue };
17 | setStore(dbName, fieldKey, fieldValue);
18 | setValue(initObjectToSave);
19 | }
20 | })
21 | .catch(error => console.log('get Item failed with error: ', error));
22 | }
23 |
24 | let isSetStoreSubscribed = true;
25 | function setStore(db, key, value) {
26 | AsyncStorage.getItem(db)
27 | .then(item => {
28 | const objectCreated = typeof key === 'object' ? key : { [key]: value };
29 | let objToSave = objectCreated;
30 | if (item) {
31 | const parsedItem = JSON.parse(item);
32 | objToSave = { ...parsedItem, ...objectCreated };
33 | }
34 | try {
35 | AsyncStorage.setItem(db, JSON.stringify(objToSave));
36 | if (isSetStoreSubscribed) {
37 | setValue(objToSave);
38 | }
39 | } catch (error) {
40 | console.log('set Item failed with error: ', error);
41 | }
42 | })
43 | .catch(error => console.log('get Item failed with error: ', error));
44 | }
45 |
46 | const [getValue, setValue] = useState(() => {
47 | const initValue = { [fieldKey]: fieldValue };
48 | return initValue;
49 | });
50 |
51 | useEffect(() => {
52 | getStore();
53 | return () => {
54 | isGetStoreSubscribed = false;
55 | isSetStoreSubscribed = false;
56 | };
57 | });
58 |
59 | return [getValue, setStore];
60 | }
61 |
62 | export function removeStatePersist(dbName, fieldKey) {
63 | AsyncStorage.getItem(dbName)
64 | .then(item => {
65 | if (item) {
66 | const parsedItem = JSON.parse(item);
67 | delete parsedItem[fieldKey];
68 | try {
69 | AsyncStorage.setItem(dbName, JSON.stringify(parsedItem));
70 | } catch (error) {
71 | console.log('set Item failed with error: ', error);
72 | }
73 | }
74 | })
75 | .catch(error => console.log('get Item failed with error: ', error));
76 | }
77 |
78 | export function debugStatePersist(dbName) {
79 | AsyncStorage.getItem(dbName)
80 | .then(item => {
81 | if (item) {
82 | console.log('Debug All State Persist: ', JSON.parse(item));
83 | }
84 | })
85 | .catch(error => console.log('get Item failed with error: ', error));
86 | }
87 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-hooks-persist",
3 | "version": "1.0.3",
4 | "description": "React Native Hooks Persist with Async Storage",
5 | "main": "index.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "git+https://github.com/rcerrejon/react-native-hooks-persist.git"
9 | },
10 | "keywords": [
11 | "react-native",
12 | "async-storage",
13 | "hooks"
14 | ],
15 | "author": "Rafael Cerrejon",
16 | "license": "MIT",
17 | "bugs": {
18 | "url": "https://github.com/rcerrejon/react-native-hooks-persist/issues"
19 | },
20 | "homepage": "https://github.com/rcerrejon/react-native-hooks-persist#readme"
21 | }
22 |
--------------------------------------------------------------------------------
/react-native-hooks-persist.podspec:
--------------------------------------------------------------------------------
1 | require 'json'
2 |
3 | package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4 |
5 | Pod::Spec.new do |s|
6 | s.name = package['name']
7 | s.version = package['version']
8 | s.summary = package['description']
9 | s.license = package['license']
10 |
11 | s.authors = package['author']
12 | s.homepage = package['homepage']
13 | s.platform = :ios, "9.0"
14 |
15 | s.source = { :git => "https://github.com/rcerrejon/react-native-hooks-persist.git", :tag => "v#{s.version}" }
16 | s.source_files = "ios/**/*.{h,m}"
17 |
18 | s.dependency 'React'
19 | end
--------------------------------------------------------------------------------