├── LICENSE
├── README.md
├── Samples
└── DragToSortTagsSample.js
├── android
├── app
│ ├── BUCK
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── assets
│ │ └── fonts
│ │ │ ├── Entypo.ttf
│ │ │ ├── EvilIcons.ttf
│ │ │ ├── Feather.ttf
│ │ │ ├── FontAwesome.ttf
│ │ │ ├── Foundation.ttf
│ │ │ ├── Ionicons.ttf
│ │ │ ├── MaterialCommunityIcons.ttf
│ │ │ ├── MaterialIcons.ttf
│ │ │ ├── Octicons.ttf
│ │ │ ├── SimpleLineIcons.ttf
│ │ │ └── Zocial.ttf
│ │ ├── java
│ │ └── com
│ │ │ └── test
│ │ │ ├── MainActivity.java
│ │ │ └── MainApplication.java
│ │ └── res
│ │ ├── mipmap-hdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.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
├── index.js
├── ios
├── Test-tvOS
│ └── Info.plist
├── Test-tvOSTests
│ └── Info.plist
├── Test.xcodeproj
│ └── project.pbxproj
├── Test
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Base.lproj
│ │ └── LaunchScreen.xib
│ ├── Images.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ └── Contents.json
│ │ └── Contents.json
│ ├── Info.plist
│ └── main.m
└── TestTests
│ ├── Info.plist
│ └── TestTests.m
├── lib
├── .gitattributes
├── DragToSortTags.js
├── index.d.ts
├── index.js
└── package.json
├── package.json
├── readme_resources
├── android_demo.gif
└── ios_demo.gif
└── yarn.lock
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 石破天惊
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 |
2 | # react-native-drag-to-sort-tags
3 |
4 | **react-native-drag-to-sort-tags** 是一个可拖动排序的标签组件(iOS & Android),并且在安卓上做了性能优化,滑动的流畅度表现良好。
5 |
6 | ## 功能
7 |
8 | * 拖动标签排序
9 | * 在安卓上更好的性能表现,更流畅的滑动响应
10 | * 较完善的自定义功能
11 | * 支持单击选择以选中标签,标签自动排序
12 | * 支持屏幕旋转
13 | * 支持TypeScript
14 |
15 | ## 预览
16 |
17 | 
18 | 
19 |
20 | ## 接入步骤
21 |
22 | 该项目依赖 [react-native-gesture-handler](https://github.com/kmagiera/react-native-gesture-handler), 在接入本库之前请先阅读[react-native-gesture-handler接入文档](https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html#installation)正确接入react-native-gesture-handler
23 |
24 | 大概步骤就是:
25 | ```$xslt
26 | yarn add react-native-gesture-handler
27 | react-native link react-native-gesture-handler
28 | ```
29 |
30 | 如果不是是用native-navigation或者react-native-navigation则可以直接修改安卓代码
31 |
32 | ```$xslt
33 | package com.swmansion.gesturehandler.react.example;
34 |
35 | import com.facebook.react.ReactActivity;
36 | + import com.facebook.react.ReactActivityDelegate;
37 | + import com.facebook.react.ReactRootView;
38 | + import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
39 |
40 | public class MainActivity extends ReactActivity {
41 |
42 | @Override
43 | protected String getMainComponentName() {
44 | return "Example";
45 | }
46 |
47 | + @Override
48 | + protected ReactActivityDelegate createReactActivityDelegate() {
49 | + return new ReactActivityDelegate(this, getMainComponentName()) {
50 | + @Override
51 | + protected ReactRootView createRootView() {
52 | + return new RNGestureHandlerEnabledRootView(MainActivity.this);
53 | + }
54 | + };
55 | + }
56 | }
57 | ```
58 | iOS则不用修改。
59 |
60 | 如果是使用native-navigation或者react-native-navigation,则需要修改JavaScript代码
61 |
62 | ```$xslt
63 | import { gestureHandlerRootHOC } from 'react-native-gesture-handler'
64 | import { Navigation } from 'react-native-navigation';
65 | import YourScreen from './YourScreen';
66 |
67 | export function registerScreens() {
68 | Navigation.registerComponent('example.FirstTabScreen', () =>
69 | gestureHandlerRootHOC(YourScreen));
70 | }
71 | ```
72 |
73 | 如此,[react-native-gesture-handler](https://github.com/kmagiera/react-native-gesture-handler)就已经安装完成。
74 |
75 | 接下来安装react-native-drag-to-sort-tag:
76 |
77 | `$ npm install react-native-drag-to-sort-tag --save`
78 |
79 | 如果需要长按后的震动反馈功能,安卓需要额外配置:在AndroidManifest.xml中添加下面的代码
80 | ```$xslt
81 |
82 | ```
83 |
84 | ## Usage
85 |
86 | ### 示例:
87 |
88 | ```$xslt
89 | import React from "react";
90 | import { StyleSheet, Text, View } from "react-native";
91 | import { DragToSortTags } from "react-native-drag-to-sort-tags";
92 |
93 | export class DragToSortTagsSample extends React.Component{
94 | render() {
95 | const tags = [];
96 | for (let i = 0; i < 15; ++i) {
97 | tags.push("Tag " + i);
98 | }
99 | return (
100 |
101 |
106 |
107 | );
108 | }
109 |
110 | _renderTag = (tag: string) => {
111 | return (
112 |
113 | {tag}
114 |
115 | );
116 | };
117 | }
118 |
119 | const styles = StyleSheet.create({
120 | container: {
121 | flex: 1,
122 | marginTop:40,
123 | backgroundColor: "white"
124 | },
125 | button: {
126 | width: 100,
127 | height: 50,
128 | backgroundColor: "#F3F3F3",
129 | borderRadius: 5,
130 | justifyContent: "center",
131 | alignItems: "center"
132 | }
133 | });
134 | ```
135 |
136 | ### 属性
137 |
138 | 属性 | 类型 | 默认值 | 作用
139 | ---- | ------ | --------- | --------
140 | tags | string[] | **必须** | 显示的所有标签
141 | renderTag | (tag: string) => React.ReactElement | **必须** | 每个标签的render函数
142 | marginHorizontal | number | 5 | 标签之间的横向间隔
143 | marginVertical | number | 5 | 标签之间的纵向间隔
144 | colorForSelected | Color | 'red' | 标签单击后的选中背景颜色
145 | opacityForDragged | number | 0.6 | 拖拽的标签的不透明度
146 | onTagsSorted | (tags: string[]) => any | ()=>null | 所有标签排序发生变动的时候的回调函数
147 | fixBorderRadiusOnAndroid | boolean | true | 是否启用修正react-native-gesture-handler在安卓上borderRadius单位错误的bug
148 | selectable | boolean | true | 标签是否可以单击选择
149 | onSelectChange | (selectedTags: string[]) => any | ()=>null | 选中标签或其顺序发生变化时的回调
150 | maxCountSelectable | number | 0 | 最大可选择的标签数量(0表示无限制)
151 | vibration | number | 40 | 长按时的震动反馈时长,<=0表示不震动(该功能在安卓上需要配置权限)
152 | initSelectedTags | string[] | [] | 初始化选中的标签
153 | longPressResponseTime | number | 500 | 长按最小响应时长(毫秒)
154 |
155 | ### 方法:
156 |
157 | *getSortedTags(): string[];*
158 |
159 | 获取已经当前所有标签的排序顺序
160 |
161 | *getSelectedTags(): string[];*
162 |
163 | 获取当前选择的标签(已排序)
164 |
165 |
166 | ## 注意事项
167 | * vibration 在安卓上需要配置权限:在AndroidManifest.xml中添加下面的代码
168 | ```$xslt
169 |
170 | ```
171 |
172 | * 有关 renderTag:
173 |
174 | 1. 目前暂时只支持等宽且等高的标签元素。
175 | 2. renderTag返回的顶层元素是没有实际意义的,最终会将其属性全部转化到一个可以支持同时手势的BaseButton上面。
176 | 3. renderTag的顶层元素的样式中,margin系列值均无效,需要设置margin的话,请通过设置DragToSortTags的marginHorizontal和marginVertical属性
177 | 4. renderTag的顶层元素的样式中,transform,ref,onLayout和zIndex属性均是无效的,该属性已经用于制作拖动动画
178 | 5. BaseButton现行版本中存在一个bug:borderRadius在Android上单位错误,所以本库开启了一个修复选项fixBorderRadiusOnAndroid。如果react-native-gesture-handler在未来的版本修复了这个问题,您可以手动关闭这个修复功能。
179 | 6. BaseButton现行版本borderWith无效
180 |
181 |
182 |
--------------------------------------------------------------------------------
/Samples/DragToSortTagsSample.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Created by Stone
4 | * https://github.com/bolan9999
5 | * Email: shanshang130@gmail.com
6 | * Date: 2018/6/9
7 | *
8 | */
9 |
10 | import React from "react";
11 | import { StyleSheet, Text, View } from "react-native";
12 | import { DragToSortTags } from "../lib";
13 |
14 | export class DragToSortTagsSample extends React.Component{
15 | render() {
16 | const tags = [];
17 | for (let i = 0; i < 30; ++i) {
18 | tags.push("Tag " + i);
19 | }
20 | return (
21 |
22 |
27 |
28 | );
29 | }
30 |
31 | _renderTag = (tag: string) => {
32 | return (
33 |
34 | {tag}
35 |
36 | );
37 | };
38 | }
39 |
40 | const styles = StyleSheet.create({
41 | container: {
42 | flex: 1,
43 | marginTop:40,
44 | backgroundColor: "white"
45 | },
46 | button: {
47 | width: 100,
48 | height: 50,
49 | backgroundColor: "#F3F3F3",
50 | borderRadius: 5,
51 | justifyContent: "center",
52 | alignItems: "center"
53 | }
54 | });
55 |
56 |
--------------------------------------------------------------------------------
/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | lib_deps = []
12 |
13 | for jarfile in glob(['libs/*.jar']):
14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
15 | lib_deps.append(':' + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
21 | for aarfile in glob(['libs/*.aar']):
22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
23 | lib_deps.append(':' + name)
24 | android_prebuilt_aar(
25 | name = name,
26 | aar = aarfile,
27 | )
28 |
29 | android_library(
30 | name = "all-libs",
31 | exported_deps = lib_deps,
32 | )
33 |
34 | android_library(
35 | name = "app-code",
36 | srcs = glob([
37 | "src/main/java/**/*.java",
38 | ]),
39 | deps = [
40 | ":all-libs",
41 | ":build_config",
42 | ":res",
43 | ],
44 | )
45 |
46 | android_build_config(
47 | name = "build_config",
48 | package = "com.test",
49 | )
50 |
51 | android_resource(
52 | name = "res",
53 | package = "com.test",
54 | res = "src/main/res",
55 | )
56 |
57 | android_binary(
58 | name = "app",
59 | keystore = "//android/keystores:debug",
60 | manifest = "src/main/AndroidManifest.xml",
61 | package_type = "debug",
62 | deps = [
63 | ":app-code",
64 | ],
65 | )
66 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/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 23
98 | buildToolsVersion '27.0.3'
99 |
100 | defaultConfig {
101 | applicationId "com.test"
102 | minSdkVersion 16
103 | targetSdkVersion 22
104 | versionCode 1
105 | versionName "1.0"
106 | ndk {
107 | abiFilters "armeabi-v7a", "x86"
108 | }
109 | buildConfigField("boolean", "enableLog", "true")
110 | }
111 |
112 | splits {
113 | abi {
114 | reset()
115 | enable enableSeparateBuildPerCPUArchitecture
116 | universalApk false // If true, also generate a universal APK
117 | include "armeabi-v7a", "x86"
118 | }
119 | }
120 | buildTypes {
121 | debug {
122 | minifyEnabled enableProguardInReleaseBuilds
123 | buildConfigField("boolean", "enableLog", "true")
124 | }
125 | release {
126 | minifyEnabled enableProguardInReleaseBuilds
127 | buildConfigField("boolean", "enableLog", "true")
128 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
129 | }
130 | }
131 | // applicationVariants are e.g. debug, release
132 | applicationVariants.all { variant ->
133 | variant.outputs.each { output ->
134 | // For each separate APK per architecture, set a unique version code as described here:
135 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
136 | def versionCodes = ["armeabi-v7a":1, "x86":2]
137 | def abi = output.getFilter(OutputFile.ABI)
138 | if (abi != null) { // null for the universal-debug, universal-release variants
139 | output.versionCodeOverride =
140 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
141 | }
142 | }
143 | }
144 | }
145 |
146 | dependencies {
147 |
148 | compile fileTree(dir: "libs", include: ["*.jar"])
149 | compile "com.android.support:appcompat-v7:23.0.1"
150 | compile "com.facebook.react:react-native:+" // From node_modules
151 | compile project(':react-native-gesture-handler')
152 | // compile project(':react-native-vector-icons')
153 | // compile project(':react-native-directed-scrollview')
154 | // testCompile project(':react-native-directed-scrollview')
155 | // testCompile fileTree(dir: "libs", include: ["*.jar"])
156 | // testCompile "com.android.support:appcompat-v7:23.0.1"
157 | // testCompile "com.facebook.react:react-native:+" // From node_modules
158 | }
159 |
160 | // Run this once to be able to run the application with BUCK
161 | // puts all compile dependencies into folder libs for BUCK to use
162 | task copyDownloadableDepsToLibs(type: Copy) {
163 | from configurations.compile
164 | into 'libs'
165 | }
166 |
--------------------------------------------------------------------------------
/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 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout.
54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details.
55 | -dontwarn android.text.StaticLayout
56 |
57 | # okhttp
58 |
59 | -keepattributes Signature
60 | -keepattributes *Annotation*
61 | -keep class okhttp3.** { *; }
62 | -keep interface okhttp3.** { *; }
63 | -dontwarn okhttp3.**
64 |
65 | # okio
66 |
67 | -keep class sun.misc.Unsafe { *; }
68 | -dontwarn java.nio.file.*
69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
70 | -dontwarn okio.**
71 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
14 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Entypo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/Entypo.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/EvilIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/EvilIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Feather.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/Feather.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/FontAwesome.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/Foundation.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/Ionicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/MaterialIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/MaterialIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/Octicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SimpleLineIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/SimpleLineIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Zocial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/assets/fonts/Zocial.ttf
--------------------------------------------------------------------------------
/android/app/src/main/java/com/test/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.test;
2 |
3 | import com.facebook.react.ReactActivity;
4 | import com.facebook.react.ReactActivityDelegate;
5 | import com.facebook.react.ReactRootView;
6 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
7 |
8 | public class MainActivity extends ReactActivity {
9 |
10 | /**
11 | * Returns the name of the main component registered from JavaScript.
12 | * This is used to schedule rendering of the component.
13 | */
14 | @Override
15 | protected String getMainComponentName() {
16 | return "Test";
17 | }
18 |
19 | @Override
20 | protected ReactActivityDelegate createReactActivityDelegate() {
21 | return new ReactActivityDelegate(this, getMainComponentName()) {
22 | @Override
23 | protected ReactRootView createRootView() {
24 | return new RNGestureHandlerEnabledRootView(MainActivity.this);
25 | }
26 | };
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/test/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.test;
2 |
3 | import android.app.Application;
4 | import android.content.SharedPreferences;
5 | import android.preference.PreferenceManager;
6 |
7 | import com.facebook.react.ReactApplication;
8 | import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
9 | import com.facebook.react.ReactNativeHost;
10 | import com.facebook.react.ReactPackage;
11 | import com.facebook.react.shell.MainReactPackage;
12 | import com.facebook.soloader.SoLoader;
13 |
14 | import java.util.Arrays;
15 | import java.util.List;
16 |
17 | import javax.annotation.Nullable;
18 |
19 | public class MainApplication extends Application implements ReactApplication {
20 |
21 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
22 | @Override
23 | public boolean getUseDeveloperSupport() {
24 | return BuildConfig.DEBUG;
25 | }
26 |
27 | @Override
28 | protected List getPackages() {
29 | return Arrays.asList(
30 | new MainReactPackage(),
31 | new RNGestureHandlerPackage()
32 | );
33 | }
34 |
35 | @Nullable
36 | @Override
37 | protected String getJSBundleFile() {
38 | return "http://192.168.1.59:8081";
39 | }
40 |
41 | @Override
42 | protected String getJSMainModuleName() {
43 | return "index";
44 | }
45 | };
46 |
47 | @Override
48 | public ReactNativeHost getReactNativeHost() {
49 | return mReactNativeHost;
50 | }
51 |
52 | @Override
53 | public void onCreate() {
54 | super.onCreate();
55 | SoLoader.init(this, /* native exopackage */ false);
56 | // if (BuildConfig.DEBUG) {
57 | // SharedPreferences mPreferneces = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
58 | // SharedPreferences.Editor editor = mPreferneces.edit();
59 | // editor.putString("debug_http_host", "192.168.1.59:8081");
60 | // editor.commit();
61 | // }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Test
3 |
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | google()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.1.2'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | mavenLocal()
19 | jcenter()
20 | maven {
21 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
22 | url "$rootDir/../node_modules/react-native/android"
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/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 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat May 12 11:27:24 ICT 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
7 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
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 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/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 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
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 Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'Test'
2 | include ':react-native-gesture-handler'
3 | project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
4 | include ':app'
5 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Test",
3 | "displayName": "Test"
4 | }
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Created by Stone
4 | * https://github.com/bolan9999
5 | * Email: shanshang130@gmail.com
6 | * Date: 2018/6/9
7 | *
8 | */
9 |
10 | import { AppRegistry } from "react-native";
11 | import {DragToSortTagsSample} from "./Samples/DragToSortTagsSample";
12 |
13 | AppRegistry.registerComponent("Test", () => DragToSortTagsSample);
14 |
--------------------------------------------------------------------------------
/ios/Test-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 |
--------------------------------------------------------------------------------
/ios/Test-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 |
--------------------------------------------------------------------------------
/ios/Test.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
22 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
23 | 2653F51E78AA46F0B19F733F /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E61E7ABE78F541FC91A8217D /* MaterialIcons.ttf */; };
24 | 317BEF7A17254D0282FB894B /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = DBB55B320E60473386EE2762 /* FontAwesome.ttf */; };
25 | 49D288E7C3C94B3EB55EF12A /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 64DFD0711B1848F2AA39E9C5 /* SimpleLineIcons.ttf */; };
26 | 57DF46AA88D44ECAAA2DEE12 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B6F1F9A8A5504B15B983D1B4 /* Octicons.ttf */; };
27 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
28 | 702545B5B55B41C48DBFF213 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CEFF0B10BD9F4F50B2D5E39B /* Zocial.ttf */; };
29 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
30 | A8A12D5A05CA4001BFE97185 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E77DCC6E69014AAB90CAA80F /* Ionicons.ttf */; };
31 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
32 | BCF31C90AD6247A19E99E846 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 458EEBD852AA4476A669300D /* Entypo.ttf */; };
33 | C1AEA2596E0D412C914D8CC6 /* libRNGestureHandler.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F8B39FB33FE43ACAB0621E2 /* libRNGestureHandler.a */; };
34 | E747F07F4DAE42869D187917 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 76F5C4A3D3154973ADB63FB7 /* MaterialCommunityIcons.ttf */; };
35 | F9A93330D804413EB9B354D6 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 27F1A9007F9A4D50ACAD79FE /* Feather.ttf */; };
36 | F9B5632E2D6945878F743727 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D0678AAADC9C46CFB0C48F56 /* Foundation.ttf */; };
37 | FC99F14C5F7944B4996BEE35 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 935F2D8B070B4EE88BF05542 /* EvilIcons.ttf */; };
38 | /* End PBXBuildFile section */
39 |
40 | /* Begin PBXContainerItemProxy section */
41 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
42 | isa = PBXContainerItemProxy;
43 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
44 | proxyType = 2;
45 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
46 | remoteInfo = RCTActionSheet;
47 | };
48 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
49 | isa = PBXContainerItemProxy;
50 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
51 | proxyType = 2;
52 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
53 | remoteInfo = RCTGeolocation;
54 | };
55 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
56 | isa = PBXContainerItemProxy;
57 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
58 | proxyType = 2;
59 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
60 | remoteInfo = RCTImage;
61 | };
62 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
63 | isa = PBXContainerItemProxy;
64 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
65 | proxyType = 2;
66 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
67 | remoteInfo = RCTNetwork;
68 | };
69 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
70 | isa = PBXContainerItemProxy;
71 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
72 | proxyType = 2;
73 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
74 | remoteInfo = RCTVibration;
75 | };
76 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
77 | isa = PBXContainerItemProxy;
78 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
79 | proxyType = 2;
80 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
81 | remoteInfo = RCTSettings;
82 | };
83 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
84 | isa = PBXContainerItemProxy;
85 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
86 | proxyType = 2;
87 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
88 | remoteInfo = RCTWebSocket;
89 | };
90 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
91 | isa = PBXContainerItemProxy;
92 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
93 | proxyType = 2;
94 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
95 | remoteInfo = React;
96 | };
97 | 2970ABCE20CA89A700A55DA3 /* PBXContainerItemProxy */ = {
98 | isa = PBXContainerItemProxy;
99 | containerPortal = 9E10B1E471CE47EEBAEC912F /* RNGestureHandler.xcodeproj */;
100 | proxyType = 2;
101 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
102 | remoteInfo = RNGestureHandler;
103 | };
104 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
105 | isa = PBXContainerItemProxy;
106 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
107 | proxyType = 2;
108 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
109 | remoteInfo = "RCTBlob-tvOS";
110 | };
111 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
112 | isa = PBXContainerItemProxy;
113 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
114 | proxyType = 2;
115 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
116 | remoteInfo = fishhook;
117 | };
118 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
119 | isa = PBXContainerItemProxy;
120 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
121 | proxyType = 2;
122 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
123 | remoteInfo = "fishhook-tvOS";
124 | };
125 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = {
126 | isa = PBXContainerItemProxy;
127 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
128 | proxyType = 2;
129 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5;
130 | remoteInfo = jsinspector;
131 | };
132 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = {
133 | isa = PBXContainerItemProxy;
134 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
135 | proxyType = 2;
136 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5;
137 | remoteInfo = "jsinspector-tvOS";
138 | };
139 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = {
140 | isa = PBXContainerItemProxy;
141 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
142 | proxyType = 2;
143 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
144 | remoteInfo = "third-party";
145 | };
146 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = {
147 | isa = PBXContainerItemProxy;
148 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
149 | proxyType = 2;
150 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
151 | remoteInfo = "third-party-tvOS";
152 | };
153 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = {
154 | isa = PBXContainerItemProxy;
155 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
156 | proxyType = 2;
157 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
158 | remoteInfo = "double-conversion";
159 | };
160 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = {
161 | isa = PBXContainerItemProxy;
162 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
163 | proxyType = 2;
164 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
165 | remoteInfo = "double-conversion-tvOS";
166 | };
167 | 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */ = {
168 | isa = PBXContainerItemProxy;
169 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
170 | proxyType = 2;
171 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04;
172 | remoteInfo = privatedata;
173 | };
174 | 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */ = {
175 | isa = PBXContainerItemProxy;
176 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
177 | proxyType = 2;
178 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04;
179 | remoteInfo = "privatedata-tvOS";
180 | };
181 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
182 | isa = PBXContainerItemProxy;
183 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
184 | proxyType = 2;
185 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
186 | remoteInfo = "RCTImage-tvOS";
187 | };
188 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
189 | isa = PBXContainerItemProxy;
190 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
191 | proxyType = 2;
192 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
193 | remoteInfo = "RCTLinking-tvOS";
194 | };
195 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
196 | isa = PBXContainerItemProxy;
197 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
198 | proxyType = 2;
199 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
200 | remoteInfo = "RCTNetwork-tvOS";
201 | };
202 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
203 | isa = PBXContainerItemProxy;
204 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
205 | proxyType = 2;
206 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
207 | remoteInfo = "RCTSettings-tvOS";
208 | };
209 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
210 | isa = PBXContainerItemProxy;
211 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
212 | proxyType = 2;
213 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
214 | remoteInfo = "RCTText-tvOS";
215 | };
216 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
217 | isa = PBXContainerItemProxy;
218 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
219 | proxyType = 2;
220 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
221 | remoteInfo = "RCTWebSocket-tvOS";
222 | };
223 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
224 | isa = PBXContainerItemProxy;
225 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
226 | proxyType = 2;
227 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
228 | remoteInfo = "React-tvOS";
229 | };
230 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
231 | isa = PBXContainerItemProxy;
232 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
233 | proxyType = 2;
234 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
235 | remoteInfo = yoga;
236 | };
237 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
238 | isa = PBXContainerItemProxy;
239 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
240 | proxyType = 2;
241 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
242 | remoteInfo = "yoga-tvOS";
243 | };
244 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
245 | isa = PBXContainerItemProxy;
246 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
247 | proxyType = 2;
248 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
249 | remoteInfo = cxxreact;
250 | };
251 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
252 | isa = PBXContainerItemProxy;
253 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
254 | proxyType = 2;
255 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
256 | remoteInfo = "cxxreact-tvOS";
257 | };
258 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
259 | isa = PBXContainerItemProxy;
260 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
261 | proxyType = 2;
262 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
263 | remoteInfo = jschelpers;
264 | };
265 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
266 | isa = PBXContainerItemProxy;
267 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
268 | proxyType = 2;
269 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
270 | remoteInfo = "jschelpers-tvOS";
271 | };
272 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
273 | isa = PBXContainerItemProxy;
274 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
275 | proxyType = 2;
276 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
277 | remoteInfo = RCTAnimation;
278 | };
279 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
280 | isa = PBXContainerItemProxy;
281 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
282 | proxyType = 2;
283 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
284 | remoteInfo = "RCTAnimation-tvOS";
285 | };
286 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
287 | isa = PBXContainerItemProxy;
288 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
289 | proxyType = 2;
290 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
291 | remoteInfo = RCTLinking;
292 | };
293 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
294 | isa = PBXContainerItemProxy;
295 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
296 | proxyType = 2;
297 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
298 | remoteInfo = RCTText;
299 | };
300 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
301 | isa = PBXContainerItemProxy;
302 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
303 | proxyType = 2;
304 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
305 | remoteInfo = RCTBlob;
306 | };
307 | /* End PBXContainerItemProxy section */
308 |
309 | /* Begin PBXFileReference section */
310 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
311 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
312 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
313 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
314 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
315 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
316 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
317 | 00E356F21AD99517003FC87E /* TestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestTests.m; sourceTree = ""; };
318 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
319 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
320 | 13B07F961A680F5B00A75B9A /* Test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Test.app; sourceTree = BUILT_PRODUCTS_DIR; };
321 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Test/AppDelegate.h; sourceTree = ""; };
322 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Test/AppDelegate.m; sourceTree = ""; };
323 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
324 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Test/Images.xcassets; sourceTree = ""; };
325 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Test/Info.plist; sourceTree = ""; };
326 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Test/main.m; sourceTree = ""; };
327 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
328 | 250E8C46C46A425BBE45945B /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; };
329 | 27F1A9007F9A4D50ACAD79FE /* Feather.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Feather.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = ""; };
330 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
331 | 458EEBD852AA4476A669300D /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; };
332 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
333 | 5F8B39FB33FE43ACAB0621E2 /* libRNGestureHandler.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNGestureHandler.a; sourceTree = ""; };
334 | 64DFD0711B1848F2AA39E9C5 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = SimpleLineIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; };
335 | 718C48056C48401DBBA1A71D /* libRCTDirectedScrollView.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTDirectedScrollView.a; sourceTree = ""; };
336 | 76F5C4A3D3154973ADB63FB7 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialCommunityIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; };
337 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
338 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
339 | 935F2D8B070B4EE88BF05542 /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; };
340 | 9E10B1E471CE47EEBAEC912F /* RNGestureHandler.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNGestureHandler.xcodeproj; path = "../node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj"; sourceTree = ""; };
341 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
342 | B6F1F9A8A5504B15B983D1B4 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; };
343 | CEFF0B10BD9F4F50B2D5E39B /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; };
344 | D0678AAADC9C46CFB0C48F56 /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; };
345 | DBB55B320E60473386EE2762 /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; };
346 | E61E7ABE78F541FC91A8217D /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; };
347 | E77DCC6E69014AAB90CAA80F /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; };
348 | /* End PBXFileReference section */
349 |
350 | /* Begin PBXFrameworksBuildPhase section */
351 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
352 | isa = PBXFrameworksBuildPhase;
353 | buildActionMask = 2147483647;
354 | files = (
355 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
356 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
357 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
358 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
359 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
360 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
361 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
362 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
363 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
364 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
365 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
366 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
367 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
368 | C1AEA2596E0D412C914D8CC6 /* libRNGestureHandler.a in Frameworks */,
369 | );
370 | runOnlyForDeploymentPostprocessing = 0;
371 | };
372 | /* End PBXFrameworksBuildPhase section */
373 |
374 | /* Begin PBXGroup section */
375 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
376 | isa = PBXGroup;
377 | children = (
378 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
379 | );
380 | name = Products;
381 | sourceTree = "";
382 | };
383 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
384 | isa = PBXGroup;
385 | children = (
386 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
387 | );
388 | name = Products;
389 | sourceTree = "";
390 | };
391 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
392 | isa = PBXGroup;
393 | children = (
394 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
395 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
396 | );
397 | name = Products;
398 | sourceTree = "";
399 | };
400 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
401 | isa = PBXGroup;
402 | children = (
403 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
404 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
405 | );
406 | name = Products;
407 | sourceTree = "";
408 | };
409 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
410 | isa = PBXGroup;
411 | children = (
412 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
413 | );
414 | name = Products;
415 | sourceTree = "";
416 | };
417 | 00E356EF1AD99517003FC87E /* TestTests */ = {
418 | isa = PBXGroup;
419 | children = (
420 | 00E356F21AD99517003FC87E /* TestTests.m */,
421 | 00E356F01AD99517003FC87E /* Supporting Files */,
422 | );
423 | path = TestTests;
424 | sourceTree = "";
425 | };
426 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
427 | isa = PBXGroup;
428 | children = (
429 | 00E356F11AD99517003FC87E /* Info.plist */,
430 | );
431 | name = "Supporting Files";
432 | sourceTree = "";
433 | };
434 | 139105B71AF99BAD00B5F7CC /* Products */ = {
435 | isa = PBXGroup;
436 | children = (
437 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
438 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
439 | );
440 | name = Products;
441 | sourceTree = "";
442 | };
443 | 139FDEE71B06529A00C62182 /* Products */ = {
444 | isa = PBXGroup;
445 | children = (
446 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
447 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
448 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */,
449 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */,
450 | );
451 | name = Products;
452 | sourceTree = "";
453 | };
454 | 13B07FAE1A68108700A75B9A /* Test */ = {
455 | isa = PBXGroup;
456 | children = (
457 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
458 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
459 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
460 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
461 | 13B07FB61A68108700A75B9A /* Info.plist */,
462 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
463 | 13B07FB71A68108700A75B9A /* main.m */,
464 | );
465 | name = Test;
466 | sourceTree = "";
467 | };
468 | 146834001AC3E56700842450 /* Products */ = {
469 | isa = PBXGroup;
470 | children = (
471 | 146834041AC3E56700842450 /* libReact.a */,
472 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
473 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
474 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
475 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
476 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
477 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
478 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
479 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */,
480 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */,
481 | 2DF0FFE32056DD460020B375 /* libthird-party.a */,
482 | 2DF0FFE52056DD460020B375 /* libthird-party.a */,
483 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */,
484 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */,
485 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */,
486 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */,
487 | );
488 | name = Products;
489 | sourceTree = "";
490 | };
491 | 2970ABCB20CA89A700A55DA3 /* Products */ = {
492 | isa = PBXGroup;
493 | children = (
494 | 2970ABCF20CA89A700A55DA3 /* libRNGestureHandler.a */,
495 | );
496 | name = Products;
497 | sourceTree = "";
498 | };
499 | 2979CEC620A6C93C0042D21E /* Recovered References */ = {
500 | isa = PBXGroup;
501 | children = (
502 | 718C48056C48401DBBA1A71D /* libRCTDirectedScrollView.a */,
503 | 250E8C46C46A425BBE45945B /* libRNVectorIcons.a */,
504 | 5F8B39FB33FE43ACAB0621E2 /* libRNGestureHandler.a */,
505 | );
506 | name = "Recovered References";
507 | sourceTree = "";
508 | };
509 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
510 | isa = PBXGroup;
511 | children = (
512 | 2D16E6891FA4F8E400B85C8A /* libReact.a */,
513 | );
514 | name = Frameworks;
515 | sourceTree = "";
516 | };
517 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
518 | isa = PBXGroup;
519 | children = (
520 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
521 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
522 | );
523 | name = Products;
524 | sourceTree = "";
525 | };
526 | 78C398B11ACF4ADC00677621 /* Products */ = {
527 | isa = PBXGroup;
528 | children = (
529 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
530 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
531 | );
532 | name = Products;
533 | sourceTree = "";
534 | };
535 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
536 | isa = PBXGroup;
537 | children = (
538 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
539 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
540 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
541 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
542 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
543 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
544 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
545 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
546 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
547 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
548 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
549 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
550 | 9E10B1E471CE47EEBAEC912F /* RNGestureHandler.xcodeproj */,
551 | );
552 | name = Libraries;
553 | sourceTree = "";
554 | };
555 | 832341B11AAA6A8300B99B32 /* Products */ = {
556 | isa = PBXGroup;
557 | children = (
558 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
559 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
560 | );
561 | name = Products;
562 | sourceTree = "";
563 | };
564 | 83CBB9F61A601CBA00E9B192 = {
565 | isa = PBXGroup;
566 | children = (
567 | 13B07FAE1A68108700A75B9A /* Test */,
568 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
569 | 00E356EF1AD99517003FC87E /* TestTests */,
570 | 83CBBA001A601CBA00E9B192 /* Products */,
571 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
572 | 2979CEC620A6C93C0042D21E /* Recovered References */,
573 | 9E2782E0F5484736A11FACFE /* Resources */,
574 | );
575 | indentWidth = 2;
576 | sourceTree = "";
577 | tabWidth = 2;
578 | usesTabs = 0;
579 | };
580 | 83CBBA001A601CBA00E9B192 /* Products */ = {
581 | isa = PBXGroup;
582 | children = (
583 | 13B07F961A680F5B00A75B9A /* Test.app */,
584 | );
585 | name = Products;
586 | sourceTree = "";
587 | };
588 | 9E2782E0F5484736A11FACFE /* Resources */ = {
589 | isa = PBXGroup;
590 | children = (
591 | 458EEBD852AA4476A669300D /* Entypo.ttf */,
592 | 935F2D8B070B4EE88BF05542 /* EvilIcons.ttf */,
593 | 27F1A9007F9A4D50ACAD79FE /* Feather.ttf */,
594 | DBB55B320E60473386EE2762 /* FontAwesome.ttf */,
595 | D0678AAADC9C46CFB0C48F56 /* Foundation.ttf */,
596 | E77DCC6E69014AAB90CAA80F /* Ionicons.ttf */,
597 | 76F5C4A3D3154973ADB63FB7 /* MaterialCommunityIcons.ttf */,
598 | E61E7ABE78F541FC91A8217D /* MaterialIcons.ttf */,
599 | B6F1F9A8A5504B15B983D1B4 /* Octicons.ttf */,
600 | 64DFD0711B1848F2AA39E9C5 /* SimpleLineIcons.ttf */,
601 | CEFF0B10BD9F4F50B2D5E39B /* Zocial.ttf */,
602 | );
603 | name = Resources;
604 | sourceTree = "";
605 | };
606 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
607 | isa = PBXGroup;
608 | children = (
609 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
610 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */,
611 | );
612 | name = Products;
613 | sourceTree = "";
614 | };
615 | /* End PBXGroup section */
616 |
617 | /* Begin PBXNativeTarget section */
618 | 13B07F861A680F5B00A75B9A /* Test */ = {
619 | isa = PBXNativeTarget;
620 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Test" */;
621 | buildPhases = (
622 | 13B07F871A680F5B00A75B9A /* Sources */,
623 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
624 | 13B07F8E1A680F5B00A75B9A /* Resources */,
625 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
626 | );
627 | buildRules = (
628 | );
629 | dependencies = (
630 | );
631 | name = Test;
632 | productName = "Hello World";
633 | productReference = 13B07F961A680F5B00A75B9A /* Test.app */;
634 | productType = "com.apple.product-type.application";
635 | };
636 | /* End PBXNativeTarget section */
637 |
638 | /* Begin PBXProject section */
639 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
640 | isa = PBXProject;
641 | attributes = {
642 | LastUpgradeCheck = 610;
643 | ORGANIZATIONNAME = Facebook;
644 | TargetAttributes = {
645 | 13B07F861A680F5B00A75B9A = {
646 | ProvisioningStyle = Automatic;
647 | };
648 | };
649 | };
650 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Test" */;
651 | compatibilityVersion = "Xcode 3.2";
652 | developmentRegion = English;
653 | hasScannedForEncodings = 0;
654 | knownRegions = (
655 | en,
656 | Base,
657 | );
658 | mainGroup = 83CBB9F61A601CBA00E9B192;
659 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
660 | projectDirPath = "";
661 | projectReferences = (
662 | {
663 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
664 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
665 | },
666 | {
667 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
668 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
669 | },
670 | {
671 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
672 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
673 | },
674 | {
675 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
676 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
677 | },
678 | {
679 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
680 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
681 | },
682 | {
683 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
684 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
685 | },
686 | {
687 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
688 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
689 | },
690 | {
691 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
692 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
693 | },
694 | {
695 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
696 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
697 | },
698 | {
699 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
700 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
701 | },
702 | {
703 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
704 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
705 | },
706 | {
707 | ProductGroup = 146834001AC3E56700842450 /* Products */;
708 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
709 | },
710 | {
711 | ProductGroup = 2970ABCB20CA89A700A55DA3 /* Products */;
712 | ProjectRef = 9E10B1E471CE47EEBAEC912F /* RNGestureHandler.xcodeproj */;
713 | },
714 | );
715 | projectRoot = "";
716 | targets = (
717 | 13B07F861A680F5B00A75B9A /* Test */,
718 | );
719 | };
720 | /* End PBXProject section */
721 |
722 | /* Begin PBXReferenceProxy section */
723 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
724 | isa = PBXReferenceProxy;
725 | fileType = archive.ar;
726 | path = libRCTActionSheet.a;
727 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
728 | sourceTree = BUILT_PRODUCTS_DIR;
729 | };
730 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
731 | isa = PBXReferenceProxy;
732 | fileType = archive.ar;
733 | path = libRCTGeolocation.a;
734 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
735 | sourceTree = BUILT_PRODUCTS_DIR;
736 | };
737 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
738 | isa = PBXReferenceProxy;
739 | fileType = archive.ar;
740 | path = libRCTImage.a;
741 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
742 | sourceTree = BUILT_PRODUCTS_DIR;
743 | };
744 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
745 | isa = PBXReferenceProxy;
746 | fileType = archive.ar;
747 | path = libRCTNetwork.a;
748 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
749 | sourceTree = BUILT_PRODUCTS_DIR;
750 | };
751 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
752 | isa = PBXReferenceProxy;
753 | fileType = archive.ar;
754 | path = libRCTVibration.a;
755 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
756 | sourceTree = BUILT_PRODUCTS_DIR;
757 | };
758 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
759 | isa = PBXReferenceProxy;
760 | fileType = archive.ar;
761 | path = libRCTSettings.a;
762 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
763 | sourceTree = BUILT_PRODUCTS_DIR;
764 | };
765 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
766 | isa = PBXReferenceProxy;
767 | fileType = archive.ar;
768 | path = libRCTWebSocket.a;
769 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
770 | sourceTree = BUILT_PRODUCTS_DIR;
771 | };
772 | 146834041AC3E56700842450 /* libReact.a */ = {
773 | isa = PBXReferenceProxy;
774 | fileType = archive.ar;
775 | path = libReact.a;
776 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
777 | sourceTree = BUILT_PRODUCTS_DIR;
778 | };
779 | 2970ABCF20CA89A700A55DA3 /* libRNGestureHandler.a */ = {
780 | isa = PBXReferenceProxy;
781 | fileType = archive.ar;
782 | path = libRNGestureHandler.a;
783 | remoteRef = 2970ABCE20CA89A700A55DA3 /* PBXContainerItemProxy */;
784 | sourceTree = BUILT_PRODUCTS_DIR;
785 | };
786 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = {
787 | isa = PBXReferenceProxy;
788 | fileType = archive.ar;
789 | path = "libRCTBlob-tvOS.a";
790 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */;
791 | sourceTree = BUILT_PRODUCTS_DIR;
792 | };
793 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = {
794 | isa = PBXReferenceProxy;
795 | fileType = archive.ar;
796 | path = libfishhook.a;
797 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */;
798 | sourceTree = BUILT_PRODUCTS_DIR;
799 | };
800 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = {
801 | isa = PBXReferenceProxy;
802 | fileType = archive.ar;
803 | path = "libfishhook-tvOS.a";
804 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */;
805 | sourceTree = BUILT_PRODUCTS_DIR;
806 | };
807 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = {
808 | isa = PBXReferenceProxy;
809 | fileType = archive.ar;
810 | path = libjsinspector.a;
811 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */;
812 | sourceTree = BUILT_PRODUCTS_DIR;
813 | };
814 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = {
815 | isa = PBXReferenceProxy;
816 | fileType = archive.ar;
817 | path = "libjsinspector-tvOS.a";
818 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */;
819 | sourceTree = BUILT_PRODUCTS_DIR;
820 | };
821 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = {
822 | isa = PBXReferenceProxy;
823 | fileType = archive.ar;
824 | path = "libthird-party.a";
825 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */;
826 | sourceTree = BUILT_PRODUCTS_DIR;
827 | };
828 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = {
829 | isa = PBXReferenceProxy;
830 | fileType = archive.ar;
831 | path = "libthird-party.a";
832 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */;
833 | sourceTree = BUILT_PRODUCTS_DIR;
834 | };
835 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = {
836 | isa = PBXReferenceProxy;
837 | fileType = archive.ar;
838 | path = "libdouble-conversion.a";
839 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */;
840 | sourceTree = BUILT_PRODUCTS_DIR;
841 | };
842 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = {
843 | isa = PBXReferenceProxy;
844 | fileType = archive.ar;
845 | path = "libdouble-conversion.a";
846 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */;
847 | sourceTree = BUILT_PRODUCTS_DIR;
848 | };
849 | 2DF0FFEB2056DD460020B375 /* libprivatedata.a */ = {
850 | isa = PBXReferenceProxy;
851 | fileType = archive.ar;
852 | path = libprivatedata.a;
853 | remoteRef = 2DF0FFEA2056DD460020B375 /* PBXContainerItemProxy */;
854 | sourceTree = BUILT_PRODUCTS_DIR;
855 | };
856 | 2DF0FFED2056DD460020B375 /* libprivatedata-tvOS.a */ = {
857 | isa = PBXReferenceProxy;
858 | fileType = archive.ar;
859 | path = "libprivatedata-tvOS.a";
860 | remoteRef = 2DF0FFEC2056DD460020B375 /* PBXContainerItemProxy */;
861 | sourceTree = BUILT_PRODUCTS_DIR;
862 | };
863 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
864 | isa = PBXReferenceProxy;
865 | fileType = archive.ar;
866 | path = "libRCTImage-tvOS.a";
867 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
868 | sourceTree = BUILT_PRODUCTS_DIR;
869 | };
870 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
871 | isa = PBXReferenceProxy;
872 | fileType = archive.ar;
873 | path = "libRCTLinking-tvOS.a";
874 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
875 | sourceTree = BUILT_PRODUCTS_DIR;
876 | };
877 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
878 | isa = PBXReferenceProxy;
879 | fileType = archive.ar;
880 | path = "libRCTNetwork-tvOS.a";
881 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
882 | sourceTree = BUILT_PRODUCTS_DIR;
883 | };
884 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
885 | isa = PBXReferenceProxy;
886 | fileType = archive.ar;
887 | path = "libRCTSettings-tvOS.a";
888 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
889 | sourceTree = BUILT_PRODUCTS_DIR;
890 | };
891 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
892 | isa = PBXReferenceProxy;
893 | fileType = archive.ar;
894 | path = "libRCTText-tvOS.a";
895 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
896 | sourceTree = BUILT_PRODUCTS_DIR;
897 | };
898 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
899 | isa = PBXReferenceProxy;
900 | fileType = archive.ar;
901 | path = "libRCTWebSocket-tvOS.a";
902 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
903 | sourceTree = BUILT_PRODUCTS_DIR;
904 | };
905 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
906 | isa = PBXReferenceProxy;
907 | fileType = archive.ar;
908 | path = libReact.a;
909 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
910 | sourceTree = BUILT_PRODUCTS_DIR;
911 | };
912 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
913 | isa = PBXReferenceProxy;
914 | fileType = archive.ar;
915 | path = libyoga.a;
916 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
917 | sourceTree = BUILT_PRODUCTS_DIR;
918 | };
919 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
920 | isa = PBXReferenceProxy;
921 | fileType = archive.ar;
922 | path = libyoga.a;
923 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
924 | sourceTree = BUILT_PRODUCTS_DIR;
925 | };
926 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
927 | isa = PBXReferenceProxy;
928 | fileType = archive.ar;
929 | path = libcxxreact.a;
930 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
931 | sourceTree = BUILT_PRODUCTS_DIR;
932 | };
933 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
934 | isa = PBXReferenceProxy;
935 | fileType = archive.ar;
936 | path = libcxxreact.a;
937 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
938 | sourceTree = BUILT_PRODUCTS_DIR;
939 | };
940 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
941 | isa = PBXReferenceProxy;
942 | fileType = archive.ar;
943 | path = libjschelpers.a;
944 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
945 | sourceTree = BUILT_PRODUCTS_DIR;
946 | };
947 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
948 | isa = PBXReferenceProxy;
949 | fileType = archive.ar;
950 | path = libjschelpers.a;
951 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
952 | sourceTree = BUILT_PRODUCTS_DIR;
953 | };
954 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
955 | isa = PBXReferenceProxy;
956 | fileType = archive.ar;
957 | path = libRCTAnimation.a;
958 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
959 | sourceTree = BUILT_PRODUCTS_DIR;
960 | };
961 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
962 | isa = PBXReferenceProxy;
963 | fileType = archive.ar;
964 | path = libRCTAnimation.a;
965 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
966 | sourceTree = BUILT_PRODUCTS_DIR;
967 | };
968 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
969 | isa = PBXReferenceProxy;
970 | fileType = archive.ar;
971 | path = libRCTLinking.a;
972 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
973 | sourceTree = BUILT_PRODUCTS_DIR;
974 | };
975 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
976 | isa = PBXReferenceProxy;
977 | fileType = archive.ar;
978 | path = libRCTText.a;
979 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
980 | sourceTree = BUILT_PRODUCTS_DIR;
981 | };
982 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
983 | isa = PBXReferenceProxy;
984 | fileType = archive.ar;
985 | path = libRCTBlob.a;
986 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
987 | sourceTree = BUILT_PRODUCTS_DIR;
988 | };
989 | /* End PBXReferenceProxy section */
990 |
991 | /* Begin PBXResourcesBuildPhase section */
992 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
993 | isa = PBXResourcesBuildPhase;
994 | buildActionMask = 2147483647;
995 | files = (
996 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
997 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
998 | BCF31C90AD6247A19E99E846 /* Entypo.ttf in Resources */,
999 | FC99F14C5F7944B4996BEE35 /* EvilIcons.ttf in Resources */,
1000 | F9A93330D804413EB9B354D6 /* Feather.ttf in Resources */,
1001 | 317BEF7A17254D0282FB894B /* FontAwesome.ttf in Resources */,
1002 | F9B5632E2D6945878F743727 /* Foundation.ttf in Resources */,
1003 | A8A12D5A05CA4001BFE97185 /* Ionicons.ttf in Resources */,
1004 | E747F07F4DAE42869D187917 /* MaterialCommunityIcons.ttf in Resources */,
1005 | 2653F51E78AA46F0B19F733F /* MaterialIcons.ttf in Resources */,
1006 | 57DF46AA88D44ECAAA2DEE12 /* Octicons.ttf in Resources */,
1007 | 49D288E7C3C94B3EB55EF12A /* SimpleLineIcons.ttf in Resources */,
1008 | 702545B5B55B41C48DBFF213 /* Zocial.ttf in Resources */,
1009 | );
1010 | runOnlyForDeploymentPostprocessing = 0;
1011 | };
1012 | /* End PBXResourcesBuildPhase section */
1013 |
1014 | /* Begin PBXShellScriptBuildPhase section */
1015 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
1016 | isa = PBXShellScriptBuildPhase;
1017 | buildActionMask = 2147483647;
1018 | files = (
1019 | );
1020 | inputPaths = (
1021 | );
1022 | name = "Bundle React Native code and images";
1023 | outputPaths = (
1024 | );
1025 | runOnlyForDeploymentPostprocessing = 0;
1026 | shellPath = /bin/sh;
1027 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1028 | };
1029 | /* End PBXShellScriptBuildPhase section */
1030 |
1031 | /* Begin PBXSourcesBuildPhase section */
1032 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1033 | isa = PBXSourcesBuildPhase;
1034 | buildActionMask = 2147483647;
1035 | files = (
1036 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1037 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1038 | );
1039 | runOnlyForDeploymentPostprocessing = 0;
1040 | };
1041 | /* End PBXSourcesBuildPhase section */
1042 |
1043 | /* Begin PBXVariantGroup section */
1044 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1045 | isa = PBXVariantGroup;
1046 | children = (
1047 | 13B07FB21A68108700A75B9A /* Base */,
1048 | );
1049 | name = LaunchScreen.xib;
1050 | path = Test;
1051 | sourceTree = "";
1052 | };
1053 | /* End PBXVariantGroup section */
1054 |
1055 | /* Begin XCBuildConfiguration section */
1056 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1057 | isa = XCBuildConfiguration;
1058 | buildSettings = {
1059 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1060 | CODE_SIGN_IDENTITY = "iPhone Developer";
1061 | CODE_SIGN_STYLE = Automatic;
1062 | CURRENT_PROJECT_VERSION = 1;
1063 | DEAD_CODE_STRIPPING = NO;
1064 | DEVELOPMENT_TEAM = "";
1065 | HEADER_SEARCH_PATHS = (
1066 | "$(inherited)",
1067 | "$(SRCROOT)/../node_modules/react-native-directed-scrollview/ios/RCTDirectedScrollView",
1068 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
1069 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**",
1070 | );
1071 | INFOPLIST_FILE = Test/Info.plist;
1072 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1073 | LIBRARY_SEARCH_PATHS = (
1074 | "$(inherited)",
1075 | "\"$(SRCROOT)/Test\"",
1076 | );
1077 | OTHER_LDFLAGS = (
1078 | "$(inherited)",
1079 | "-ObjC",
1080 | "-lc++",
1081 | );
1082 | PRODUCT_NAME = Test;
1083 | PROVISIONING_PROFILE_SPECIFIER = "";
1084 | VERSIONING_SYSTEM = "apple-generic";
1085 | };
1086 | name = Debug;
1087 | };
1088 | 13B07F951A680F5B00A75B9A /* Release */ = {
1089 | isa = XCBuildConfiguration;
1090 | buildSettings = {
1091 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1092 | CODE_SIGN_IDENTITY = "iPhone Developer";
1093 | CODE_SIGN_STYLE = Automatic;
1094 | CURRENT_PROJECT_VERSION = 1;
1095 | DEVELOPMENT_TEAM = "";
1096 | HEADER_SEARCH_PATHS = (
1097 | "$(inherited)",
1098 | "$(SRCROOT)/../node_modules/react-native-directed-scrollview/ios/RCTDirectedScrollView",
1099 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
1100 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**",
1101 | );
1102 | INFOPLIST_FILE = Test/Info.plist;
1103 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1104 | LIBRARY_SEARCH_PATHS = (
1105 | "$(inherited)",
1106 | "\"$(SRCROOT)/Test\"",
1107 | );
1108 | OTHER_LDFLAGS = (
1109 | "$(inherited)",
1110 | "-ObjC",
1111 | "-lc++",
1112 | );
1113 | PRODUCT_NAME = Test;
1114 | PROVISIONING_PROFILE_SPECIFIER = "";
1115 | VERSIONING_SYSTEM = "apple-generic";
1116 | };
1117 | name = Release;
1118 | };
1119 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1120 | isa = XCBuildConfiguration;
1121 | buildSettings = {
1122 | ALWAYS_SEARCH_USER_PATHS = NO;
1123 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1124 | CLANG_CXX_LIBRARY = "libc++";
1125 | CLANG_ENABLE_MODULES = YES;
1126 | CLANG_ENABLE_OBJC_ARC = YES;
1127 | CLANG_WARN_BOOL_CONVERSION = YES;
1128 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1129 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1130 | CLANG_WARN_EMPTY_BODY = YES;
1131 | CLANG_WARN_ENUM_CONVERSION = YES;
1132 | CLANG_WARN_INT_CONVERSION = YES;
1133 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1134 | CLANG_WARN_UNREACHABLE_CODE = YES;
1135 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1136 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1137 | COPY_PHASE_STRIP = NO;
1138 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1139 | GCC_C_LANGUAGE_STANDARD = gnu99;
1140 | GCC_DYNAMIC_NO_PIC = NO;
1141 | GCC_OPTIMIZATION_LEVEL = 0;
1142 | GCC_PREPROCESSOR_DEFINITIONS = (
1143 | "DEBUG=1",
1144 | "$(inherited)",
1145 | );
1146 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1147 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1148 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1149 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1150 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1151 | GCC_WARN_UNUSED_FUNCTION = YES;
1152 | GCC_WARN_UNUSED_VARIABLE = YES;
1153 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1154 | MTL_ENABLE_DEBUG_INFO = YES;
1155 | ONLY_ACTIVE_ARCH = YES;
1156 | SDKROOT = iphoneos;
1157 | };
1158 | name = Debug;
1159 | };
1160 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1161 | isa = XCBuildConfiguration;
1162 | buildSettings = {
1163 | ALWAYS_SEARCH_USER_PATHS = NO;
1164 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1165 | CLANG_CXX_LIBRARY = "libc++";
1166 | CLANG_ENABLE_MODULES = YES;
1167 | CLANG_ENABLE_OBJC_ARC = YES;
1168 | CLANG_WARN_BOOL_CONVERSION = YES;
1169 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1170 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1171 | CLANG_WARN_EMPTY_BODY = YES;
1172 | CLANG_WARN_ENUM_CONVERSION = YES;
1173 | CLANG_WARN_INT_CONVERSION = YES;
1174 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1175 | CLANG_WARN_UNREACHABLE_CODE = YES;
1176 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1177 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1178 | COPY_PHASE_STRIP = YES;
1179 | ENABLE_NS_ASSERTIONS = NO;
1180 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1181 | GCC_C_LANGUAGE_STANDARD = gnu99;
1182 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1183 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1184 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1185 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1186 | GCC_WARN_UNUSED_FUNCTION = YES;
1187 | GCC_WARN_UNUSED_VARIABLE = YES;
1188 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1189 | MTL_ENABLE_DEBUG_INFO = NO;
1190 | SDKROOT = iphoneos;
1191 | VALIDATE_PRODUCT = YES;
1192 | };
1193 | name = Release;
1194 | };
1195 | /* End XCBuildConfiguration section */
1196 |
1197 | /* Begin XCConfigurationList section */
1198 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Test" */ = {
1199 | isa = XCConfigurationList;
1200 | buildConfigurations = (
1201 | 13B07F941A680F5B00A75B9A /* Debug */,
1202 | 13B07F951A680F5B00A75B9A /* Release */,
1203 | );
1204 | defaultConfigurationIsVisible = 0;
1205 | defaultConfigurationName = Release;
1206 | };
1207 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Test" */ = {
1208 | isa = XCConfigurationList;
1209 | buildConfigurations = (
1210 | 83CBBA201A601CBA00E9B192 /* Debug */,
1211 | 83CBBA211A601CBA00E9B192 /* Release */,
1212 | );
1213 | defaultConfigurationIsVisible = 0;
1214 | defaultConfigurationName = Release;
1215 | };
1216 | /* End XCConfigurationList section */
1217 | };
1218 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1219 | }
1220 |
--------------------------------------------------------------------------------
/ios/Test/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
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 | @interface AppDelegate : UIResponder
11 |
12 | @property (nonatomic, strong) UIWindow *window;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/ios/Test/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 |
10 | #import
11 | #import
12 |
13 | @implementation AppDelegate
14 |
15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
16 | {
17 | NSURL *jsCodeLocation;
18 |
19 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
20 |
21 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
22 | moduleName:@"Test"
23 | initialProperties:nil
24 | launchOptions:launchOptions];
25 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
26 |
27 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
28 | UIViewController *rootViewController = [UIViewController new];
29 | rootViewController.view = rootView;
30 | self.window.rootViewController = rootViewController;
31 | [self.window makeKeyAndVisible];
32 | return YES;
33 | }
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/ios/Test/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ios/Test/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/ios/Test/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/ios/Test/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | Test
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
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 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UIViewControllerBasedStatusBarAppearance
40 |
41 | NSLocationWhenInUseUsageDescription
42 |
43 | NSAppTransportSecurity
44 |
45 | NSExceptionDomains
46 |
47 | localhost
48 |
49 | NSExceptionAllowsInsecureHTTPLoads
50 |
51 |
52 |
53 |
54 | UIAppFonts
55 |
56 | Entypo.ttf
57 | EvilIcons.ttf
58 | Feather.ttf
59 | FontAwesome.ttf
60 | Foundation.ttf
61 | Ionicons.ttf
62 | MaterialCommunityIcons.ttf
63 | MaterialIcons.ttf
64 | Octicons.ttf
65 | SimpleLineIcons.ttf
66 | Zocial.ttf
67 |
68 |
69 |
70 |
--------------------------------------------------------------------------------
/ios/Test/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
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 |
--------------------------------------------------------------------------------
/ios/TestTests/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 |
--------------------------------------------------------------------------------
/ios/TestTests/TestTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
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 TestTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation TestTests
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 |
--------------------------------------------------------------------------------
/lib/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
--------------------------------------------------------------------------------
/lib/DragToSortTags.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Created by Stone
4 | * https://github.com/bolan9999
5 | * Email: shanshang130@gmail.com
6 | * Date: 2018/6/10
7 | *
8 | */
9 |
10 | import React from "react";
11 | import {
12 | StyleSheet,
13 | Animated,
14 | Vibration,
15 | Platform,
16 | ViewPropTypes,
17 | PixelRatio
18 | } from "react-native";
19 |
20 | import {
21 | GestureHandlerGestureEvent,
22 | LongPressGestureHandler,
23 | PanGestureHandler,
24 | PanGestureHandlerStateChangeEvent,
25 | State,
26 | BaseButton
27 | } from "react-native-gesture-handler";
28 |
29 | const Button = Animated.createAnimatedComponent(BaseButton);
30 |
31 | interface Frame {
32 | x: number;
33 | y: number;
34 | width: number;
35 | height: number;
36 | }
37 |
38 | interface Transform {
39 | x: Animated.Value;
40 | y: Animated.Value;
41 | }
42 |
43 | export class DragToSortTags extends React.Component {
44 | _offsetX = new Animated.Value(0);
45 | _offsetY = new Animated.Value(0);
46 | _frame: Frame;
47 | _tagFrames: Frame[] = [];
48 | _tagTransform: Transform[];
49 | _event;
50 | _panRef = React.createRef();
51 | _longPressRef: [];
52 | _tagRefs: [] = [];
53 | _exchangeIndex = -1;
54 | _animatations;
55 | _lastTick: number;
56 | _tags: string[];
57 | _selectedTags: string[];
58 |
59 | getSortedTags(): string[] {
60 | return this._tags;
61 | }
62 |
63 | getSelectedTags(): string[] {
64 | return this._selectedTags;
65 | }
66 |
67 | constructor(props: PropType) {
68 | super(props);
69 | this._selectedTags = [...props.initSelectedTags];
70 | this.state = { draggedIndex: -1 };
71 | this.componentWillReceiveProps(props);
72 | this._event = Animated.event(
73 | [
74 | {
75 | nativeEvent: {
76 | translationX: this._offsetX,
77 | translationY: this._offsetY
78 | }
79 | }
80 | ],
81 | {
82 | useNativeDriver: true,
83 | listener: this._panListener
84 | }
85 | );
86 | }
87 |
88 | static defaultProps = {
89 | tags: [],
90 | marginHorizontal: 5,
91 | marginVertical: 5,
92 | renderTag: () => null,
93 | colorForSelected: "red",
94 | opacityForDragged: 0.6,
95 | onTagsSorted: () => null,
96 | fixBorderRadiusOnAndroid: true,
97 | selectable: true,
98 | onSelectChange: () => null,
99 | maxCountSelectable: 0,
100 | vibration: 40,
101 | initSelectedTags: [],
102 | longPressResponseTime: 500
103 | };
104 |
105 | componentWillReceiveProps(next: PropType) {
106 | if (next.tags !== this.props.tags || !this._longPressRef) {
107 | this._longPressRef = [];
108 | this._tagTransform = [];
109 | this._tags = [...next.tags];
110 | next.tags.forEach((tag, index) => {
111 | this._longPressRef[index] = React.createRef();
112 | this._tagTransform[index] = {
113 | x: new Animated.Value(0),
114 | y: new Animated.Value(0)
115 | };
116 | });
117 | }
118 | }
119 |
120 | render() {
121 | const container = StyleSheet.flatten([this.props.style, styles.container]);
122 | return (
123 |
129 |
130 | {this._tags.map(this._renderTags)}
131 |
132 |
133 | );
134 | }
135 |
136 | _renderTags = (tag: string, index: number) => {
137 | const tagElement = this.props.renderTag(tag);
138 | if (!tagElement) return null;
139 | const {
140 | fixBorderRadiusOnAndroid,
141 | colorForSelected,
142 | opacityForDragged,
143 | marginHorizontal,
144 | marginVertical,
145 | longPressResponseTime
146 | } = this.props;
147 | const oldStyle = StyleSheet.flatten(tagElement.props.style);
148 | const dragged = this.state.draggedIndex === index;
149 | let borderRadius = oldStyle ? oldStyle.borderRadius : null;
150 | if (
151 | Platform.OS === "android" &&
152 | fixBorderRadiusOnAndroid &&
153 | borderRadius > 0
154 | ) {
155 | borderRadius = borderRadius * PixelRatio.get();
156 | }
157 | let backgroundColor = oldStyle ? oldStyle.backgroundColor : null;
158 | if (colorForSelected && this._selectedTags.indexOf(tag) >= 0) {
159 | backgroundColor = colorForSelected;
160 | }
161 | let opacity = oldStyle ? oldStyle.opacity : null;
162 | if (opacityForDragged && dragged) {
163 | opacity = opacityForDragged;
164 | }
165 | const style = {
166 | ...oldStyle,
167 | marginHorizontal: marginHorizontal,
168 | marginVertical: marginVertical,
169 | backgroundColor: backgroundColor,
170 | borderRadius: borderRadius,
171 | opacity: opacity,
172 | zIndex: dragged ? 99999999 : null,
173 | transform: [
174 | {
175 | translateX: dragged ? this._offsetX : this._tagTransform[index].x
176 | },
177 | {
178 | translateY: dragged ? this._offsetY : this._tagTransform[index].y
179 | }
180 | ]
181 | };
182 | return (
183 | this._handleLongPress(e, index)}
189 | >
190 |
200 | );
201 | };
202 |
203 | _onPanStateChange = (e: PanGestureHandlerStateChangeEvent) => {
204 | switch (e.nativeEvent.state) {
205 | case State.END:
206 | case State.CANCELLED:
207 | case State.FAILED:
208 | if (this._exchangeIndex === -1)
209 | return this._clearAllTransformAndUpdate();
210 | const x =
211 | this._tagFrames[this._exchangeIndex].x -
212 | this._tagFrames[this.state.draggedIndex].x;
213 | const y =
214 | this._tagFrames[this._exchangeIndex].y -
215 | this._tagFrames[this.state.draggedIndex].y;
216 | Animated.parallel([
217 | Animated.timing(this._offsetX, {
218 | toValue: x,
219 | duration: 100,
220 | useNativeDriver: true
221 | }),
222 | Animated.timing(this._offsetY, {
223 | toValue: y,
224 | duration: 100,
225 | useNativeDriver: true
226 | })
227 | ]).start(this._clearAllTransformAndUpdate);
228 | }
229 | };
230 |
231 | _handleLongPress = (e: GestureHandlerGestureEvent, index: number) => {
232 | const { vibration } = this.props;
233 | switch (e.nativeEvent.state) {
234 | case State.ACTIVE:
235 | if (vibration > 0) Vibration.vibrate(vibration, false);
236 | this.setState({ draggedIndex: index });
237 | break;
238 | }
239 | };
240 |
241 | _clearAllTransformAndUpdate = () => {
242 | this._offsetX.setValue(0);
243 | this._offsetY.setValue(0);
244 | this._tagTransform.forEach((tran: Transform) => {
245 | tran.x.setValue(0);
246 | tran.y.setValue(0);
247 | });
248 | const { draggedIndex } = this.state;
249 | if (
250 | draggedIndex !== -1 &&
251 | this._exchangeIndex !== -1 &&
252 | draggedIndex !== this._exchangeIndex
253 | ) {
254 | const tag = this._tags[draggedIndex];
255 | this._tags.splice(draggedIndex, 1);
256 | this._tags.splice(this._exchangeIndex, 0, tag);
257 | this.props.onTagsSorted(this._tags);
258 | this._autoSortSelectedTags();
259 | }
260 | this.setState({ draggedIndex: -1 });
261 | this._exchangeIndex = -1;
262 | };
263 |
264 | _panListener = (e: { nativeEvent: { x: number, y: number } }) => {
265 | const draggedIndex = this.state.draggedIndex;
266 | if (draggedIndex === -1) return;
267 | const gesture = e.nativeEvent;
268 | this._tagFrames.every((frame, index) => {
269 | const frames = this._tagFrames[index];
270 | if (
271 | gesture.x > frames.x &&
272 | gesture.x < frames.x + frames.width &&
273 | gesture.y > frames.y &&
274 | gesture.y < frames.y + frames.height
275 | ) {
276 | this._exchangeToIndex(draggedIndex, index);
277 | return false;
278 | }
279 | return true;
280 | });
281 | };
282 |
283 | _exchangeToIndex(draggedIndex: number, toIndex: number) {
284 | const now = new Date().getTime();
285 | const { marginHorizontal, marginVertical } = this.props;
286 | if (Platform.OS === "android" && now - this._lastTick < 50) {
287 | return;
288 | }
289 | this._lastTick = now;
290 | if (this._exchangeIndex !== toIndex) {
291 | if (this._animatations) {
292 | this._animatations.stop();
293 | }
294 | this._exchangeIndex = toIndex;
295 | const realFrames: (Frame & { offsetX?: number, offsetY?: number })[] = [];
296 | this._tagFrames.forEach(
297 | (frame, index) => (realFrames[index] = { ...frame })
298 | );
299 | realFrames[draggedIndex].width = -marginHorizontal * 2;
300 | realFrames.forEach((frame, index) => {
301 | if (index > draggedIndex) {
302 | realFrames[index].x =
303 | realFrames[index - 1].x +
304 | realFrames[index - 1].width +
305 | 2 * marginHorizontal;
306 | realFrames[index].y = realFrames[index - 1].y;
307 | if (
308 | realFrames[index].x + realFrames[index].width + marginHorizontal >
309 | this._frame.width
310 | ) {
311 | realFrames[index].x = marginHorizontal;
312 | realFrames[index].y =
313 | realFrames[index - 1].y +
314 | realFrames[index - 1].height +
315 | marginVertical * 2;
316 | }
317 | }
318 | });
319 | realFrames.forEach((frame, index) => {
320 | if (
321 | (draggedIndex > toIndex && index >= toIndex) ||
322 | (draggedIndex <= toIndex && index > toIndex)
323 | ) {
324 | realFrames[index].x +=
325 | this._tagFrames[draggedIndex].width + 2 * marginHorizontal;
326 | if (
327 | realFrames[index].x + realFrames[index].width + marginHorizontal >
328 | this._frame.width
329 | ) {
330 | realFrames[index].x = marginHorizontal;
331 | realFrames[index].y +=
332 | realFrames[index].height + marginVertical * 2;
333 | }
334 | }
335 | });
336 | realFrames.forEach((frame, index) => {
337 | realFrames[index].offsetX =
338 | realFrames[index].x - this._tagFrames[index].x;
339 | realFrames[index].offsetY =
340 | realFrames[index].y - this._tagFrames[index].y;
341 | });
342 | const animatations = realFrames
343 | .map((frame, index) =>
344 | Animated.timing(this._tagTransform[index].x, {
345 | toValue: frame.offsetX,
346 | duration: 100,
347 | useNativeDriver: true
348 | })
349 | )
350 | .concat(
351 | realFrames.map((frame, index) =>
352 | Animated.timing(this._tagTransform[index].y, {
353 | toValue: frame.offsetY,
354 | duration: 100,
355 | useNativeDriver: true
356 | })
357 | )
358 | );
359 | this._animatations = Animated.parallel(animatations);
360 | this._animatations.start();
361 | }
362 | }
363 |
364 | _onContainerLayout = (e: { nativeEvent: { layout: Frame } }) => {
365 | this._frame = Object.assign({}, e.nativeEvent.layout);
366 | };
367 |
368 | _onPress(index: number) {
369 | if (!this.props.selectable) return;
370 | const tag = this._tags[index];
371 | const indexOf = this._selectedTags.indexOf(tag);
372 | if (
373 | indexOf < 0 &&
374 | this.props.maxCountSelectable > 0 &&
375 | this._selectedTags.length >= this.props.maxCountSelectable
376 | )
377 | return;
378 |
379 | if (indexOf < 0) {
380 | this._selectedTags.push(tag);
381 | this.forceUpdate();
382 | if(!this._autoSortSelectedTags()){
383 | this.props.onSelectChange(this._selectedTags);
384 | }
385 | } else {
386 | this._selectedTags.splice(indexOf, 1);
387 | this.forceUpdate();
388 | this.props.onSelectChange(this._selectedTags);
389 | }
390 |
391 | }
392 |
393 | _autoSortSelectedTags() {
394 | const sortedTags = [];
395 | this._tags.forEach(tag => {
396 | if (this._selectedTags.indexOf(tag) >= 0) sortedTags.push(tag);
397 | });
398 | if (!this._selectedTags.every((tag, index) => sortedTags[index] === tag)) {
399 | this._selectedTags = sortedTags;
400 | this.props.onSelectChange(this._selectedTags);
401 | return true;
402 | }
403 | return false;
404 | }
405 | }
406 |
407 | const styles = StyleSheet.create({
408 | container: {
409 | flexDirection: "row",
410 | flexWrap: "wrap"
411 | }
412 | });
413 |
414 | interface PropType extends ViewPropTypes {
415 | tags: string[];
416 | marginHorizontal?: number;
417 | marginVertical?: number;
418 | renderTag: (tag: string) => React.Element;
419 | colorForSelected?: string;
420 | opacityForDragged?: number;
421 | onTagsSorted?: (tags: string[]) => any;
422 | fixBorderRadiusOnAndroid?: boolean;
423 | selectable?: boolean;
424 | onSelectChange?: (selectedTags: string[]) => any;
425 | maxCountSelectable?: number;
426 | vibration?: number;
427 | initSelectedTags?: string[];
428 | longPressResponseTime?: number;
429 | }
430 |
431 | interface StateType {
432 | draggedIndex: number;
433 | }
434 |
--------------------------------------------------------------------------------
/lib/index.d.ts:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Created by Stone
4 | * https://github.com/bolan9999
5 | * Email: shanshang130@gmail.com
6 | * Date: 2018/6/20
7 | *
8 | */
9 |
10 | declare module "react-native-drag-to-sort-tags" {
11 | import { View, ViewProps } from "react-native";
12 | interface PropType extends ViewProps {
13 | tags: string[];
14 | marginHorizontal?: number;
15 | marginVertical?: number;
16 | renderTag: (tag: string) => React.ReactElement;
17 | colorForSelected?: string;
18 | opacityForDragged?: number;
19 | onTagsSorted?: (tags: string[]) => any;
20 | fixBorderRadiusOnAndroid?: boolean;
21 | selectable?: boolean;
22 | onSelectChange?: (selectedTags: string[]) => any;
23 | maxCountSelectable?: number;
24 | vibration?: number;
25 | initSelectedTags?: string[];
26 | longPressResponseTime?: number;
27 | }
28 |
29 | export class DragToSortTags extends React.Component {
30 | getSortedTags(): string[];
31 |
32 | getSelectedTags(): string[];
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Author: Shi(bolan0000@icloud.com)
3 | * Date: 2018/6/8
4 | * Copyright (c) 2018, AoTang, Inc.
5 | *
6 | * Description:
7 | */
8 |
9 | export * from "./DragToSortTags";
10 |
--------------------------------------------------------------------------------
/lib/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-drag-to-sort-tags",
3 | "version": "0.0.1",
4 | "description": "A smoothly drag to sort tags component for react-native. (iOS & Android)",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "keywords": [
10 | "react-native",
11 | "tag",
12 | "sortable",
13 | "sortable tags",
14 | "drag to sort tags"
15 | ],
16 | "author": "bolan9999 ",
17 | "license": "MIT",
18 | "peerDependencies": {
19 | "react-native": "^0.41.2",
20 | "react-native-gesture-handler": "^1.0.4",
21 | "react-native-windows": "0.41.0-rc.1"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Test",
3 | "version": "0.0.1",
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": "16.3.1",
11 | "react-native": "0.55.4",
12 | "react-native-gesture-handler": "^1.0.4"
13 | },
14 | "devDependencies": {
15 | "babel-jest": "22.4.3",
16 | "babel-preset-react-native": "4.0.0",
17 | "jest": "22.4.3",
18 | "react-test-renderer": "16.3.1"
19 | },
20 | "jest": {
21 | "preset": "react-native"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/readme_resources/android_demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/readme_resources/android_demo.gif
--------------------------------------------------------------------------------
/readme_resources/ios_demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bolan9999/react-native-drag-to-sort-tags/215d40b032681c42a12e8f74c9cd4f6339919aa9/readme_resources/ios_demo.gif
--------------------------------------------------------------------------------