├── android
├── .gitignore
├── src
│ ├── main
│ │ ├── res
│ │ │ └── values
│ │ │ │ └── strings.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ │ └── com
│ │ │ └── harishn28
│ │ │ └── reactnativesignview
│ │ │ ├── SignViewCallbacks.java
│ │ │ ├── ReactNativeSignatureViewPackage.java
│ │ │ ├── SignViewModule.java
│ │ │ ├── SignViewManager.java
│ │ │ └── SignatureView.java
│ ├── test
│ │ └── java
│ │ │ └── com
│ │ │ └── harishn28
│ │ │ └── reactnativesignview
│ │ │ └── ExampleUnitTest.java
│ └── androidTest
│ │ └── java
│ │ └── com
│ │ └── harishn28
│ │ └── reactnativesignview
│ │ └── ExampleInstrumentedTest.java
├── build.gradle
└── proguard-rules.pro
├── example
└── sample
│ ├── .gitattributes
│ ├── app.json
│ ├── babel.config.js
│ ├── android
│ ├── app
│ │ ├── src
│ │ │ └── main
│ │ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ └── mipmap-xxxhdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── sample
│ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ └── MainApplication.java
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build_defs.bzl
│ │ ├── proguard-rules.pro
│ │ ├── BUCK
│ │ └── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── keystores
│ │ ├── debug.keystore.properties
│ │ └── BUCK
│ ├── settings.gradle
│ ├── gradle.properties
│ ├── build.gradle
│ ├── gradlew.bat
│ └── gradlew
│ ├── ios
│ ├── sample
│ │ ├── Images.xcassets
│ │ │ ├── Contents.json
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.h
│ │ ├── main.m
│ │ ├── AppDelegate.m
│ │ ├── Info.plist
│ │ └── Base.lproj
│ │ │ └── LaunchScreen.xib
│ ├── sample-tvOSTests
│ │ └── Info.plist
│ ├── sample-tvOS
│ │ └── Info.plist
│ └── sample.xcodeproj
│ │ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── sample.xcscheme
│ │ │ └── sample-tvOS.xcscheme
│ │ └── project.pbxproj
│ ├── .buckconfig
│ ├── index.js
│ ├── __tests__
│ └── App.js
│ ├── package.json
│ ├── rn-cli.config.js
│ ├── .gitignore
│ ├── App.js
│ └── .flowconfig
├── src
├── index.js
└── SignatureView.js
├── ios
├── ReactNativeSignView.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── project.pbxproj
└── ReactNativeSignView
│ ├── SignViewCallbacks.h
│ ├── RCTSignView.m
│ ├── RCTSignView.h
│ ├── SignView.h
│ ├── SignViewManager.m
│ └── SignView.m
├── package.json
├── LICENSE
├── README.md
└── .gitignore
/android/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/example/sample/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/example/sample/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sample",
3 | "displayName": "sample"
4 | }
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import SignatureView from './SignatureView';
2 |
3 | export {
4 | SignatureView
5 | }
6 |
--------------------------------------------------------------------------------
/example/sample/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ["module:metro-react-native-babel-preset"]
3 | }
4 |
--------------------------------------------------------------------------------
/android/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | reactnativesignview
3 |
4 |
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | sample
3 |
4 |
--------------------------------------------------------------------------------
/example/sample/ios/sample/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/example/sample/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/example/sample/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/example/sample/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 |
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Harishn28/react-native-signview/HEAD/example/sample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/sample/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/example/sample/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'sample'
2 |
3 | include ':reactnativesignview'
4 | project(':reactnativesignview').projectDir = new File(rootProject.projectDir, '../../../android')
5 |
6 |
7 | include ':app'
8 |
--------------------------------------------------------------------------------
/ios/ReactNativeSignView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/sample/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
6 |
--------------------------------------------------------------------------------
/example/sample/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | * @lint-ignore-every XPLATJSCOPYRIGHT1
4 | */
5 |
6 | import {AppRegistry} from 'react-native';
7 | import App from './App';
8 | import {name as appName} from './app.json';
9 |
10 | AppRegistry.registerComponent(appName, () => App);
11 |
--------------------------------------------------------------------------------
/android/src/main/java/com/harishn28/reactnativesignview/SignViewCallbacks.java:
--------------------------------------------------------------------------------
1 | package com.harishn28.reactnativesignview;
2 |
3 | import android.content.Context;
4 |
5 | public interface SignViewCallbacks {
6 | void onSignAvailable(Context context, int targetId, String base64DataOfSign);
7 | }
--------------------------------------------------------------------------------
/ios/ReactNativeSignView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/sample/__tests__/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | * @lint-ignore-every XPLATJSCOPYRIGHT1
4 | */
5 |
6 | import 'react-native';
7 | import React from 'react';
8 | import App from '../App';
9 |
10 | // Note: test renderer must be required after react-native.
11 | import renderer from 'react-test-renderer';
12 |
13 | it('renders correctly', () => {
14 | renderer.create();
15 | });
16 |
--------------------------------------------------------------------------------
/example/sample/ios/sample/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | @interface AppDelegate : UIResponder
11 |
12 | @property (nonatomic, strong) UIWindow *window;
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/ios/ReactNativeSignView/SignViewCallbacks.h:
--------------------------------------------------------------------------------
1 | //
2 | // SignViewCallbacks.h
3 | // ReactNativeSignView
4 | //
5 | // Created by Harish on 20/02/19.
6 | // Copyright © 2019 Tekion. All rights reserved.
7 | //
8 |
9 | #ifndef SignViewCallbacks_h
10 | #define SignViewCallbacks_h
11 |
12 | @protocol SignViewCallbacks
13 | @required
14 | -(void)onSignatureChangesCb: (NSString*) base64DataOfSign;
15 | @end
16 |
17 | #endif /* SignViewCallbacks_h */
18 |
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/java/com/sample/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.sample;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "sample";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/example/sample/ios/sample/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/android/src/test/java/com/harishn28/reactnativesignview/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.harishn28.reactnativesignview;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/ios/ReactNativeSignView/RCTSignView.m:
--------------------------------------------------------------------------------
1 | //
2 | // RCTSignView.m
3 | // ReactNativeSignView
4 | //
5 | // Created by Harish on 20/02/19.
6 | // Copyright © 2019 Tekion. All rights reserved.
7 | //
8 |
9 | #import "UIKit/UIKit.h"
10 | #import "RCTSignView.h"
11 |
12 |
13 | @implementation RCTSignView
14 |
15 | @synthesize onSignAvailable;
16 |
17 | - (void) commonInit{
18 | [super commonInit];
19 | super.delegate = self;
20 | }
21 |
22 | -(void)onSignatureChangesCb: (NSString*) base64DataOfSign{
23 | self.onSignAvailable(@{@"signature": base64DataOfSign});
24 | }
25 |
26 |
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/ios/ReactNativeSignView/RCTSignView.h:
--------------------------------------------------------------------------------
1 | //
2 | // RCTSignView.h
3 | // ReactNativeSignView
4 | //
5 | // Created by Harish on 20/02/19.
6 | // Copyright © 2019 Tekion. All rights reserved.
7 | //
8 |
9 | #ifndef RCTSignView_h
10 | #define RCTSignView_h
11 |
12 | #import
13 | #import
14 | #import
15 | #import "SignView.h"
16 | #import "SignViewCallbacks.h"
17 |
18 |
19 | @interface RCTSignView : SignView
20 | @property (nonatomic, copy) RCTDirectEventBlock onSignAvailable;
21 | @end
22 |
23 | #endif /* RCTSignView_h */
24 |
--------------------------------------------------------------------------------
/ios/ReactNativeSignView/SignView.h:
--------------------------------------------------------------------------------
1 | //
2 | // SignView.h
3 | // ReactNativeSignView
4 | //
5 | // Created by Harish on 20/02/19.
6 | // Copyright © 2019 Tekion. All rights reserved.
7 | //
8 |
9 | #ifndef SignView_h
10 | #define SignView_h
11 |
12 |
13 | #import "UIKit/UIKit.h"
14 | #import "SignViewCallbacks.h"
15 |
16 | @interface SignView : UIView
17 | @property (nonatomic,strong) id delegate;
18 |
19 | -(void)setSignatureColor: (UIColor*) signColor;
20 | -(void)setStrokeWidth: (CGFloat) strokeWidth;
21 | -(void)clearSignature;
22 | - (void) commonInit;
23 | @end
24 |
25 | #endif /* SignView_h */
26 |
--------------------------------------------------------------------------------
/example/sample/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sample",
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 | "@babel/runtime": "^7.3.1",
11 | "react": "16.6.3",
12 | "react-native": "0.58.3"
13 | },
14 | "devDependencies": {
15 | "babel-core": "^7.0.0-bridge.0",
16 | "babel-jest": "24.0.0",
17 | "jest": "24.0.0",
18 | "metro-react-native-babel-preset": "0.51.1",
19 | "react-test-renderer": "16.6.3"
20 | },
21 | "jest": {
22 | "preset": "react-native"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | def getPropFromRootProj(prop, fallback) {
2 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3 | }
4 |
5 |
6 |
7 | apply plugin: 'com.android.library'
8 |
9 | android {
10 | compileSdkVersion getPropFromRootProj('compileSdkVersion', 28)
11 |
12 | defaultConfig {
13 | minSdkVersion getPropFromRootProj('minSdkVersion', 16)
14 | targetSdkVersion getPropFromRootProj('targetSdkVersion', 28)
15 | }
16 | }
17 |
18 | dependencies {
19 | implementation "com.facebook.react:react-native:+"
20 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
21 | }
22 |
23 |
--------------------------------------------------------------------------------
/example/sample/android/app/build_defs.bzl:
--------------------------------------------------------------------------------
1 | """Helper definitions to glob .aar and .jar targets"""
2 |
3 | def create_aar_targets(aarfiles):
4 | for aarfile in aarfiles:
5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6 | lib_deps.append(":" + name)
7 | android_prebuilt_aar(
8 | name = name,
9 | aar = aarfile,
10 | )
11 |
12 | def create_jar_targets(jarfiles):
13 | for jarfile in jarfiles:
14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15 | lib_deps.append(":" + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
--------------------------------------------------------------------------------
/example/sample/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 |
--------------------------------------------------------------------------------
/example/sample/ios/sample/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 | }
--------------------------------------------------------------------------------
/example/sample/rn-cli.config.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const path = require('path');
4 |
5 | const reactNativeSignview = path.resolve(__dirname, '..', '..');
6 |
7 | const installedDependencies = require("./package.json").dependencies;
8 |
9 | const extraNodeModules = {};
10 | Object.keys(installedDependencies).forEach(dep => {
11 | extraNodeModules[dep] = path.resolve(__dirname, "node_modules", dep);
12 | });
13 |
14 | const installedDevDependencies = require("./package.json").devDependencies;
15 |
16 | Object.keys(installedDevDependencies).forEach(dep => {
17 | extraNodeModules[dep] = path.resolve(__dirname, "node_modules", dep);
18 | });
19 |
20 | module.exports = {
21 | watchFolders: [path.resolve(__dirname, 'node_modules'), reactNativeSignview],
22 | resolver: {
23 | extraNodeModules: extraNodeModules
24 | }
25 | };
26 |
27 |
--------------------------------------------------------------------------------
/android/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-signview",
3 | "version": "1.0.6",
4 | "description": "Signature View for React Native(Android+IOS).",
5 | "main": "src/index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "repository": {
10 | "type": "git",
11 | "url": "git+https://github.com/Harishn28/react-native-signview.git"
12 | },
13 | "keywords": [
14 | "Signature",
15 | "android",
16 | "ios",
17 | "react-native"
18 | ],
19 | "author": "Harish",
20 | "license": "ISC",
21 | "bugs": {
22 | "url": "https://github.com/Harishn28/react-native-signview/issues"
23 | },
24 | "homepage": "https://github.com/Harishn28/react-native-signview#readme",
25 | "publishConfig": {
26 | "registry": "https://registry.npmjs.org/"
27 | },
28 | "dependencies": {
29 | "prop-types": "^15.7.2"
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/example/sample/ios/sample-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 |
--------------------------------------------------------------------------------
/android/src/androidTest/java/com/harishn28/reactnativesignview/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.harishn28.reactnativesignview;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.harishn28.reactnativesignview.test", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/example/sample/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/android/src/main/java/com/harishn28/reactnativesignview/ReactNativeSignatureViewPackage.java:
--------------------------------------------------------------------------------
1 | package com.harishn28.reactnativesignview;
2 |
3 | import com.facebook.react.ReactPackage;
4 | import com.facebook.react.bridge.NativeModule;
5 | import com.facebook.react.bridge.ReactApplicationContext;
6 | import com.facebook.react.uimanager.ViewManager;
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | public class ReactNativeSignatureViewPackage implements ReactPackage {
11 | @Override
12 | public List createNativeModules(ReactApplicationContext reactContext) {
13 | ArrayList list = new ArrayList<>();
14 | list.add(new SignViewModule(reactContext));
15 | return list;
16 | }
17 |
18 | @Override
19 | public List createViewManagers(ReactApplicationContext reactContext) {
20 | ArrayList list = new ArrayList<>();
21 | list.add(new SignViewManager());
22 | return list;
23 | }
24 | }
--------------------------------------------------------------------------------
/example/sample/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Harish N
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 |
--------------------------------------------------------------------------------
/example/sample/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = "28.0.3"
6 | minSdkVersion = 16
7 | compileSdkVersion = 28
8 | targetSdkVersion = 27
9 | supportLibVersion = "28.0.0"
10 | }
11 | repositories {
12 | google()
13 | jcenter()
14 | }
15 | dependencies {
16 | classpath 'com.android.tools.build:gradle:3.2.1'
17 |
18 | // NOTE: Do not place your application dependencies here; they belong
19 | // in the individual module build.gradle files
20 | }
21 | }
22 |
23 | allprojects {
24 | repositories {
25 | mavenLocal()
26 | google()
27 | jcenter()
28 | maven {
29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
30 | url "$rootDir/../node_modules/react-native/android"
31 | }
32 | }
33 | }
34 |
35 |
36 | task wrapper(type: Wrapper) {
37 | gradleVersion = '4.7'
38 | distributionUrl = distributionUrl.replace("bin", "all")
39 | }
40 |
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
14 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/example/sample/ios/sample/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 |
10 | #import
11 | #import
12 |
13 | @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:@"sample"
23 | initialProperties:nil
24 | launchOptions:launchOptions];
25 | rootView.backgroundColor = [UIColor blackColor];
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 |
--------------------------------------------------------------------------------
/example/sample/android/app/src/main/java/com/sample/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.sample;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import com.facebook.react.ReactNativeHost;
7 | import com.facebook.react.ReactPackage;
8 | import com.facebook.react.shell.MainReactPackage;
9 | import com.facebook.soloader.SoLoader;
10 | import com.harishn28.reactnativesignview.ReactNativeSignatureViewPackage;
11 |
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | public class MainApplication extends Application implements ReactApplication {
16 |
17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
18 | @Override
19 | public boolean getUseDeveloperSupport() {
20 | return BuildConfig.DEBUG;
21 | }
22 |
23 | @Override
24 | protected List getPackages() {
25 | return Arrays.asList(
26 | new MainReactPackage(),
27 | new ReactNativeSignatureViewPackage()
28 | );
29 | }
30 |
31 | @Override
32 | protected String getJSMainModuleName() {
33 | return "index";
34 | }
35 | };
36 |
37 | @Override
38 | public ReactNativeHost getReactNativeHost() {
39 | return mReactNativeHost;
40 | }
41 |
42 | @Override
43 | public void onCreate() {
44 | super.onCreate();
45 | SoLoader.init(this, /* native exopackage */ false);
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/ios/ReactNativeSignView/SignViewManager.m:
--------------------------------------------------------------------------------
1 | //
2 | // SignViewManager.m
3 | // ReactNativeSignView
4 | //
5 | // Created by Harish on 11/02/19.
6 | //
7 |
8 | #import
9 | #import
10 | #import
11 | #import
12 | #import "SignView.h"
13 | #import "RCTSignView.h"
14 |
15 | @interface SignViewManager : RCTViewManager
16 | @end
17 |
18 |
19 | @implementation SignViewManager
20 |
21 | RCT_EXPORT_MODULE();
22 |
23 | - (UIView *)view
24 | {
25 | RCTSignView *signView = [[RCTSignView alloc] init];
26 | return signView;
27 | }
28 |
29 |
30 | RCT_EXPORT_VIEW_PROPERTY(onSignAvailable, RCTDirectEventBlock);
31 |
32 | RCT_CUSTOM_VIEW_PROPERTY(signatureColor, UIColor , RCTSignView){
33 | [view setSignatureColor: [RCTConvert UIColor:json]];
34 | }
35 |
36 | RCT_CUSTOM_VIEW_PROPERTY(strokeWidth, CGFloat , RCTSignView){
37 | [view setStrokeWidth: [RCTConvert CGFloat:json]];
38 | }
39 |
40 | RCT_EXPORT_METHOD(clearSignature:(nonnull NSNumber *)reactTag){
41 | [self.bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary *viewRegistry) {
42 | RCTSignView *signView = viewRegistry[reactTag];
43 |
44 | if ([signView isKindOfClass:[RCTSignView class]]) {
45 | [signView clearSignature];
46 | } else{
47 | NSLog(@"Expecting ");
48 | }
49 | }];
50 | }
51 |
52 | @end
53 |
--------------------------------------------------------------------------------
/android/src/main/java/com/harishn28/reactnativesignview/SignViewModule.java:
--------------------------------------------------------------------------------
1 | package com.harishn28.reactnativesignview;
2 |
3 | import android.util.Log;
4 |
5 | import com.facebook.react.bridge.ReactApplicationContext;
6 | import com.facebook.react.bridge.ReactContextBaseJavaModule;
7 | import com.facebook.react.bridge.ReactMethod;
8 | import com.facebook.react.uimanager.NativeViewHierarchyManager;
9 | import com.facebook.react.uimanager.UIBlock;
10 | import com.facebook.react.uimanager.UIManagerModule;
11 |
12 | public class SignViewModule extends ReactContextBaseJavaModule {
13 | public SignViewModule(ReactApplicationContext reactContext) {
14 | super(reactContext);
15 | }
16 |
17 | @Override
18 | public String getName() {
19 | return "SignViewModule";
20 | }
21 |
22 | @ReactMethod
23 | public void clearSignature(final int viewTag){
24 | ReactApplicationContext context = getReactApplicationContext();
25 | UIManagerModule uiManager = context.getNativeModule(UIManagerModule.class);
26 | uiManager.addUIBlock(new UIBlock() {
27 | @Override
28 | public void execute(NativeViewHierarchyManager nativeViewHierarchyManager) {
29 | try{
30 | SignatureView signatureView = (SignatureView)nativeViewHierarchyManager.resolveView(viewTag);
31 | signatureView.clearSignature();
32 | }catch (Exception ex){
33 |
34 | }
35 | }
36 | });
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/example/sample/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.sample",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.sample",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/example/sample/App.js:
--------------------------------------------------------------------------------
1 |
2 |
3 | import React, {Component} from 'react';
4 | import {Platform, StyleSheet, Text, Button, View} from 'react-native';
5 | import { SignatureView } from 'react-native-signview';
6 |
7 | export default class App extends Component {
8 | constructor(props){
9 | super(props);
10 | this.signView = React.createRef();
11 | }
12 |
13 | clearSignature = () => {
14 | if(this.signView && this.signView.current){
15 | this.signView.current.clearSignature();
16 | }
17 | }
18 |
19 | onChangeInSign = (base64StringOfSign) => {
20 | if(base64StringOfSign){
21 | console.log('Signature Available', base64StringOfSign);
22 | } else{
23 | console.log('No Signature');
24 | }
25 | }
26 |
27 | render() {
28 | return (
29 |
30 | Sign in below box
31 |
38 |
40 | );
41 | }
42 | }
43 |
44 | const styles = StyleSheet.create({
45 | container: {
46 | flex: 1,
47 | justifyContent: 'center',
48 | alignItems: 'center',
49 | backgroundColor: '#F5FCFF',
50 | },
51 | signBox: {
52 | height:200,
53 | width:'90%',
54 | margin:20,
55 | backgroundColor:'white',
56 | borderColor:'black',
57 | borderWidth:1,
58 | borderRadius:4
59 | }
60 | });
61 |
--------------------------------------------------------------------------------
/example/sample/ios/sample/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | sample
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSAllowsArbitraryLoads
30 |
31 | NSExceptionDomains
32 |
33 | localhost
34 |
35 | NSExceptionAllowsInsecureHTTPLoads
36 |
37 |
38 |
39 |
40 | NSLocationWhenInUseUsageDescription
41 |
42 | UILaunchStoryboardName
43 | LaunchScreen
44 | UIRequiredDeviceCapabilities
45 |
46 | armv7
47 |
48 | UISupportedInterfaceOrientations
49 |
50 | UIInterfaceOrientationPortrait
51 | UIInterfaceOrientationLandscapeLeft
52 | UIInterfaceOrientationLandscapeRight
53 |
54 | UIViewControllerBasedStatusBarAppearance
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/example/sample/ios/sample-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 |
--------------------------------------------------------------------------------
/src/SignatureView.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | View,
4 | Text,
5 | requireNativeComponent,
6 | NativeModules,
7 | ViewPropTypes,
8 | processColor,
9 | findNodeHandle,
10 | Platform,
11 | } from 'react-native';
12 | import PropTypes from 'prop-types';
13 |
14 | const SignViewNative = requireNativeComponent('SignView');
15 | const SignViewModule = NativeModules.SignViewManager || NativeModules.SignViewModule;
16 |
17 | const isAndroidPlatform = Platform.OS === 'android';
18 |
19 | class SignatureView extends Component {
20 | constructor(props) {
21 | super(props);
22 | this.ref = React.createRef();
23 | }
24 |
25 | clearSignature = () => {
26 | SignViewModule.clearSignature(findNodeHandle(this.ref.current));
27 | }
28 |
29 | _onSignAvailable = (event) => {
30 | const { onChangeInSign } = this.props;
31 | if(onChangeInSign){
32 | onChangeInSign(event.nativeEvent.signature);
33 | }
34 | }
35 |
36 | getSignatureColor = () => {
37 | const { signatureColor } = this.props;
38 |
39 | if(isAndroidPlatform){
40 | return processColor(signatureColor);
41 | }
42 |
43 | return signatureColor;
44 | }
45 |
46 | render() {
47 | const { signatureColor, strokeWidth, style, ...props } = this.props;
48 | return (
49 |
50 |
58 |
59 | );
60 | }
61 | }
62 |
63 |
64 | SignatureView.propTypes = {
65 | style:ViewPropTypes.style,
66 | onChangeInSign: PropTypes.func,
67 | signatureColor: PropTypes.string,
68 | strokeWidth: PropTypes.number,
69 | }
70 |
71 | SignatureView.defaultProps = {
72 | style:{width:'100%', height:200, backgroundColor:'white', borderWidth:2, borderColor:'black'},
73 | onChangeInSign: null,
74 | signatureColor: 'black',
75 | strokeWidth: 6,
76 | }
77 |
78 | export default SignatureView;
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | Signature view for react-native.
4 |
5 | ## installing
6 | `npm i react-native-signview`
7 |
8 | `react-native link`
9 |
10 |
11 | ## usage
12 | ```
13 | ...
14 | import {Text, Button, View} from 'react-native';
15 | import { SignatureView } from 'react-native-signview';
16 |
17 | export default class SomeComponent extends Component {
18 |
19 | ...
20 |
21 | render() {
22 | return (
23 |
24 |
25 |
26 | );
27 | }
28 | }
29 | ```
30 | ## Properties
31 | * style: [View Styles](https://facebook.github.io/react-native/docs/view-style-props)
32 | * signatureColor: Color for signature(stroke color)
33 | * strokeWidth: width of signature (stroke width)
34 |
35 | ## Callbacks
36 | * onChangeInSign: Triggered whenever there is a change in signature. Base64 string of signature will be passed as parameter.
37 |
38 | ## Methods
39 | * clearSignature: When called it'll clear the signature. onChangeInSign gets triggered with null as parameter.
40 |
41 | ## Example
42 | ```
43 | import React, {Component} from 'react';
44 | import { StyleSheet, Text, Button, View} from 'react-native';
45 | import { SignatureView } from 'react-native-signview';
46 |
47 | export default class App extends Component {
48 | constructor(props){
49 | super(props);
50 | this.signView = React.createRef();
51 | }
52 |
53 | clearSignature = () => {
54 | if(this.signView && this.signView.current){
55 | this.signView.current.clearSignature();
56 | }
57 | }
58 |
59 | onChangeInSign = (base64StringOfSign) => {
60 | if(base64StringOfSign){
61 | console.log('Signature Available', base64StringOfSign.length);
62 | } else{
63 | console.log('No Signature');
64 | }
65 | }
66 |
67 | render() {
68 | return (
69 |
70 | Sign in below box
71 |
74 |
76 | );
77 | }
78 | }
79 |
80 | const styles = StyleSheet.create({
81 | container: {
82 | flex: 1,
83 | justifyContent: 'center',
84 | alignItems: 'center',
85 | backgroundColor: '#F5FCFF',
86 | },
87 | });
88 |
89 | ```
90 |
--------------------------------------------------------------------------------
/android/src/main/java/com/harishn28/reactnativesignview/SignViewManager.java:
--------------------------------------------------------------------------------
1 | package com.harishn28.reactnativesignview;
2 |
3 | import android.content.Context;
4 |
5 | import com.facebook.react.bridge.Arguments;
6 | import com.facebook.react.bridge.ReactContext;
7 | import com.facebook.react.bridge.WritableMap;
8 | import com.facebook.react.common.MapBuilder;
9 | import com.facebook.react.uimanager.SimpleViewManager;
10 | import com.facebook.react.uimanager.ThemedReactContext;
11 | import com.facebook.react.uimanager.annotations.ReactProp;
12 | import com.facebook.react.uimanager.events.RCTEventEmitter;
13 |
14 | import java.util.Map;
15 |
16 |
17 | public class SignViewManager extends SimpleViewManager implements SignViewCallbacks {
18 | @Override
19 | public String getName() {
20 | return "SignView";
21 | }
22 |
23 | @Override
24 | protected SignatureView createViewInstance(ThemedReactContext reactContext) {
25 | SignatureView signView = new SignatureView(reactContext);
26 | signView.setSignViewCallbacks(this);
27 | return signView;
28 | }
29 |
30 |
31 | //SignView Callback functions
32 | @Override
33 | public void onSignAvailable(Context context, int targetId, String base64DataOfSign) {
34 | WritableMap event = Arguments.createMap();
35 | event.putString("signature", base64DataOfSign);
36 | ReactContext reactContext = (ReactContext)context;
37 | reactContext.getJSModule(RCTEventEmitter.class).receiveEvent(
38 | targetId,
39 | "onSignAvailable",
40 | event);
41 | }
42 |
43 |
44 | //JS View Properties(Properties passed from JS to Native
45 | @ReactProp(name = "signatureColor", customType = "color")
46 | public void setSignatureColor(SignatureView view, int color){
47 | view.setSignatureColor(color);
48 | }
49 |
50 | @ReactProp(name = "strokeWidth")
51 | public void setStrokeWidth(SignatureView view, int strokeWidth){
52 | view.setStrokeWidth(strokeWidth);
53 | }
54 |
55 |
56 | //Events passed from Native to JS.
57 | public Map getExportedCustomBubblingEventTypeConstants() {
58 | return MapBuilder.builder()
59 | .put(
60 | "onSignAvailable",
61 | MapBuilder.of(
62 | "phasedRegistrationNames",
63 | MapBuilder.of("bubbled", "onSignAvailable")))
64 | .build();
65 | }
66 |
67 | }
--------------------------------------------------------------------------------
/example/sample/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 |
16 | ; Ignore polyfills
17 | .*/Libraries/polyfills/.*
18 |
19 | ; Ignore metro
20 | .*/node_modules/metro/.*
21 |
22 | [include]
23 |
24 | [libs]
25 | node_modules/react-native/Libraries/react-native/react-native-interface.js
26 | node_modules/react-native/flow/
27 | node_modules/react-native/flow-github/
28 |
29 | [options]
30 | emoji=true
31 |
32 | esproposal.optional_chaining=enable
33 | esproposal.nullish_coalescing=enable
34 |
35 | module.system=haste
36 | module.system.haste.use_name_reducers=true
37 | # get basename
38 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
39 | # strip .js or .js.flow suffix
40 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
41 | # strip .ios suffix
42 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
43 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
44 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
45 | module.system.haste.paths.blacklist=.*/__tests__/.*
46 | module.system.haste.paths.blacklist=.*/__mocks__/.*
47 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.*
48 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.*
49 |
50 | munge_underscores=true
51 |
52 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
53 |
54 | module.file_ext=.js
55 | module.file_ext=.jsx
56 | module.file_ext=.json
57 | module.file_ext=.native.js
58 |
59 | suppress_type=$FlowIssue
60 | suppress_type=$FlowFixMe
61 | suppress_type=$FlowFixMeProps
62 | suppress_type=$FlowFixMeState
63 |
64 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
65 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
66 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
67 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
68 |
69 | [version]
70 | ^0.86.0
71 |
--------------------------------------------------------------------------------
/example/sample/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Built application files
2 | *.apk
3 | *.ap_
4 |
5 | # Files for the ART/Dalvik VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # Generated files
12 | bin/
13 | gen/
14 | out/
15 |
16 | # Gradle files
17 | .gradle/
18 | build/
19 |
20 | # Local configuration file (sdk path, etc)
21 | local.properties
22 |
23 | # Proguard folder generated by Eclipse
24 | proguard/
25 |
26 | # Log Files
27 | *.log
28 |
29 | # Android Studio Navigation editor temp files
30 | .navigation/
31 |
32 | # Android Studio captures folder
33 | captures/
34 |
35 | # IntelliJ
36 | *.iml
37 | .idea/workspace.xml
38 | .idea/tasks.xml
39 | .idea/gradle.xml
40 | .idea/assetWizardSettings.xml
41 | .idea/dictionaries
42 | .idea/libraries
43 | .idea/caches
44 |
45 | # Keystore files
46 | # Uncomment the following line if you do not want to check your keystore files in.
47 | #*.jks
48 |
49 | # External native build folder generated in Android Studio 2.2 and later
50 | .externalNativeBuild
51 |
52 | # Google Services (e.g. APIs or Firebase)
53 | google-services.json
54 |
55 | # Freeline
56 | freeline.py
57 | freeline/
58 | freeline_project_description.json
59 |
60 | # fastlane
61 | fastlane/report.xml
62 | fastlane/Preview.html
63 | fastlane/screenshots
64 | fastlane/test_output
65 | fastlane/readme.md
66 |
67 |
68 |
69 |
70 |
71 |
72 | # Xcode
73 | #
74 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
75 |
76 | ## User settings
77 | xcuserdata/
78 |
79 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
80 | *.xcscmblueprint
81 | *.xccheckout
82 |
83 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
84 | build/
85 | DerivedData/
86 | *.moved-aside
87 | *.pbxuser
88 | !default.pbxuser
89 | *.mode1v3
90 | !default.mode1v3
91 | *.mode2v3
92 | !default.mode2v3
93 | *.perspectivev3
94 | !default.perspectivev3
95 |
96 |
97 | # Buck
98 | .buckd
99 | buck-out
100 | /ReactAndroid/src/main/jni/prebuilt/lib/armeabi-v7a/
101 | /ReactAndroid/src/main/jni/prebuilt/lib/x86/
102 | /ReactAndroid/src/main/gen
103 |
104 | # Watchman
105 | .watchmanconfig
106 |
107 | # Node
108 | node_modules
109 | *.log
110 | .nvm
111 | /bots/node_modules/
112 | package-lock.json
113 |
114 | # OS X
115 | .DS_Store
116 |
117 | # Test generated files
118 | /ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
119 | *.js.meta
120 |
121 | /coverage
122 | /third-party
123 |
124 | # Root dir shouldn't have Xcode project
125 | /*.xcodeproj
126 |
127 | # ReactCommon subdir shouldn't have Xcode project
128 | /ReactCommon/**/*.xcodeproj
129 | RNTester/build
130 | android/.settings/org.eclipse.buildship.core.prefs
131 | android/.project
132 | example/sample/android/.project
133 | example/sample/android/app/.project
134 |
--------------------------------------------------------------------------------
/example/sample/ios/sample/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 |
--------------------------------------------------------------------------------
/example/sample/ios/sample.xcodeproj/xcshareddata/xcschemes/sample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/example/sample/ios/sample.xcodeproj/xcshareddata/xcschemes/sample-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/ios/ReactNativeSignView/SignView.m:
--------------------------------------------------------------------------------
1 | //
2 | // SignView.m
3 | // ReactNativeSignView
4 | //
5 | // Created by Harish on 20/02/19.
6 | // Copyright © 2019 Tekion. All rights reserved.
7 | //
8 |
9 | #import "SignView.h"
10 | #include
11 |
12 | @implementation SignView{
13 | UIBezierPath* currentPath;
14 | CAShapeLayer* pathLayer;
15 | }
16 | @synthesize delegate;
17 |
18 | - (instancetype)initWithFrame:(CGRect)frame
19 | {
20 | self = [super initWithFrame:frame];
21 | if (self) {
22 | [self commonInit];
23 | }
24 | return self;
25 | }
26 |
27 | - (instancetype)initWithCoder:(NSCoder *)coder
28 | {
29 | self = [super initWithCoder:coder];
30 | if (self) {
31 | [self commonInit];
32 | }
33 | return self;
34 | }
35 |
36 | - (void) commonInit{
37 | self.backgroundColor = nil;
38 | pathLayer = [[CAShapeLayer alloc] init];
39 | currentPath = [[UIBezierPath alloc] init];
40 | pathLayer.path = [currentPath CGPath];
41 | pathLayer.strokeColor = [UIColor blackColor].CGColor;
42 | pathLayer.lineWidth = 2;
43 | [self.layer addSublayer:pathLayer];
44 |
45 | UIGestureRecognizer* tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTap:)];
46 | [self addGestureRecognizer:tap];
47 | }
48 |
49 | - (void)onTap:(UITapGestureRecognizer*)sender {
50 | CGPoint location = [sender locationInView:self];
51 | [currentPath moveToPoint:location];
52 | [currentPath addArcWithCenter:location radius:1 startAngle:0 endAngle:(M_PI * 2) clockwise:true];
53 | [self drawPaths];
54 | [self onSignatureChange];
55 | }
56 |
57 | - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
58 | UITouch *touch = [[event allTouches] anyObject];
59 | CGPoint location = [touch locationInView:touch.view];
60 | [currentPath moveToPoint:location];
61 | }
62 |
63 | - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
64 | UITouch *touch = [[event allTouches] anyObject];
65 | CGPoint location = [touch locationInView:touch.view];
66 |
67 | CGFloat width = [self bounds].size.width;
68 | CGFloat height = [self bounds].size.height;
69 |
70 | if(location.x > 0 && location.x < width &&
71 | location.y > 0 && location.y < height){
72 | [currentPath addLineToPoint:location];
73 | [currentPath moveToPoint:location];
74 | [self drawPaths];
75 | }
76 | }
77 |
78 | - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
79 | UITouch *touch = [[event allTouches] anyObject];
80 | CGPoint location = [touch locationInView:touch.view];
81 | [currentPath moveToPoint:location];
82 | [self drawPaths];
83 | [self onSignatureChange];
84 | }
85 |
86 | -(void)drawPaths{
87 | pathLayer.path = [currentPath CGPath];
88 | }
89 |
90 | -(UIImage*) rotateImage:(UIImage *)image : (CGFloat) rotation{
91 | CGAffineTransform t = CGAffineTransformMakeRotation(rotation);
92 | CGRect sizeRect = (CGRect) {.size = image.size};
93 | CGRect destRect = CGRectApplyAffineTransform(sizeRect, t);
94 | CGSize destinationSize = destRect.size;
95 |
96 | UIGraphicsBeginImageContext(destinationSize);
97 | CGContextRef context = UIGraphicsGetCurrentContext();
98 | CGContextTranslateCTM(context, destinationSize.width / 2.0f, destinationSize.height / 2.0f);
99 | CGContextRotateCTM(context, rotation);
100 | [image drawInRect:CGRectMake(-image.size.width / 2.0f, -image.size.height / 2.0f, image.size.width, image.size.height)];
101 |
102 | UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
103 | UIGraphicsEndImageContext();
104 | return newImage;
105 | }
106 |
107 |
108 | -(UIImage *)getSignatureImage{
109 | if(currentPath.isEmpty) return nil;
110 | else{
111 | CGRect signBounds = currentPath.bounds;
112 | CGFloat width = signBounds.origin.x + signBounds.size.width;
113 | CGFloat height = signBounds.origin.y + signBounds.size.height;
114 |
115 | UIGraphicsBeginImageContext(CGSizeMake(width, height));
116 | [pathLayer renderInContext:UIGraphicsGetCurrentContext()];
117 | UIImage* signatureImage = UIGraphicsGetImageFromCurrentImageContext();
118 | UIGraphicsEndImageContext();
119 |
120 | CGRect signatureBoundingRect = [currentPath bounds];
121 | CGImageRef imageRef = CGImageCreateWithImageInRect(signatureImage.CGImage, signatureBoundingRect);
122 | UIImage *croppedImage = [UIImage imageWithCGImage:imageRef];
123 | CGImageRelease(imageRef);
124 |
125 | return croppedImage;
126 | }
127 | }
128 |
129 | -(NSString *)getBase64StringOfImage:(UIImage *)image{
130 | NSData* nsDataOfImage = UIImagePNGRepresentation(image);
131 | NSString * base64StringOfImage = [nsDataOfImage base64EncodedStringWithOptions:0];
132 | return base64StringOfImage;
133 | }
134 |
135 | -(void)onSignatureChange{
136 | if([self delegate] != nil){
137 | UIImage* image = [self getSignatureImage];
138 | NSString * base64StringOfImage = [self getBase64StringOfImage:image];
139 | [self.delegate onSignatureChangesCb:base64StringOfImage];
140 | }
141 | }
142 |
143 | - (void)setSignatureColor: (UIColor*) signColor{
144 | pathLayer.strokeColor = signColor.CGColor;
145 | }
146 |
147 | - (void)setStrokeWidth: (CGFloat) strokeWidth{
148 | pathLayer.lineWidth = strokeWidth;
149 | }
150 |
151 | - (void)clearSignature{
152 | [currentPath removeAllPoints];
153 | [self drawPaths];
154 | }
155 |
156 | @end
157 |
--------------------------------------------------------------------------------
/example/sample/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/android/src/main/java/com/harishn28/reactnativesignview/SignatureView.java:
--------------------------------------------------------------------------------
1 | package com.harishn28.reactnativesignview;
2 |
3 | import android.content.Context;
4 | import android.graphics.Bitmap;
5 | import android.graphics.Canvas;
6 | import android.graphics.Color;
7 | import android.graphics.Paint;
8 | import android.graphics.Path;
9 | import android.graphics.RectF;
10 | import android.support.annotation.Nullable;
11 | import android.support.v4.view.GestureDetectorCompat;
12 | import android.util.AttributeSet;
13 | import android.util.Base64;
14 | import android.view.GestureDetector;
15 | import android.view.MotionEvent;
16 | import android.view.View;
17 | import java.io.ByteArrayOutputStream;
18 |
19 | public class SignatureView extends View {
20 |
21 | private Paint paint;
22 | private Path currentPath = new Path();
23 | private GestureDetectorCompat gestureDetector;
24 | private SignViewCallbacks signViewCallbacks;
25 | int vl, vr, vt, vb;
26 |
27 | public SignatureView(Context context) {
28 | super(context);
29 | commonInit();
30 | }
31 |
32 | public SignatureView(Context context, @Nullable AttributeSet attrs) {
33 | super(context, attrs);
34 | commonInit();
35 | }
36 |
37 | public SignatureView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
38 | super(context, attrs, defStyleAttr);
39 | commonInit();
40 | }
41 |
42 | private void commonInit(){
43 | gestureDetector = new GestureDetectorCompat(this.getContext(), new GestureDetector.SimpleOnGestureListener(){
44 | @Override
45 | public boolean onDown(MotionEvent e) {
46 | return true;
47 | }
48 |
49 | @Override
50 | public boolean onSingleTapConfirmed(MotionEvent e) {
51 | return onTap(e);
52 | }
53 | });
54 | paint = new Paint(Paint.ANTI_ALIAS_FLAG);
55 | paint.setColor(Color.rgb(0, 0xff, 0));
56 | paint.setStyle(Paint.Style.STROKE);
57 | }
58 |
59 | public void setSignViewCallbacks(SignViewCallbacks signViewCallbacks){
60 | this.signViewCallbacks = signViewCallbacks;
61 | }
62 |
63 | public void setSignatureColor(int color){
64 | this.paint.setColor(color);
65 | invalidate();
66 | }
67 |
68 |
69 | public void setStrokeWidth(int strokeWidth){
70 | this.paint.setStrokeWidth(strokeWidth);
71 | invalidate();
72 | }
73 |
74 | public void clearSignature(){
75 | this.currentPath.reset();
76 | this.invalidate();
77 | this.updateSignAvailability();
78 | }
79 |
80 | private Bitmap cropImage(Bitmap image, RectF boundingRect){
81 | return Bitmap.createBitmap(image,
82 | (int)boundingRect.left ,
83 | (int)boundingRect.top,
84 | (int)boundingRect.width(),
85 | (int)boundingRect.height()
86 | );
87 | }
88 |
89 | public String getSignature (){
90 | if(!currentPath.isEmpty()){
91 | RectF signBoundingRectangle = new RectF();
92 | currentPath.computeBounds(signBoundingRectangle, true);
93 |
94 | float signBoundsWidth = signBoundingRectangle.width();
95 | float signBoundsHeight = signBoundingRectangle.height();
96 |
97 | if(signBoundsWidth > 0 && signBoundsHeight > 0){
98 | float canvasWidth = signBoundingRectangle.left + signBoundsWidth;
99 | float canvasHeight = signBoundingRectangle.top + signBoundsHeight;
100 |
101 | Bitmap bitmap = Bitmap.createBitmap((int)canvasWidth, (int)canvasHeight, Bitmap.Config.ARGB_8888);
102 | Canvas c = new Canvas(bitmap);
103 |
104 | this.draw(c);
105 |
106 |
107 | Bitmap croppedBitmap = cropImage(bitmap, signBoundingRectangle);
108 |
109 | ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
110 | croppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
111 | byte[] byteArray = byteArrayOutputStream .toByteArray();
112 | String encoded = Base64.encodeToString(byteArray, Base64.DEFAULT);
113 | return encoded;
114 | }
115 |
116 |
117 | }
118 |
119 | return null;
120 | }
121 |
122 | /**
123 | * Used to inform the callback users that something has changed in canvas.
124 | *
125 | * THis methods should be called whenever there is a signature available/Modified
126 | * i.e., it should be called on every TouchUp/TouchCanceled event.
127 | *
128 | * It should also be called when user clears the signature.
129 | */
130 | private void updateSignAvailability(){
131 | if(signViewCallbacks != null){
132 | signViewCallbacks.onSignAvailable(getContext(), getId(), getSignature());
133 | }
134 | }
135 |
136 | public boolean onTap(MotionEvent event) {
137 | currentPath.addCircle(event.getX(), event.getY(), paint.getStrokeWidth()/2, Path.Direction.CW);
138 | invalidate();
139 | return true;
140 | }
141 |
142 | @Override
143 | public boolean onTouchEvent(MotionEvent event) {
144 | this.gestureDetector.onTouchEvent(event);
145 |
146 | float ex = event.getX();
147 | float ey = event.getY();
148 |
149 |
150 | int action = event.getAction();
151 |
152 |
153 | if(action == MotionEvent.ACTION_DOWN){
154 | currentPath.moveTo(event.getX(), event.getY());
155 | } else if(action == MotionEvent.ACTION_UP){
156 | if(ex > vl && ex < vr && ey > vt && ey < vb){
157 | this.updateSignAvailability();
158 | invalidate();
159 | }
160 | }
161 | else if(action == MotionEvent.ACTION_MOVE){
162 | if(ex > vl && ex < vr && ey > vt && ey < vb){
163 | currentPath.lineTo(event.getX(), event.getY());
164 | invalidate();
165 | }
166 | }
167 | return true;
168 | }
169 |
170 | @Override
171 | protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
172 | super.onLayout(changed, left, top, right, bottom);
173 | vl = 0;
174 | vr = right - left;
175 | vt = 0;
176 | vb = bottom - top;
177 | }
178 |
179 | @Override
180 | protected void onDraw(Canvas canvas) {
181 | super.onDraw(canvas);
182 | canvas.drawPath(currentPath, paint);
183 | }
184 |
185 | }
--------------------------------------------------------------------------------
/example/sample/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 | * // for example: to disable dev mode in the staging build type (if configured)
38 | * devDisabledInStaging: true,
39 | * // The configuration property can be in the following formats
40 | * // 'devDisabledIn${productFlavor}${buildType}'
41 | * // 'devDisabledIn${buildType}'
42 | *
43 | * // the root of your project, i.e. where "package.json" lives
44 | * root: "../../",
45 | *
46 | * // where to put the JS bundle asset in debug mode
47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 | *
49 | * // where to put the JS bundle asset in release mode
50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 | *
52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 | * // require('./image.png')), in debug mode
54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 | *
56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 | * // require('./image.png')), in release mode
58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 | *
60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 | * // for example, you might want to remove it from here.
65 | * inputExcludes: ["android/**", "ios/**"],
66 | *
67 | * // override which node gets called and with what additional arguments
68 | * nodeExecutableAndArgs: ["node"],
69 | *
70 | * // supply additional arguments to the packager
71 | * extraPackagerArgs: []
72 | * ]
73 | */
74 |
75 | project.ext.react = [
76 | entryFile: "index.js"
77 | ]
78 |
79 | apply from: "../../node_modules/react-native/react.gradle"
80 |
81 | /**
82 | * Set this to true to create two separate APKs instead of one:
83 | * - An APK that only works on ARM devices
84 | * - An APK that only works on x86 devices
85 | * The advantage is the size of the APK is reduced by about 4MB.
86 | * Upload all the APKs to the Play Store and people will download
87 | * the correct one based on the CPU architecture of their device.
88 | */
89 | def enableSeparateBuildPerCPUArchitecture = false
90 |
91 | /**
92 | * Run Proguard to shrink the Java bytecode in release builds.
93 | */
94 | def enableProguardInReleaseBuilds = false
95 |
96 | android {
97 | compileSdkVersion rootProject.ext.compileSdkVersion
98 | buildToolsVersion rootProject.ext.buildToolsVersion
99 |
100 | defaultConfig {
101 | applicationId "com.sample"
102 | minSdkVersion rootProject.ext.minSdkVersion
103 | targetSdkVersion rootProject.ext.targetSdkVersion
104 | versionCode 1
105 | versionName "1.0"
106 | }
107 | splits {
108 | abi {
109 | reset()
110 | enable enableSeparateBuildPerCPUArchitecture
111 | universalApk false // If true, also generate a universal APK
112 | include "armeabi-v7a", "x86", "arm64-v8a"
113 | }
114 | }
115 | buildTypes {
116 | release {
117 | minifyEnabled enableProguardInReleaseBuilds
118 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
119 | }
120 | }
121 | // applicationVariants are e.g. debug, release
122 | applicationVariants.all { variant ->
123 | variant.outputs.each { output ->
124 | // For each separate APK per architecture, set a unique version code as described here:
125 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
126 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3]
127 | def abi = output.getFilter(OutputFile.ABI)
128 | if (abi != null) { // null for the universal-debug, universal-release variants
129 | output.versionCodeOverride =
130 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
131 | }
132 | }
133 | }
134 | }
135 |
136 | dependencies {
137 | implementation fileTree(dir: "libs", include: ["*.jar"])
138 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
139 | implementation "com.facebook.react:react-native:+" // From
140 | implementation project(':reactnativesignview')
141 | }
142 |
143 | // Run this once to be able to run the application with BUCK
144 | // puts all compile dependencies into folder libs for BUCK to use
145 | task copyDownloadableDepsToLibs(type: Copy) {
146 | from configurations.compile
147 | into 'libs'
148 | }
149 |
--------------------------------------------------------------------------------
/ios/ReactNativeSignView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 681F0990221CE3A7003A4869 /* SignView.m in Sources */ = {isa = PBXBuildFile; fileRef = 681F098F221CE3A7003A4869 /* SignView.m */; };
11 | 681F09B6221CE812003A4869 /* RCTSignView.m in Sources */ = {isa = PBXBuildFile; fileRef = 681F09B5221CE812003A4869 /* RCTSignView.m */; };
12 | 682F002F2211A99300EA2011 /* SignViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 682F002E2211A99300EA2011 /* SignViewManager.m */; };
13 | /* End PBXBuildFile section */
14 |
15 | /* Begin PBXCopyFilesBuildPhase section */
16 | 682FFFDD221199DF00EA2011 /* CopyFiles */ = {
17 | isa = PBXCopyFilesBuildPhase;
18 | buildActionMask = 2147483647;
19 | dstPath = "include/$(PRODUCT_NAME)";
20 | dstSubfolderSpec = 16;
21 | files = (
22 | );
23 | runOnlyForDeploymentPostprocessing = 0;
24 | };
25 | /* End PBXCopyFilesBuildPhase section */
26 |
27 | /* Begin PBXFileReference section */
28 | 681F098F221CE3A7003A4869 /* SignView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SignView.m; sourceTree = ""; };
29 | 681F09B4221CE3E2003A4869 /* SignView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SignView.h; sourceTree = ""; };
30 | 681F09B5221CE812003A4869 /* RCTSignView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTSignView.m; sourceTree = ""; };
31 | 681F09B7221CE8F0003A4869 /* RCTSignView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTSignView.h; sourceTree = ""; };
32 | 682F002E2211A99300EA2011 /* SignViewManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SignViewManager.m; sourceTree = ""; };
33 | 682FFFDF221199DF00EA2011 /* libReactNativeSignView.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativeSignView.a; sourceTree = BUILT_PRODUCTS_DIR; };
34 | 68777C9A221DC86D008550D3 /* SignViewCallbacks.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SignViewCallbacks.h; sourceTree = ""; };
35 | /* End PBXFileReference section */
36 |
37 | /* Begin PBXFrameworksBuildPhase section */
38 | 682FFFDC221199DF00EA2011 /* Frameworks */ = {
39 | isa = PBXFrameworksBuildPhase;
40 | buildActionMask = 2147483647;
41 | files = (
42 | );
43 | runOnlyForDeploymentPostprocessing = 0;
44 | };
45 | /* End PBXFrameworksBuildPhase section */
46 |
47 | /* Begin PBXGroup section */
48 | 682FFFD6221199DF00EA2011 = {
49 | isa = PBXGroup;
50 | children = (
51 | 682FFFE1221199DF00EA2011 /* ReactNativeSignView */,
52 | 682FFFE0221199DF00EA2011 /* Products */,
53 | );
54 | sourceTree = "";
55 | };
56 | 682FFFE0221199DF00EA2011 /* Products */ = {
57 | isa = PBXGroup;
58 | children = (
59 | 682FFFDF221199DF00EA2011 /* libReactNativeSignView.a */,
60 | );
61 | name = Products;
62 | sourceTree = "";
63 | };
64 | 682FFFE1221199DF00EA2011 /* ReactNativeSignView */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 682F002E2211A99300EA2011 /* SignViewManager.m */,
68 | 681F098F221CE3A7003A4869 /* SignView.m */,
69 | 681F09B4221CE3E2003A4869 /* SignView.h */,
70 | 681F09B5221CE812003A4869 /* RCTSignView.m */,
71 | 681F09B7221CE8F0003A4869 /* RCTSignView.h */,
72 | 68777C9A221DC86D008550D3 /* SignViewCallbacks.h */,
73 | );
74 | path = ReactNativeSignView;
75 | sourceTree = "";
76 | };
77 | /* End PBXGroup section */
78 |
79 | /* Begin PBXNativeTarget section */
80 | 682FFFDE221199DF00EA2011 /* ReactNativeSignView */ = {
81 | isa = PBXNativeTarget;
82 | buildConfigurationList = 682FFFE8221199DF00EA2011 /* Build configuration list for PBXNativeTarget "ReactNativeSignView" */;
83 | buildPhases = (
84 | 682FFFDB221199DF00EA2011 /* Sources */,
85 | 682FFFDC221199DF00EA2011 /* Frameworks */,
86 | 682FFFDD221199DF00EA2011 /* CopyFiles */,
87 | );
88 | buildRules = (
89 | );
90 | dependencies = (
91 | );
92 | name = ReactNativeSignView;
93 | productName = ReactNativeSignView;
94 | productReference = 682FFFDF221199DF00EA2011 /* libReactNativeSignView.a */;
95 | productType = "com.apple.product-type.library.static";
96 | };
97 | /* End PBXNativeTarget section */
98 |
99 | /* Begin PBXProject section */
100 | 682FFFD7221199DF00EA2011 /* Project object */ = {
101 | isa = PBXProject;
102 | attributes = {
103 | LastUpgradeCheck = 1010;
104 | ORGANIZATIONNAME = Tekion;
105 | TargetAttributes = {
106 | 682FFFDE221199DF00EA2011 = {
107 | CreatedOnToolsVersion = 10.1;
108 | LastSwiftMigration = 1010;
109 | };
110 | };
111 | };
112 | buildConfigurationList = 682FFFDA221199DF00EA2011 /* Build configuration list for PBXProject "ReactNativeSignView" */;
113 | compatibilityVersion = "Xcode 9.3";
114 | developmentRegion = en;
115 | hasScannedForEncodings = 0;
116 | knownRegions = (
117 | en,
118 | );
119 | mainGroup = 682FFFD6221199DF00EA2011;
120 | productRefGroup = 682FFFE0221199DF00EA2011 /* Products */;
121 | projectDirPath = "";
122 | projectRoot = "";
123 | targets = (
124 | 682FFFDE221199DF00EA2011 /* ReactNativeSignView */,
125 | );
126 | };
127 | /* End PBXProject section */
128 |
129 | /* Begin PBXSourcesBuildPhase section */
130 | 682FFFDB221199DF00EA2011 /* Sources */ = {
131 | isa = PBXSourcesBuildPhase;
132 | buildActionMask = 2147483647;
133 | files = (
134 | 682F002F2211A99300EA2011 /* SignViewManager.m in Sources */,
135 | 681F09B6221CE812003A4869 /* RCTSignView.m in Sources */,
136 | 681F0990221CE3A7003A4869 /* SignView.m in Sources */,
137 | );
138 | runOnlyForDeploymentPostprocessing = 0;
139 | };
140 | /* End PBXSourcesBuildPhase section */
141 |
142 | /* Begin XCBuildConfiguration section */
143 | 682FFFE6221199DF00EA2011 /* Debug */ = {
144 | isa = XCBuildConfiguration;
145 | buildSettings = {
146 | ALWAYS_SEARCH_USER_PATHS = NO;
147 | CLANG_ANALYZER_NONNULL = YES;
148 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
149 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
150 | CLANG_CXX_LIBRARY = "libc++";
151 | CLANG_ENABLE_MODULES = YES;
152 | CLANG_ENABLE_OBJC_ARC = YES;
153 | CLANG_ENABLE_OBJC_WEAK = YES;
154 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
155 | CLANG_WARN_BOOL_CONVERSION = YES;
156 | CLANG_WARN_COMMA = YES;
157 | CLANG_WARN_CONSTANT_CONVERSION = YES;
158 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
159 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
160 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
161 | CLANG_WARN_EMPTY_BODY = YES;
162 | CLANG_WARN_ENUM_CONVERSION = YES;
163 | CLANG_WARN_INFINITE_RECURSION = YES;
164 | CLANG_WARN_INT_CONVERSION = YES;
165 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
166 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
167 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
168 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
169 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
170 | CLANG_WARN_STRICT_PROTOTYPES = YES;
171 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
172 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
173 | CLANG_WARN_UNREACHABLE_CODE = YES;
174 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
175 | CODE_SIGN_IDENTITY = "iPhone Developer";
176 | COPY_PHASE_STRIP = NO;
177 | DEBUG_INFORMATION_FORMAT = dwarf;
178 | ENABLE_STRICT_OBJC_MSGSEND = YES;
179 | ENABLE_TESTABILITY = YES;
180 | GCC_C_LANGUAGE_STANDARD = gnu11;
181 | GCC_DYNAMIC_NO_PIC = NO;
182 | GCC_NO_COMMON_BLOCKS = YES;
183 | GCC_OPTIMIZATION_LEVEL = 0;
184 | GCC_PREPROCESSOR_DEFINITIONS = (
185 | "DEBUG=1",
186 | "$(inherited)",
187 | );
188 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
189 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
190 | GCC_WARN_UNDECLARED_SELECTOR = YES;
191 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
192 | GCC_WARN_UNUSED_FUNCTION = YES;
193 | GCC_WARN_UNUSED_VARIABLE = YES;
194 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
195 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
196 | MTL_FAST_MATH = YES;
197 | ONLY_ACTIVE_ARCH = YES;
198 | SDKROOT = iphoneos;
199 | };
200 | name = Debug;
201 | };
202 | 682FFFE7221199DF00EA2011 /* Release */ = {
203 | isa = XCBuildConfiguration;
204 | buildSettings = {
205 | ALWAYS_SEARCH_USER_PATHS = NO;
206 | CLANG_ANALYZER_NONNULL = YES;
207 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
208 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
209 | CLANG_CXX_LIBRARY = "libc++";
210 | CLANG_ENABLE_MODULES = YES;
211 | CLANG_ENABLE_OBJC_ARC = YES;
212 | CLANG_ENABLE_OBJC_WEAK = YES;
213 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
214 | CLANG_WARN_BOOL_CONVERSION = YES;
215 | CLANG_WARN_COMMA = YES;
216 | CLANG_WARN_CONSTANT_CONVERSION = YES;
217 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
218 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
219 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
220 | CLANG_WARN_EMPTY_BODY = YES;
221 | CLANG_WARN_ENUM_CONVERSION = YES;
222 | CLANG_WARN_INFINITE_RECURSION = YES;
223 | CLANG_WARN_INT_CONVERSION = YES;
224 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
225 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
226 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
227 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
228 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
229 | CLANG_WARN_STRICT_PROTOTYPES = YES;
230 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
231 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
232 | CLANG_WARN_UNREACHABLE_CODE = YES;
233 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
234 | CODE_SIGN_IDENTITY = "iPhone Developer";
235 | COPY_PHASE_STRIP = NO;
236 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
237 | ENABLE_NS_ASSERTIONS = NO;
238 | ENABLE_STRICT_OBJC_MSGSEND = YES;
239 | GCC_C_LANGUAGE_STANDARD = gnu11;
240 | GCC_NO_COMMON_BLOCKS = YES;
241 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
242 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
243 | GCC_WARN_UNDECLARED_SELECTOR = YES;
244 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
245 | GCC_WARN_UNUSED_FUNCTION = YES;
246 | GCC_WARN_UNUSED_VARIABLE = YES;
247 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
248 | MTL_ENABLE_DEBUG_INFO = NO;
249 | MTL_FAST_MATH = YES;
250 | SDKROOT = iphoneos;
251 | VALIDATE_PRODUCT = YES;
252 | };
253 | name = Release;
254 | };
255 | 682FFFE9221199DF00EA2011 /* Debug */ = {
256 | isa = XCBuildConfiguration;
257 | buildSettings = {
258 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
259 | CLANG_ENABLE_MODULES = YES;
260 | CODE_SIGN_STYLE = Automatic;
261 | LD_RUNPATH_SEARCH_PATHS = (
262 | "$(inherited)",
263 | "@executable_path/Frameworks",
264 | "@loader_path/Frameworks",
265 | );
266 | OTHER_LDFLAGS = "-ObjC";
267 | PRODUCT_NAME = "$(TARGET_NAME)";
268 | SKIP_INSTALL = YES;
269 | SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeSignView/unused_swift_code/ReactNativeSignView-Bridging-Header.h";
270 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
271 | SWIFT_VERSION = 4.2;
272 | TARGETED_DEVICE_FAMILY = "1,2";
273 | };
274 | name = Debug;
275 | };
276 | 682FFFEA221199DF00EA2011 /* Release */ = {
277 | isa = XCBuildConfiguration;
278 | buildSettings = {
279 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
280 | CLANG_ENABLE_MODULES = YES;
281 | CODE_SIGN_STYLE = Automatic;
282 | LD_RUNPATH_SEARCH_PATHS = (
283 | "$(inherited)",
284 | "@executable_path/Frameworks",
285 | "@loader_path/Frameworks",
286 | );
287 | OTHER_LDFLAGS = "-ObjC";
288 | PRODUCT_NAME = "$(TARGET_NAME)";
289 | SKIP_INSTALL = YES;
290 | SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeSignView/unused_swift_code/ReactNativeSignView-Bridging-Header.h";
291 | SWIFT_VERSION = 4.2;
292 | TARGETED_DEVICE_FAMILY = "1,2";
293 | };
294 | name = Release;
295 | };
296 | /* End XCBuildConfiguration section */
297 |
298 | /* Begin XCConfigurationList section */
299 | 682FFFDA221199DF00EA2011 /* Build configuration list for PBXProject "ReactNativeSignView" */ = {
300 | isa = XCConfigurationList;
301 | buildConfigurations = (
302 | 682FFFE6221199DF00EA2011 /* Debug */,
303 | 682FFFE7221199DF00EA2011 /* Release */,
304 | );
305 | defaultConfigurationIsVisible = 0;
306 | defaultConfigurationName = Release;
307 | };
308 | 682FFFE8221199DF00EA2011 /* Build configuration list for PBXNativeTarget "ReactNativeSignView" */ = {
309 | isa = XCConfigurationList;
310 | buildConfigurations = (
311 | 682FFFE9221199DF00EA2011 /* Debug */,
312 | 682FFFEA221199DF00EA2011 /* Release */,
313 | );
314 | defaultConfigurationIsVisible = 0;
315 | defaultConfigurationName = Release;
316 | };
317 | /* End XCConfigurationList section */
318 | };
319 | rootObject = 682FFFD7221199DF00EA2011 /* Project object */;
320 | }
321 |
--------------------------------------------------------------------------------
/example/sample/ios/sample.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 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
24 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
25 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
26 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
27 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
28 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; };
29 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; };
30 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; };
31 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; };
32 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
33 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
34 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
35 | 682F002A2211A35100EA2011 /* libReactNativeSignView.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 682F00292211A32500EA2011 /* libReactNativeSignView.a */; };
36 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
37 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
38 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
39 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
40 | /* End PBXBuildFile section */
41 |
42 | /* Begin PBXContainerItemProxy section */
43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
44 | isa = PBXContainerItemProxy;
45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
46 | proxyType = 2;
47 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
48 | remoteInfo = RCTActionSheet;
49 | };
50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
51 | isa = PBXContainerItemProxy;
52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
53 | proxyType = 2;
54 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
55 | remoteInfo = RCTGeolocation;
56 | };
57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
58 | isa = PBXContainerItemProxy;
59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
60 | proxyType = 2;
61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
62 | remoteInfo = RCTImage;
63 | };
64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
65 | isa = PBXContainerItemProxy;
66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
67 | proxyType = 2;
68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
69 | remoteInfo = RCTNetwork;
70 | };
71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
72 | isa = PBXContainerItemProxy;
73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
74 | proxyType = 2;
75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
76 | remoteInfo = RCTVibration;
77 | };
78 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
79 | isa = PBXContainerItemProxy;
80 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
81 | proxyType = 2;
82 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
83 | remoteInfo = RCTSettings;
84 | };
85 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
86 | isa = PBXContainerItemProxy;
87 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
88 | proxyType = 2;
89 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
90 | remoteInfo = RCTWebSocket;
91 | };
92 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
93 | isa = PBXContainerItemProxy;
94 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
95 | proxyType = 2;
96 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
97 | remoteInfo = React;
98 | };
99 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
100 | isa = PBXContainerItemProxy;
101 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
102 | proxyType = 2;
103 | remoteGlobalIDString = ADD01A681E09402E00F6D226;
104 | remoteInfo = "RCTBlob-tvOS";
105 | };
106 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
107 | isa = PBXContainerItemProxy;
108 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
109 | proxyType = 2;
110 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
111 | remoteInfo = fishhook;
112 | };
113 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = {
114 | isa = PBXContainerItemProxy;
115 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
116 | proxyType = 2;
117 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
118 | remoteInfo = "fishhook-tvOS";
119 | };
120 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = {
121 | isa = PBXContainerItemProxy;
122 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
123 | proxyType = 2;
124 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5;
125 | remoteInfo = jsinspector;
126 | };
127 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = {
128 | isa = PBXContainerItemProxy;
129 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
130 | proxyType = 2;
131 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5;
132 | remoteInfo = "jsinspector-tvOS";
133 | };
134 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = {
135 | isa = PBXContainerItemProxy;
136 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
137 | proxyType = 2;
138 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7;
139 | remoteInfo = "third-party";
140 | };
141 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = {
142 | isa = PBXContainerItemProxy;
143 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
144 | proxyType = 2;
145 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8;
146 | remoteInfo = "third-party-tvOS";
147 | };
148 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = {
149 | isa = PBXContainerItemProxy;
150 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
151 | proxyType = 2;
152 | remoteGlobalIDString = 139D7E881E25C6D100323FB7;
153 | remoteInfo = "double-conversion";
154 | };
155 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = {
156 | isa = PBXContainerItemProxy;
157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
158 | proxyType = 2;
159 | remoteGlobalIDString = 3D383D621EBD27B9005632C8;
160 | remoteInfo = "double-conversion-tvOS";
161 | };
162 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
163 | isa = PBXContainerItemProxy;
164 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
165 | proxyType = 2;
166 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
167 | remoteInfo = "RCTImage-tvOS";
168 | };
169 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
170 | isa = PBXContainerItemProxy;
171 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
172 | proxyType = 2;
173 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
174 | remoteInfo = "RCTLinking-tvOS";
175 | };
176 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
177 | isa = PBXContainerItemProxy;
178 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
179 | proxyType = 2;
180 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
181 | remoteInfo = "RCTNetwork-tvOS";
182 | };
183 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
184 | isa = PBXContainerItemProxy;
185 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
186 | proxyType = 2;
187 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
188 | remoteInfo = "RCTSettings-tvOS";
189 | };
190 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
191 | isa = PBXContainerItemProxy;
192 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
193 | proxyType = 2;
194 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
195 | remoteInfo = "RCTText-tvOS";
196 | };
197 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
198 | isa = PBXContainerItemProxy;
199 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
200 | proxyType = 2;
201 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
202 | remoteInfo = "RCTWebSocket-tvOS";
203 | };
204 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
205 | isa = PBXContainerItemProxy;
206 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
207 | proxyType = 2;
208 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
209 | remoteInfo = "React-tvOS";
210 | };
211 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
212 | isa = PBXContainerItemProxy;
213 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
214 | proxyType = 2;
215 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
216 | remoteInfo = yoga;
217 | };
218 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
219 | isa = PBXContainerItemProxy;
220 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
221 | proxyType = 2;
222 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
223 | remoteInfo = "yoga-tvOS";
224 | };
225 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
226 | isa = PBXContainerItemProxy;
227 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
228 | proxyType = 2;
229 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
230 | remoteInfo = cxxreact;
231 | };
232 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
233 | isa = PBXContainerItemProxy;
234 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
235 | proxyType = 2;
236 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
237 | remoteInfo = "cxxreact-tvOS";
238 | };
239 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
240 | isa = PBXContainerItemProxy;
241 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
242 | proxyType = 2;
243 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
244 | remoteInfo = RCTAnimation;
245 | };
246 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
247 | isa = PBXContainerItemProxy;
248 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
249 | proxyType = 2;
250 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
251 | remoteInfo = "RCTAnimation-tvOS";
252 | };
253 | 682F001F2211A32500EA2011 /* PBXContainerItemProxy */ = {
254 | isa = PBXContainerItemProxy;
255 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
256 | proxyType = 2;
257 | remoteGlobalIDString = EDEBC6D6214B3E7000DD5AC8;
258 | remoteInfo = jsi;
259 | };
260 | 682F00212211A32500EA2011 /* PBXContainerItemProxy */ = {
261 | isa = PBXContainerItemProxy;
262 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
263 | proxyType = 2;
264 | remoteGlobalIDString = EDEBC73B214B45A300DD5AC8;
265 | remoteInfo = jsiexecutor;
266 | };
267 | 682F00232211A32500EA2011 /* PBXContainerItemProxy */ = {
268 | isa = PBXContainerItemProxy;
269 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
270 | proxyType = 2;
271 | remoteGlobalIDString = ED296FB6214C9A0900B7C4FE;
272 | remoteInfo = "jsi-tvOS";
273 | };
274 | 682F00252211A32500EA2011 /* PBXContainerItemProxy */ = {
275 | isa = PBXContainerItemProxy;
276 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
277 | proxyType = 2;
278 | remoteGlobalIDString = ED296FEE214C9CF800B7C4FE;
279 | remoteInfo = "jsiexecutor-tvOS";
280 | };
281 | 682F00282211A32500EA2011 /* PBXContainerItemProxy */ = {
282 | isa = PBXContainerItemProxy;
283 | containerPortal = 682FFFF72211A32500EA2011 /* ReactNativeSignView.xcodeproj */;
284 | proxyType = 2;
285 | remoteGlobalIDString = 682FFFDF221199DF00EA2011;
286 | remoteInfo = ReactNativeSignView;
287 | };
288 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
289 | isa = PBXContainerItemProxy;
290 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
291 | proxyType = 2;
292 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
293 | remoteInfo = RCTLinking;
294 | };
295 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
296 | isa = PBXContainerItemProxy;
297 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
298 | proxyType = 2;
299 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
300 | remoteInfo = RCTText;
301 | };
302 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = {
303 | isa = PBXContainerItemProxy;
304 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
305 | proxyType = 2;
306 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814;
307 | remoteInfo = RCTBlob;
308 | };
309 | /* End PBXContainerItemProxy section */
310 |
311 | /* Begin PBXFileReference section */
312 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
313 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
314 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
315 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
316 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
317 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; 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 /* sample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = sample.app; sourceTree = BUILT_PRODUCTS_DIR; };
321 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = sample/AppDelegate.h; sourceTree = ""; };
322 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = sample/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 = sample/Images.xcassets; sourceTree = ""; };
325 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = sample/Info.plist; sourceTree = ""; };
326 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = sample/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 | 2D02E47B1E0B4A5D006451C7 /* sample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "sample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
329 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
330 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
331 | 682FFFF72211A32500EA2011 /* ReactNativeSignView.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ReactNativeSignView.xcodeproj; path = ../../../ios/ReactNativeSignView.xcodeproj; sourceTree = ""; };
332 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
333 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
334 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; };
335 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
336 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
337 | /* End PBXFileReference section */
338 |
339 | /* Begin PBXFrameworksBuildPhase section */
340 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
341 | isa = PBXFrameworksBuildPhase;
342 | buildActionMask = 2147483647;
343 | files = (
344 | 682F002A2211A35100EA2011 /* libReactNativeSignView.a in Frameworks */,
345 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */,
346 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
347 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */,
348 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
349 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
350 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
351 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
352 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
353 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
354 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
355 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
356 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
357 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
358 | );
359 | runOnlyForDeploymentPostprocessing = 0;
360 | };
361 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
362 | isa = PBXFrameworksBuildPhase;
363 | buildActionMask = 2147483647;
364 | files = (
365 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */,
366 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */,
367 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */,
368 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
369 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
370 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
371 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
372 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
373 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
374 | );
375 | runOnlyForDeploymentPostprocessing = 0;
376 | };
377 | /* End PBXFrameworksBuildPhase section */
378 |
379 | /* Begin PBXGroup section */
380 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
381 | isa = PBXGroup;
382 | children = (
383 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
384 | );
385 | name = Products;
386 | sourceTree = "";
387 | };
388 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
389 | isa = PBXGroup;
390 | children = (
391 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
392 | );
393 | name = Products;
394 | sourceTree = "";
395 | };
396 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
397 | isa = PBXGroup;
398 | children = (
399 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
400 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
401 | );
402 | name = Products;
403 | sourceTree = "";
404 | };
405 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
406 | isa = PBXGroup;
407 | children = (
408 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
409 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
410 | );
411 | name = Products;
412 | sourceTree = "";
413 | };
414 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
415 | isa = PBXGroup;
416 | children = (
417 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
418 | );
419 | name = Products;
420 | sourceTree = "";
421 | };
422 | 139105B71AF99BAD00B5F7CC /* Products */ = {
423 | isa = PBXGroup;
424 | children = (
425 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
426 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
427 | );
428 | name = Products;
429 | sourceTree = "";
430 | };
431 | 139FDEE71B06529A00C62182 /* Products */ = {
432 | isa = PBXGroup;
433 | children = (
434 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
435 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
436 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */,
437 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */,
438 | );
439 | name = Products;
440 | sourceTree = "";
441 | };
442 | 13B07FAE1A68108700A75B9A /* sample */ = {
443 | isa = PBXGroup;
444 | children = (
445 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
446 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
447 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
448 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
449 | 13B07FB61A68108700A75B9A /* Info.plist */,
450 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
451 | 13B07FB71A68108700A75B9A /* main.m */,
452 | );
453 | name = sample;
454 | sourceTree = "";
455 | };
456 | 146834001AC3E56700842450 /* Products */ = {
457 | isa = PBXGroup;
458 | children = (
459 | 146834041AC3E56700842450 /* libReact.a */,
460 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
461 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
462 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
463 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
464 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
465 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */,
466 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */,
467 | 2DF0FFE32056DD460020B375 /* libthird-party.a */,
468 | 2DF0FFE52056DD460020B375 /* libthird-party.a */,
469 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */,
470 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */,
471 | 682F00202211A32500EA2011 /* libjsi.a */,
472 | 682F00222211A32500EA2011 /* libjsiexecutor.a */,
473 | 682F00242211A32500EA2011 /* libjsi-tvOS.a */,
474 | 682F00262211A32500EA2011 /* libjsiexecutor-tvOS.a */,
475 | );
476 | name = Products;
477 | sourceTree = "";
478 | };
479 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
480 | isa = PBXGroup;
481 | children = (
482 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
483 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
484 | 2D16E6891FA4F8E400B85C8A /* libReact.a */,
485 | );
486 | name = Frameworks;
487 | sourceTree = "";
488 | };
489 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
490 | isa = PBXGroup;
491 | children = (
492 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
493 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */,
494 | );
495 | name = Products;
496 | sourceTree = "";
497 | };
498 | 682FFFF82211A32500EA2011 /* Products */ = {
499 | isa = PBXGroup;
500 | children = (
501 | 682F00292211A32500EA2011 /* libReactNativeSignView.a */,
502 | );
503 | name = Products;
504 | sourceTree = "";
505 | };
506 | 78C398B11ACF4ADC00677621 /* Products */ = {
507 | isa = PBXGroup;
508 | children = (
509 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
510 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
511 | );
512 | name = Products;
513 | sourceTree = "";
514 | };
515 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
516 | isa = PBXGroup;
517 | children = (
518 | 682FFFF72211A32500EA2011 /* ReactNativeSignView.xcodeproj */,
519 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
520 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
521 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
522 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */,
523 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
524 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
525 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
526 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
527 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
528 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
529 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
530 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
531 | );
532 | name = Libraries;
533 | sourceTree = "";
534 | };
535 | 832341B11AAA6A8300B99B32 /* Products */ = {
536 | isa = PBXGroup;
537 | children = (
538 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
539 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
540 | );
541 | name = Products;
542 | sourceTree = "";
543 | };
544 | 83CBB9F61A601CBA00E9B192 = {
545 | isa = PBXGroup;
546 | children = (
547 | 13B07FAE1A68108700A75B9A /* sample */,
548 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
549 | 83CBBA001A601CBA00E9B192 /* Products */,
550 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
551 | );
552 | indentWidth = 2;
553 | sourceTree = "";
554 | tabWidth = 2;
555 | usesTabs = 0;
556 | };
557 | 83CBBA001A601CBA00E9B192 /* Products */ = {
558 | isa = PBXGroup;
559 | children = (
560 | 13B07F961A680F5B00A75B9A /* sample.app */,
561 | 2D02E47B1E0B4A5D006451C7 /* sample-tvOS.app */,
562 | );
563 | name = Products;
564 | sourceTree = "";
565 | };
566 | ADBDB9201DFEBF0600ED6528 /* Products */ = {
567 | isa = PBXGroup;
568 | children = (
569 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */,
570 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */,
571 | );
572 | name = Products;
573 | sourceTree = "";
574 | };
575 | /* End PBXGroup section */
576 |
577 | /* Begin PBXNativeTarget section */
578 | 13B07F861A680F5B00A75B9A /* sample */ = {
579 | isa = PBXNativeTarget;
580 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "sample" */;
581 | buildPhases = (
582 | 13B07F871A680F5B00A75B9A /* Sources */,
583 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
584 | 13B07F8E1A680F5B00A75B9A /* Resources */,
585 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
586 | );
587 | buildRules = (
588 | );
589 | dependencies = (
590 | );
591 | name = sample;
592 | productName = "Hello World";
593 | productReference = 13B07F961A680F5B00A75B9A /* sample.app */;
594 | productType = "com.apple.product-type.application";
595 | };
596 | 2D02E47A1E0B4A5D006451C7 /* sample-tvOS */ = {
597 | isa = PBXNativeTarget;
598 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "sample-tvOS" */;
599 | buildPhases = (
600 | 2D02E4771E0B4A5D006451C7 /* Sources */,
601 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
602 | 2D02E4791E0B4A5D006451C7 /* Resources */,
603 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
604 | );
605 | buildRules = (
606 | );
607 | dependencies = (
608 | );
609 | name = "sample-tvOS";
610 | productName = "sample-tvOS";
611 | productReference = 2D02E47B1E0B4A5D006451C7 /* sample-tvOS.app */;
612 | productType = "com.apple.product-type.application";
613 | };
614 | /* End PBXNativeTarget section */
615 |
616 | /* Begin PBXProject section */
617 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
618 | isa = PBXProject;
619 | attributes = {
620 | LastUpgradeCheck = 0940;
621 | ORGANIZATIONNAME = Facebook;
622 | TargetAttributes = {
623 | 13B07F861A680F5B00A75B9A = {
624 | DevelopmentTeam = G2DQH9EWMF;
625 | LastSwiftMigration = 1010;
626 | ProvisioningStyle = Manual;
627 | };
628 | 2D02E47A1E0B4A5D006451C7 = {
629 | CreatedOnToolsVersion = 8.2.1;
630 | ProvisioningStyle = Automatic;
631 | };
632 | };
633 | };
634 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "sample" */;
635 | compatibilityVersion = "Xcode 3.2";
636 | developmentRegion = English;
637 | hasScannedForEncodings = 0;
638 | knownRegions = (
639 | en,
640 | Base,
641 | );
642 | mainGroup = 83CBB9F61A601CBA00E9B192;
643 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
644 | projectDirPath = "";
645 | projectReferences = (
646 | {
647 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
648 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
649 | },
650 | {
651 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
652 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
653 | },
654 | {
655 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */;
656 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */;
657 | },
658 | {
659 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
660 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
661 | },
662 | {
663 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
664 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
665 | },
666 | {
667 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
668 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
669 | },
670 | {
671 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
672 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
673 | },
674 | {
675 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
676 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
677 | },
678 | {
679 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
680 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
681 | },
682 | {
683 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
684 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
685 | },
686 | {
687 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
688 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
689 | },
690 | {
691 | ProductGroup = 146834001AC3E56700842450 /* Products */;
692 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
693 | },
694 | {
695 | ProductGroup = 682FFFF82211A32500EA2011 /* Products */;
696 | ProjectRef = 682FFFF72211A32500EA2011 /* ReactNativeSignView.xcodeproj */;
697 | },
698 | );
699 | projectRoot = "";
700 | targets = (
701 | 13B07F861A680F5B00A75B9A /* sample */,
702 | 2D02E47A1E0B4A5D006451C7 /* sample-tvOS */,
703 | );
704 | };
705 | /* End PBXProject section */
706 |
707 | /* Begin PBXReferenceProxy section */
708 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
709 | isa = PBXReferenceProxy;
710 | fileType = archive.ar;
711 | path = libRCTActionSheet.a;
712 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
713 | sourceTree = BUILT_PRODUCTS_DIR;
714 | };
715 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
716 | isa = PBXReferenceProxy;
717 | fileType = archive.ar;
718 | path = libRCTGeolocation.a;
719 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
720 | sourceTree = BUILT_PRODUCTS_DIR;
721 | };
722 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
723 | isa = PBXReferenceProxy;
724 | fileType = archive.ar;
725 | path = libRCTImage.a;
726 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
727 | sourceTree = BUILT_PRODUCTS_DIR;
728 | };
729 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
730 | isa = PBXReferenceProxy;
731 | fileType = archive.ar;
732 | path = libRCTNetwork.a;
733 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
734 | sourceTree = BUILT_PRODUCTS_DIR;
735 | };
736 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
737 | isa = PBXReferenceProxy;
738 | fileType = archive.ar;
739 | path = libRCTVibration.a;
740 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
741 | sourceTree = BUILT_PRODUCTS_DIR;
742 | };
743 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
744 | isa = PBXReferenceProxy;
745 | fileType = archive.ar;
746 | path = libRCTSettings.a;
747 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
748 | sourceTree = BUILT_PRODUCTS_DIR;
749 | };
750 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
751 | isa = PBXReferenceProxy;
752 | fileType = archive.ar;
753 | path = libRCTWebSocket.a;
754 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
755 | sourceTree = BUILT_PRODUCTS_DIR;
756 | };
757 | 146834041AC3E56700842450 /* libReact.a */ = {
758 | isa = PBXReferenceProxy;
759 | fileType = archive.ar;
760 | path = libReact.a;
761 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
762 | sourceTree = BUILT_PRODUCTS_DIR;
763 | };
764 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = {
765 | isa = PBXReferenceProxy;
766 | fileType = archive.ar;
767 | path = "libRCTBlob-tvOS.a";
768 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */;
769 | sourceTree = BUILT_PRODUCTS_DIR;
770 | };
771 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = {
772 | isa = PBXReferenceProxy;
773 | fileType = archive.ar;
774 | path = libfishhook.a;
775 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */;
776 | sourceTree = BUILT_PRODUCTS_DIR;
777 | };
778 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = {
779 | isa = PBXReferenceProxy;
780 | fileType = archive.ar;
781 | path = "libfishhook-tvOS.a";
782 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */;
783 | sourceTree = BUILT_PRODUCTS_DIR;
784 | };
785 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = {
786 | isa = PBXReferenceProxy;
787 | fileType = archive.ar;
788 | path = libjsinspector.a;
789 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */;
790 | sourceTree = BUILT_PRODUCTS_DIR;
791 | };
792 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = {
793 | isa = PBXReferenceProxy;
794 | fileType = archive.ar;
795 | path = "libjsinspector-tvOS.a";
796 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */;
797 | sourceTree = BUILT_PRODUCTS_DIR;
798 | };
799 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = {
800 | isa = PBXReferenceProxy;
801 | fileType = archive.ar;
802 | path = "libthird-party.a";
803 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */;
804 | sourceTree = BUILT_PRODUCTS_DIR;
805 | };
806 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = {
807 | isa = PBXReferenceProxy;
808 | fileType = archive.ar;
809 | path = "libthird-party.a";
810 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */;
811 | sourceTree = BUILT_PRODUCTS_DIR;
812 | };
813 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = {
814 | isa = PBXReferenceProxy;
815 | fileType = archive.ar;
816 | path = "libdouble-conversion.a";
817 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */;
818 | sourceTree = BUILT_PRODUCTS_DIR;
819 | };
820 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = {
821 | isa = PBXReferenceProxy;
822 | fileType = archive.ar;
823 | path = "libdouble-conversion.a";
824 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */;
825 | sourceTree = BUILT_PRODUCTS_DIR;
826 | };
827 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
828 | isa = PBXReferenceProxy;
829 | fileType = archive.ar;
830 | path = "libRCTImage-tvOS.a";
831 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
832 | sourceTree = BUILT_PRODUCTS_DIR;
833 | };
834 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
835 | isa = PBXReferenceProxy;
836 | fileType = archive.ar;
837 | path = "libRCTLinking-tvOS.a";
838 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
839 | sourceTree = BUILT_PRODUCTS_DIR;
840 | };
841 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
842 | isa = PBXReferenceProxy;
843 | fileType = archive.ar;
844 | path = "libRCTNetwork-tvOS.a";
845 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
846 | sourceTree = BUILT_PRODUCTS_DIR;
847 | };
848 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
849 | isa = PBXReferenceProxy;
850 | fileType = archive.ar;
851 | path = "libRCTSettings-tvOS.a";
852 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
853 | sourceTree = BUILT_PRODUCTS_DIR;
854 | };
855 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
856 | isa = PBXReferenceProxy;
857 | fileType = archive.ar;
858 | path = "libRCTText-tvOS.a";
859 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
860 | sourceTree = BUILT_PRODUCTS_DIR;
861 | };
862 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
863 | isa = PBXReferenceProxy;
864 | fileType = archive.ar;
865 | path = "libRCTWebSocket-tvOS.a";
866 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
867 | sourceTree = BUILT_PRODUCTS_DIR;
868 | };
869 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
870 | isa = PBXReferenceProxy;
871 | fileType = archive.ar;
872 | path = libReact.a;
873 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
874 | sourceTree = BUILT_PRODUCTS_DIR;
875 | };
876 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
877 | isa = PBXReferenceProxy;
878 | fileType = archive.ar;
879 | path = libyoga.a;
880 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
881 | sourceTree = BUILT_PRODUCTS_DIR;
882 | };
883 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
884 | isa = PBXReferenceProxy;
885 | fileType = archive.ar;
886 | path = libyoga.a;
887 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
888 | sourceTree = BUILT_PRODUCTS_DIR;
889 | };
890 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
891 | isa = PBXReferenceProxy;
892 | fileType = archive.ar;
893 | path = libcxxreact.a;
894 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
895 | sourceTree = BUILT_PRODUCTS_DIR;
896 | };
897 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
898 | isa = PBXReferenceProxy;
899 | fileType = archive.ar;
900 | path = libcxxreact.a;
901 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
902 | sourceTree = BUILT_PRODUCTS_DIR;
903 | };
904 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
905 | isa = PBXReferenceProxy;
906 | fileType = archive.ar;
907 | path = libRCTAnimation.a;
908 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
909 | sourceTree = BUILT_PRODUCTS_DIR;
910 | };
911 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
912 | isa = PBXReferenceProxy;
913 | fileType = archive.ar;
914 | path = libRCTAnimation.a;
915 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
916 | sourceTree = BUILT_PRODUCTS_DIR;
917 | };
918 | 682F00202211A32500EA2011 /* libjsi.a */ = {
919 | isa = PBXReferenceProxy;
920 | fileType = archive.ar;
921 | path = libjsi.a;
922 | remoteRef = 682F001F2211A32500EA2011 /* PBXContainerItemProxy */;
923 | sourceTree = BUILT_PRODUCTS_DIR;
924 | };
925 | 682F00222211A32500EA2011 /* libjsiexecutor.a */ = {
926 | isa = PBXReferenceProxy;
927 | fileType = archive.ar;
928 | path = libjsiexecutor.a;
929 | remoteRef = 682F00212211A32500EA2011 /* PBXContainerItemProxy */;
930 | sourceTree = BUILT_PRODUCTS_DIR;
931 | };
932 | 682F00242211A32500EA2011 /* libjsi-tvOS.a */ = {
933 | isa = PBXReferenceProxy;
934 | fileType = archive.ar;
935 | path = "libjsi-tvOS.a";
936 | remoteRef = 682F00232211A32500EA2011 /* PBXContainerItemProxy */;
937 | sourceTree = BUILT_PRODUCTS_DIR;
938 | };
939 | 682F00262211A32500EA2011 /* libjsiexecutor-tvOS.a */ = {
940 | isa = PBXReferenceProxy;
941 | fileType = archive.ar;
942 | path = "libjsiexecutor-tvOS.a";
943 | remoteRef = 682F00252211A32500EA2011 /* PBXContainerItemProxy */;
944 | sourceTree = BUILT_PRODUCTS_DIR;
945 | };
946 | 682F00292211A32500EA2011 /* libReactNativeSignView.a */ = {
947 | isa = PBXReferenceProxy;
948 | fileType = archive.ar;
949 | path = libReactNativeSignView.a;
950 | remoteRef = 682F00282211A32500EA2011 /* PBXContainerItemProxy */;
951 | sourceTree = BUILT_PRODUCTS_DIR;
952 | };
953 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
954 | isa = PBXReferenceProxy;
955 | fileType = archive.ar;
956 | path = libRCTLinking.a;
957 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
958 | sourceTree = BUILT_PRODUCTS_DIR;
959 | };
960 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
961 | isa = PBXReferenceProxy;
962 | fileType = archive.ar;
963 | path = libRCTText.a;
964 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
965 | sourceTree = BUILT_PRODUCTS_DIR;
966 | };
967 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = {
968 | isa = PBXReferenceProxy;
969 | fileType = archive.ar;
970 | path = libRCTBlob.a;
971 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */;
972 | sourceTree = BUILT_PRODUCTS_DIR;
973 | };
974 | /* End PBXReferenceProxy section */
975 |
976 | /* Begin PBXResourcesBuildPhase section */
977 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
978 | isa = PBXResourcesBuildPhase;
979 | buildActionMask = 2147483647;
980 | files = (
981 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
982 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
983 | );
984 | runOnlyForDeploymentPostprocessing = 0;
985 | };
986 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
987 | isa = PBXResourcesBuildPhase;
988 | buildActionMask = 2147483647;
989 | files = (
990 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
991 | );
992 | runOnlyForDeploymentPostprocessing = 0;
993 | };
994 | /* End PBXResourcesBuildPhase section */
995 |
996 | /* Begin PBXShellScriptBuildPhase section */
997 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
998 | isa = PBXShellScriptBuildPhase;
999 | buildActionMask = 2147483647;
1000 | files = (
1001 | );
1002 | inputPaths = (
1003 | );
1004 | name = "Bundle React Native code and images";
1005 | outputPaths = (
1006 | );
1007 | runOnlyForDeploymentPostprocessing = 0;
1008 | shellPath = /bin/sh;
1009 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1010 | };
1011 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
1012 | isa = PBXShellScriptBuildPhase;
1013 | buildActionMask = 2147483647;
1014 | files = (
1015 | );
1016 | inputPaths = (
1017 | );
1018 | name = "Bundle React Native Code And Images";
1019 | outputPaths = (
1020 | );
1021 | runOnlyForDeploymentPostprocessing = 0;
1022 | shellPath = /bin/sh;
1023 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
1024 | };
1025 | /* End PBXShellScriptBuildPhase section */
1026 |
1027 | /* Begin PBXSourcesBuildPhase section */
1028 | 13B07F871A680F5B00A75B9A /* Sources */ = {
1029 | isa = PBXSourcesBuildPhase;
1030 | buildActionMask = 2147483647;
1031 | files = (
1032 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
1033 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
1034 | );
1035 | runOnlyForDeploymentPostprocessing = 0;
1036 | };
1037 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
1038 | isa = PBXSourcesBuildPhase;
1039 | buildActionMask = 2147483647;
1040 | files = (
1041 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
1042 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
1043 | );
1044 | runOnlyForDeploymentPostprocessing = 0;
1045 | };
1046 | /* End PBXSourcesBuildPhase section */
1047 |
1048 | /* Begin PBXVariantGroup section */
1049 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
1050 | isa = PBXVariantGroup;
1051 | children = (
1052 | 13B07FB21A68108700A75B9A /* Base */,
1053 | );
1054 | name = LaunchScreen.xib;
1055 | path = sample;
1056 | sourceTree = "";
1057 | };
1058 | /* End PBXVariantGroup section */
1059 |
1060 | /* Begin XCBuildConfiguration section */
1061 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1062 | isa = XCBuildConfiguration;
1063 | buildSettings = {
1064 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1065 | CLANG_ENABLE_MODULES = YES;
1066 | CODE_SIGN_STYLE = Manual;
1067 | CURRENT_PROJECT_VERSION = 1;
1068 | DEAD_CODE_STRIPPING = NO;
1069 | DEVELOPMENT_TEAM = G2DQH9EWMF;
1070 | INFOPLIST_FILE = sample/Info.plist;
1071 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1072 | OTHER_LDFLAGS = (
1073 | "$(inherited)",
1074 | "-ObjC",
1075 | "-lc++",
1076 | );
1077 | PRODUCT_BUNDLE_IDENTIFIER = com.tekion.cdmsmobileenterprise;
1078 | PRODUCT_NAME = sample;
1079 | PROVISIONING_PROFILE_SPECIFIER = cdms_dev;
1080 | SWIFT_OBJC_BRIDGING_HEADER = "sample-Bridging-Header.h";
1081 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1082 | SWIFT_VERSION = 4.2;
1083 | VERSIONING_SYSTEM = "apple-generic";
1084 | };
1085 | name = Debug;
1086 | };
1087 | 13B07F951A680F5B00A75B9A /* Release */ = {
1088 | isa = XCBuildConfiguration;
1089 | buildSettings = {
1090 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1091 | CLANG_ENABLE_MODULES = YES;
1092 | CODE_SIGN_STYLE = Manual;
1093 | CURRENT_PROJECT_VERSION = 1;
1094 | DEVELOPMENT_TEAM = "";
1095 | INFOPLIST_FILE = sample/Info.plist;
1096 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1097 | OTHER_LDFLAGS = (
1098 | "$(inherited)",
1099 | "-ObjC",
1100 | "-lc++",
1101 | );
1102 | PRODUCT_BUNDLE_IDENTIFIER = com.tekion.cdmsmobileenterprise;
1103 | PRODUCT_NAME = sample;
1104 | PROVISIONING_PROFILE_SPECIFIER = "";
1105 | SWIFT_OBJC_BRIDGING_HEADER = "sample-Bridging-Header.h";
1106 | SWIFT_VERSION = 4.2;
1107 | VERSIONING_SYSTEM = "apple-generic";
1108 | };
1109 | name = Release;
1110 | };
1111 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1112 | isa = XCBuildConfiguration;
1113 | buildSettings = {
1114 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1115 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1116 | CLANG_ANALYZER_NONNULL = YES;
1117 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1118 | CLANG_WARN_INFINITE_RECURSION = YES;
1119 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1120 | DEBUG_INFORMATION_FORMAT = dwarf;
1121 | ENABLE_TESTABILITY = YES;
1122 | GCC_NO_COMMON_BLOCKS = YES;
1123 | INFOPLIST_FILE = "sample-tvOS/Info.plist";
1124 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1125 | OTHER_LDFLAGS = (
1126 | "-ObjC",
1127 | "-lc++",
1128 | );
1129 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.sample-tvOS";
1130 | PRODUCT_NAME = "$(TARGET_NAME)";
1131 | SDKROOT = appletvos;
1132 | TARGETED_DEVICE_FAMILY = 3;
1133 | TVOS_DEPLOYMENT_TARGET = 9.2;
1134 | };
1135 | name = Debug;
1136 | };
1137 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1138 | isa = XCBuildConfiguration;
1139 | buildSettings = {
1140 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1141 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1142 | CLANG_ANALYZER_NONNULL = YES;
1143 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1144 | CLANG_WARN_INFINITE_RECURSION = YES;
1145 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1146 | COPY_PHASE_STRIP = NO;
1147 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1148 | GCC_NO_COMMON_BLOCKS = YES;
1149 | INFOPLIST_FILE = "sample-tvOS/Info.plist";
1150 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1151 | OTHER_LDFLAGS = (
1152 | "-ObjC",
1153 | "-lc++",
1154 | );
1155 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.sample-tvOS";
1156 | PRODUCT_NAME = "$(TARGET_NAME)";
1157 | SDKROOT = appletvos;
1158 | TARGETED_DEVICE_FAMILY = 3;
1159 | TVOS_DEPLOYMENT_TARGET = 9.2;
1160 | };
1161 | name = Release;
1162 | };
1163 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1164 | isa = XCBuildConfiguration;
1165 | buildSettings = {
1166 | ALWAYS_SEARCH_USER_PATHS = NO;
1167 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1168 | CLANG_CXX_LIBRARY = "libc++";
1169 | CLANG_ENABLE_MODULES = YES;
1170 | CLANG_ENABLE_OBJC_ARC = YES;
1171 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1172 | CLANG_WARN_BOOL_CONVERSION = YES;
1173 | CLANG_WARN_COMMA = YES;
1174 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1175 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1176 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1177 | CLANG_WARN_EMPTY_BODY = YES;
1178 | CLANG_WARN_ENUM_CONVERSION = YES;
1179 | CLANG_WARN_INFINITE_RECURSION = YES;
1180 | CLANG_WARN_INT_CONVERSION = YES;
1181 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1182 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1183 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1184 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1185 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1186 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1187 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1188 | CLANG_WARN_UNREACHABLE_CODE = YES;
1189 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1190 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1191 | COPY_PHASE_STRIP = NO;
1192 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1193 | ENABLE_TESTABILITY = YES;
1194 | GCC_C_LANGUAGE_STANDARD = gnu99;
1195 | GCC_DYNAMIC_NO_PIC = NO;
1196 | GCC_NO_COMMON_BLOCKS = YES;
1197 | GCC_OPTIMIZATION_LEVEL = 0;
1198 | GCC_PREPROCESSOR_DEFINITIONS = (
1199 | "DEBUG=1",
1200 | "$(inherited)",
1201 | );
1202 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1203 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1204 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1205 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1206 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1207 | GCC_WARN_UNUSED_FUNCTION = YES;
1208 | GCC_WARN_UNUSED_VARIABLE = YES;
1209 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1210 | MTL_ENABLE_DEBUG_INFO = YES;
1211 | ONLY_ACTIVE_ARCH = YES;
1212 | SDKROOT = iphoneos;
1213 | };
1214 | name = Debug;
1215 | };
1216 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1217 | isa = XCBuildConfiguration;
1218 | buildSettings = {
1219 | ALWAYS_SEARCH_USER_PATHS = NO;
1220 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1221 | CLANG_CXX_LIBRARY = "libc++";
1222 | CLANG_ENABLE_MODULES = YES;
1223 | CLANG_ENABLE_OBJC_ARC = YES;
1224 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
1225 | CLANG_WARN_BOOL_CONVERSION = YES;
1226 | CLANG_WARN_COMMA = YES;
1227 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1228 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
1229 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1230 | CLANG_WARN_EMPTY_BODY = YES;
1231 | CLANG_WARN_ENUM_CONVERSION = YES;
1232 | CLANG_WARN_INFINITE_RECURSION = YES;
1233 | CLANG_WARN_INT_CONVERSION = YES;
1234 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
1235 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
1236 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
1237 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1238 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
1239 | CLANG_WARN_STRICT_PROTOTYPES = YES;
1240 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1241 | CLANG_WARN_UNREACHABLE_CODE = YES;
1242 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1243 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1244 | COPY_PHASE_STRIP = YES;
1245 | ENABLE_NS_ASSERTIONS = NO;
1246 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1247 | GCC_C_LANGUAGE_STANDARD = gnu99;
1248 | GCC_NO_COMMON_BLOCKS = YES;
1249 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1250 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1251 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1252 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1253 | GCC_WARN_UNUSED_FUNCTION = YES;
1254 | GCC_WARN_UNUSED_VARIABLE = YES;
1255 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1256 | MTL_ENABLE_DEBUG_INFO = NO;
1257 | SDKROOT = iphoneos;
1258 | VALIDATE_PRODUCT = YES;
1259 | };
1260 | name = Release;
1261 | };
1262 | /* End XCBuildConfiguration section */
1263 |
1264 | /* Begin XCConfigurationList section */
1265 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "sample" */ = {
1266 | isa = XCConfigurationList;
1267 | buildConfigurations = (
1268 | 13B07F941A680F5B00A75B9A /* Debug */,
1269 | 13B07F951A680F5B00A75B9A /* Release */,
1270 | );
1271 | defaultConfigurationIsVisible = 0;
1272 | defaultConfigurationName = Release;
1273 | };
1274 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "sample-tvOS" */ = {
1275 | isa = XCConfigurationList;
1276 | buildConfigurations = (
1277 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1278 | 2D02E4981E0B4A5E006451C7 /* Release */,
1279 | );
1280 | defaultConfigurationIsVisible = 0;
1281 | defaultConfigurationName = Release;
1282 | };
1283 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "sample" */ = {
1284 | isa = XCConfigurationList;
1285 | buildConfigurations = (
1286 | 83CBBA201A601CBA00E9B192 /* Debug */,
1287 | 83CBBA211A601CBA00E9B192 /* Release */,
1288 | );
1289 | defaultConfigurationIsVisible = 0;
1290 | defaultConfigurationName = Release;
1291 | };
1292 | /* End XCConfigurationList section */
1293 | };
1294 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1295 | }
1296 |
--------------------------------------------------------------------------------