├── .npmignore
├── Example
├── .watchmanconfig
├── .gitattributes
├── .babelrc
├── android
│ ├── app
│ │ ├── src
│ │ │ └── main
│ │ │ │ ├── res
│ │ │ │ ├── values
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ └── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ └── MainApplication.java
│ │ │ │ └── AndroidManifest.xml
│ │ ├── BUCK
│ │ ├── proguard-rules.pro
│ │ └── build.gradle
│ ├── keystores
│ │ ├── debug.keystore.properties
│ │ └── BUCK
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── settings.gradle
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradlew.bat
│ └── gradlew
├── .buckconfig
├── __tests__
│ ├── index.ios.js
│ └── index.android.js
├── ios
│ ├── Example
│ │ ├── AppDelegate.h
│ │ ├── main.m
│ │ ├── Images.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.m
│ │ ├── Info.plist
│ │ └── Base.lproj
│ │ │ └── LaunchScreen.xib
│ ├── ExampleTests
│ │ ├── Info.plist
│ │ └── ExampleTests.m
│ ├── Example-tvOSTests
│ │ └── Info.plist
│ ├── Example-tvOS
│ │ └── Info.plist
│ └── Example.xcodeproj
│ │ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── Example.xcscheme
│ │ │ └── Example-tvOS.xcscheme
│ │ └── project.pbxproj
├── package.json
├── .gitignore
├── .flowconfig
└── index.android.js
├── .gitattributes
├── assets
└── tabbedviewpager.gif
├── android
├── src
│ └── main
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── is
│ │ └── uncommon
│ │ └── rn
│ │ └── widgets
│ │ ├── TabbedViewPagerAndroidModule.java
│ │ ├── TabbedViewPagerAndroidPackage.java
│ │ ├── PageSelectedEvent.java
│ │ ├── PageScrollStateChangedEvent.java
│ │ ├── PageScrollEvent.java
│ │ ├── TabbedViewPager.java
│ │ ├── TabbedViewPagerManager.java
│ │ └── ReactViewPager.java
└── build.gradle
├── ios
├── RNTabbedViewPagerAndroid.h
├── RNTabbedViewPagerAndroid.m
├── RNTabbedViewPagerAndroid.podspec
└── RNTabbedViewPagerAndroid.xcodeproj
│ └── project.pbxproj
├── windows
├── RNTabbedViewPagerAndroid
│ ├── project.json
│ ├── RNTabbedViewPagerAndroidModule.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ └── RNTabbedViewPagerAndroid.rd.xml
│ ├── RNTabbedViewPagerAndroidPackage.cs
│ └── RNTabbedViewPagerAndroid.csproj
├── .gitignore
└── RNTabbedViewPagerAndroid.sln
├── .gitignore
├── LICENSE
├── package.json
├── README.md
└── index.js
/.npmignore:
--------------------------------------------------------------------------------
1 | Example
--------------------------------------------------------------------------------
/Example/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
--------------------------------------------------------------------------------
/Example/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/Example/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Example
3 |
4 |
--------------------------------------------------------------------------------
/assets/tabbedviewpager.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madhu314/react-native-tabbed-view-pager-android/HEAD/assets/tabbedviewpager.gif
--------------------------------------------------------------------------------
/Example/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/Example/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/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madhu314/react-native-tabbed-view-pager-android/HEAD/Example/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madhu314/react-native-tabbed-view-pager-android/HEAD/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madhu314/react-native-tabbed-view-pager-android/HEAD/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Example/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madhu314/react-native-tabbed-view-pager-android/HEAD/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/madhu314/react-native-tabbed-view-pager-android/HEAD/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/RNTabbedViewPagerAndroid.h:
--------------------------------------------------------------------------------
1 |
2 | #if __has_include("RCTBridgeModule.h")
3 | #import "RCTBridgeModule.h"
4 | #else
5 | #import
6 | #endif
7 |
8 | @interface RNTabbedViewPagerAndroid : NSObject
9 |
10 | @end
11 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/RNTabbedViewPagerAndroid.m:
--------------------------------------------------------------------------------
1 |
2 | #import "RNTabbedViewPagerAndroid.h"
3 |
4 | @implementation RNTabbedViewPagerAndroid
5 |
6 | - (dispatch_queue_t)methodQueue
7 | {
8 | return dispatch_get_main_queue();
9 | }
10 | RCT_EXPORT_MODULE()
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/Example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Dec 08 13:51:17 IST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
7 |
--------------------------------------------------------------------------------
/Example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'Example'
2 | include ':react-native-tabbed-view-pager-android'
3 | project(':react-native-tabbed-view-pager-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-tabbed-view-pager-android/android')
4 |
5 | include ':app'
6 |
--------------------------------------------------------------------------------
/Example/__tests__/index.ios.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.ios.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
10 |
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/Example/__tests__/index.android.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.android.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
10 |
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/windows/RNTabbedViewPagerAndroid/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
4 | },
5 | "frameworks": {
6 | "uap10.0": {}
7 | },
8 | "runtimes": {
9 | "win10-arm": {},
10 | "win10-arm-aot": {},
11 | "win10-x86": {},
12 | "win10-x86-aot": {},
13 | "win10-x64": {},
14 | "win10-x64-aot": {}
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/java/com/example/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example;
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 "Example";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Example/ios/Example/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/Example/ios/Example/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # OSX
3 | #
4 | .DS_Store
5 |
6 | # node.js
7 | #
8 | node_modules/
9 | npm-debug.log
10 | yarn-error.log
11 |
12 |
13 | # Xcode
14 | #
15 | build/
16 | *.pbxuser
17 | !default.pbxuser
18 | *.mode1v3
19 | !default.mode1v3
20 | *.mode2v3
21 | !default.mode2v3
22 | *.perspectivev3
23 | !default.perspectivev3
24 | xcuserdata
25 | *.xccheckout
26 | *.moved-aside
27 | DerivedData
28 | *.hmap
29 | *.ipa
30 | *.xcuserstate
31 | project.xcworkspace
32 |
33 |
34 | # Android/IntelliJ
35 | #
36 | build/
37 | .idea
38 | .gradle
39 | local.properties
40 | *.iml
41 |
42 | # BUCK
43 | buck-out/
44 | \.buckd/
45 | *.keystore
46 |
--------------------------------------------------------------------------------
/Example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Example",
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 | "prop-types": "15.5.10",
11 | "react": "16.0.0",
12 | "react-native": "0.50.3",
13 | "react-native-tabbed-view-pager-android": "file:../"
14 | },
15 | "devDependencies": {
16 | "babel-jest": "21.0.0",
17 | "babel-preset-react-native": "3.0.2",
18 | "jest": "21.0.1",
19 | "react-test-renderer": "16.0.0"
20 | },
21 | "jest": {
22 | "preset": "react-native"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 |
2 | buildscript {
3 | repositories {
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.3.1'
9 | }
10 | }
11 |
12 | apply plugin: 'com.android.library'
13 |
14 | android {
15 | compileSdkVersion 25
16 | buildToolsVersion '26.0.2'
17 |
18 | defaultConfig {
19 | minSdkVersion 16
20 | targetSdkVersion 25
21 | versionCode 1
22 | versionName "1.0"
23 | }
24 | lintOptions {
25 | abortOnError false
26 | }
27 | }
28 |
29 | repositories {
30 | mavenCentral()
31 | }
32 |
33 | dependencies {
34 | compile 'com.facebook.react:react-native:+'
35 | compile 'com.android.support:design:25.0.0'
36 | }
37 |
--------------------------------------------------------------------------------
/Example/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | google()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.0.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | mavenLocal()
19 | jcenter()
20 | maven {
21 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
22 | url "$rootDir/../node_modules/react-native/android"
23 | }
24 | google()
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ios/RNTabbedViewPagerAndroid.podspec:
--------------------------------------------------------------------------------
1 |
2 | Pod::Spec.new do |s|
3 | s.name = "RNTabbedViewPagerAndroid"
4 | s.version = "1.0.0"
5 | s.summary = "RNTabbedViewPagerAndroid"
6 | s.description = <<-DESC
7 | RNTabbedViewPagerAndroid
8 | DESC
9 | s.homepage = ""
10 | s.license = "MIT"
11 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
12 | s.author = { "author" => "author@domain.cn" }
13 | s.platform = :ios, "7.0"
14 | s.source = { :git => "https://github.com/author/RNTabbedViewPagerAndroid.git", :tag => "master" }
15 | s.source_files = "RNTabbedViewPagerAndroid/**/*.{h,m}"
16 | s.requires_arc = true
17 |
18 |
19 | s.dependency "React"
20 | #s.dependency "others"
21 |
22 | end
23 |
24 |
--------------------------------------------------------------------------------
/Example/ios/Example/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 | }
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/TabbedViewPagerAndroidModule.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | import android.widget.Toast;
4 | import com.facebook.react.bridge.ReactApplicationContext;
5 | import com.facebook.react.bridge.ReactContextBaseJavaModule;
6 | import com.facebook.react.bridge.ReactMethod;
7 |
8 | public class TabbedViewPagerAndroidModule extends ReactContextBaseJavaModule {
9 |
10 | private final ReactApplicationContext reactContext;
11 |
12 | public TabbedViewPagerAndroidModule(ReactApplicationContext reactContext) {
13 | super(reactContext);
14 | this.reactContext = reactContext;
15 | }
16 |
17 | @Override public String getName() {
18 | return "TabbedViewPagerAndroid";
19 | }
20 |
21 | @ReactMethod public void sayHello() {
22 | Toast.makeText(reactContext, "Hey there", Toast.LENGTH_SHORT).show();
23 | }
24 | }
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/TabbedViewPagerAndroidPackage.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | import com.facebook.react.ReactPackage;
4 | import com.facebook.react.bridge.JavaScriptModule;
5 | import com.facebook.react.bridge.NativeModule;
6 | import com.facebook.react.bridge.ReactApplicationContext;
7 | import com.facebook.react.uimanager.ViewManager;
8 | import java.util.Arrays;
9 | import java.util.Collections;
10 | import java.util.List;
11 |
12 | public class TabbedViewPagerAndroidPackage implements ReactPackage {
13 | @Override public List createNativeModules(ReactApplicationContext reactContext) {
14 | return Collections.emptyList();
15 | }
16 |
17 | @Override public List createViewManagers(ReactApplicationContext reactContext) {
18 | return Arrays.asList(new TabbedViewPagerManager());
19 | }
20 | }
--------------------------------------------------------------------------------
/Example/ios/ExampleTests/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 |
--------------------------------------------------------------------------------
/Example/ios/Example-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 |
--------------------------------------------------------------------------------
/windows/RNTabbedViewPagerAndroid/RNTabbedViewPagerAndroidModule.cs:
--------------------------------------------------------------------------------
1 | using ReactNative.Bridge;
2 | using System;
3 | using System.Collections.Generic;
4 | using Windows.ApplicationModel.Core;
5 | using Windows.UI.Core;
6 |
7 | namespace Com.Reactlibrary.RNTabbedViewPagerAndroid
8 | {
9 | ///
10 | /// A module that allows JS to share data.
11 | ///
12 | class RNTabbedViewPagerAndroidModule : NativeModuleBase
13 | {
14 | ///
15 | /// Instantiates the .
16 | ///
17 | internal RNTabbedViewPagerAndroidModule()
18 | {
19 |
20 | }
21 |
22 | ///
23 | /// The name of the native module.
24 | ///
25 | public override string Name
26 | {
27 | get
28 | {
29 | return "RNTabbedViewPagerAndroid";
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/Example/.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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
50 |
51 | fastlane/report.xml
52 | fastlane/Preview.html
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/windows/.gitignore:
--------------------------------------------------------------------------------
1 | *AppPackages*
2 | *BundleArtifacts*
3 | *ReactAssets*
4 |
5 | #OS junk files
6 | [Tt]humbs.db
7 | *.DS_Store
8 |
9 | #Visual Studio files
10 | *.[Oo]bj
11 | *.user
12 | *.aps
13 | *.pch
14 | *.vspscc
15 | *.vssscc
16 | *_i.c
17 | *_p.c
18 | *.ncb
19 | *.suo
20 | *.tlb
21 | *.tlh
22 | *.bak
23 | *.[Cc]ache
24 | *.ilk
25 | *.log
26 | *.lib
27 | *.sbr
28 | *.sdf
29 | *.opensdf
30 | *.opendb
31 | *.unsuccessfulbuild
32 | ipch/
33 | [Oo]bj/
34 | [Bb]in
35 | [Dd]ebug*/
36 | [Rr]elease*/
37 | Ankh.NoLoad
38 |
39 | #MonoDevelop
40 | *.pidb
41 | *.userprefs
42 |
43 | #Tooling
44 | _ReSharper*/
45 | *.resharper
46 | [Tt]est[Rr]esult*
47 | *.sass-cache
48 |
49 | #Project files
50 | [Bb]uild/
51 |
52 | #Subversion files
53 | .svn
54 |
55 | # Office Temp Files
56 | ~$*
57 |
58 | # vim Temp Files
59 | *~
60 |
61 | #NuGet
62 | packages/
63 | *.nupkg
64 |
65 | #ncrunch
66 | *ncrunch*
67 | *crunch*.local.xml
68 |
69 | # visual studio database projects
70 | *.dbmdl
71 |
72 | #Test files
73 | *.testsettings
74 |
75 | #Other files
76 | *.DotSettings
77 | .vs/
78 | *project.lock.json
79 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Madhusudhan Sambojhu
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.
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-tabbed-view-pager-android",
3 | "version": "1.0.4",
4 | "description": "An android ViewPager wrapper with built-in tabs.",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "keywords": [
10 | "react-native-component",
11 | "react-component",
12 | "react-native",
13 | "ios",
14 | "android",
15 | "viewpager",
16 | "pager",
17 | "pageview",
18 | "page",
19 | "tab-navigator",
20 | "scrollable",
21 | "tab",
22 | "navigator",
23 | "tab-bar",
24 | "tab-view"
25 | ],
26 | "author": "Madhusudhan Sambojhu",
27 | "license": "MIT",
28 | "peerDependencies": {
29 | "react-native": "^0.50.3"
30 | },
31 | "repository": {
32 | "type": "git",
33 | "url":
34 | "git+https://github.com/madhu314/react-native-tabbed-view-pager-android.git"
35 | },
36 | "bugs": {
37 | "url":
38 | "https://github.com/madhu314/react-native-tabbed-view-pager-android/issues"
39 | },
40 | "homepage":
41 | "https://github.com/madhu314/react-native-tabbed-view-pager-android#README"
42 | }
43 |
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/PageSelectedEvent.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | import com.facebook.react.bridge.Arguments;
4 | import com.facebook.react.bridge.WritableMap;
5 | import com.facebook.react.uimanager.events.Event;
6 | import com.facebook.react.uimanager.events.RCTEventEmitter;
7 |
8 | //Source: react-native/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageSelectedEvent.java
9 | /* package */ class PageSelectedEvent extends Event {
10 |
11 | public static final String EVENT_NAME = "topPageSelected";
12 |
13 | private final int mPosition;
14 |
15 | protected PageSelectedEvent(int viewTag, int position) {
16 | super(viewTag);
17 | mPosition = position;
18 | }
19 |
20 | @Override
21 | public String getEventName() {
22 | return EVENT_NAME;
23 | }
24 |
25 | @Override
26 | public void dispatch(RCTEventEmitter rctEventEmitter) {
27 | rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData());
28 | }
29 |
30 | private WritableMap serializeEventData() {
31 | WritableMap eventData = Arguments.createMap();
32 | eventData.putInt("position", mPosition);
33 | return eventData;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/windows/RNTabbedViewPagerAndroid/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("RNTabbedViewPagerAndroid")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("RNTabbedViewPagerAndroid")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Version information for an assembly consists of the following four values:
18 | //
19 | // Major Version
20 | // Minor Version
21 | // Build Number
22 | // Revision
23 | //
24 | // You can specify all the values or you can default the Build and Revision Numbers
25 | // by using the '*' as shown below:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
30 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/java/com/example/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import android.app.Application;
4 |
5 | import com.facebook.react.ReactApplication;
6 | import is.uncommon.rn.widgets.TabbedViewPagerAndroidPackage;
7 | import com.facebook.react.ReactNativeHost;
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.react.shell.MainReactPackage;
10 | import com.facebook.soloader.SoLoader;
11 |
12 | import java.util.Arrays;
13 | import java.util.List;
14 |
15 | public class MainApplication extends Application implements ReactApplication {
16 |
17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
18 | @Override
19 | public boolean getUseDeveloperSupport() {
20 | return BuildConfig.DEBUG;
21 | }
22 |
23 | @Override
24 | protected List getPackages() {
25 | return Arrays.asList(
26 | new MainReactPackage(),
27 | new TabbedViewPagerAndroidPackage()
28 | );
29 | }
30 | };
31 |
32 | @Override
33 | public ReactNativeHost getReactNativeHost() {
34 | return mReactNativeHost;
35 | }
36 |
37 | @Override
38 | public void onCreate() {
39 | super.onCreate();
40 | SoLoader.init(this, /* native exopackage */ false);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/PageScrollStateChangedEvent.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | import com.facebook.react.bridge.Arguments;
4 | import com.facebook.react.bridge.WritableMap;
5 | import com.facebook.react.uimanager.events.Event;
6 | import com.facebook.react.uimanager.events.RCTEventEmitter;
7 | //Source: react-native/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollStateChangedEvent.java
8 | class PageScrollStateChangedEvent extends Event {
9 |
10 | public static final String EVENT_NAME = "topPageScrollStateChanged";
11 |
12 | private final String mPageScrollState;
13 |
14 | protected PageScrollStateChangedEvent(int viewTag, String pageScrollState) {
15 | super(viewTag);
16 | mPageScrollState = pageScrollState;
17 | }
18 |
19 | @Override
20 | public String getEventName() {
21 | return EVENT_NAME;
22 | }
23 |
24 | @Override
25 | public void dispatch(RCTEventEmitter rctEventEmitter) {
26 | rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData());
27 | }
28 |
29 | private WritableMap serializeEventData() {
30 | WritableMap eventData = Arguments.createMap();
31 | eventData.putString("pageScrollState", mPageScrollState);
32 | return eventData;
33 | }
34 | }
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/PageScrollEvent.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | import com.facebook.react.bridge.Arguments;
4 | import com.facebook.react.bridge.WritableMap;
5 | import com.facebook.react.uimanager.events.Event;
6 | import com.facebook.react.uimanager.events.RCTEventEmitter;
7 | //Source: react-native/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/PageScrollEvent.java
8 |
9 | /* package */ class PageScrollEvent extends Event {
10 |
11 | public static final String EVENT_NAME = "topPageScroll";
12 |
13 | private final int mPosition;
14 | private final float mOffset;
15 |
16 | protected PageScrollEvent(int viewTag, int position, float offset) {
17 | super(viewTag);
18 | mPosition = position;
19 |
20 | // folly::toJson default options don't support serialize NaN or Infinite value
21 | mOffset = (Float.isInfinite(offset) || Float.isNaN(offset))
22 | ? 0.0f : offset;
23 | }
24 |
25 | @Override
26 | public String getEventName() {
27 | return EVENT_NAME;
28 | }
29 |
30 | @Override
31 | public void dispatch(RCTEventEmitter rctEventEmitter) {
32 | rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData());
33 | }
34 |
35 | private WritableMap serializeEventData() {
36 | WritableMap eventData = Arguments.createMap();
37 | eventData.putInt("position", mPosition);
38 | eventData.putDouble("offset", mOffset);
39 | return eventData;
40 | }
41 | }
--------------------------------------------------------------------------------
/Example/ios/Example/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"Example"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/Example/.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 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | emoji=true
26 |
27 | module.system=haste
28 |
29 | experimental.strict_type_args=true
30 |
31 | munge_underscores=true
32 |
33 | 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'
34 |
35 | suppress_type=$FlowIssue
36 | suppress_type=$FlowFixMe
37 | suppress_type=$FixMe
38 |
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-8]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
42 |
43 | unsafe.enable_getters_and_setters=true
44 |
45 | [version]
46 | ^0.38.0
47 |
--------------------------------------------------------------------------------
/windows/RNTabbedViewPagerAndroid/Properties/RNTabbedViewPagerAndroid.rd.xml:
--------------------------------------------------------------------------------
1 |
2 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Example/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.example',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.example',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/Example/ios/Example/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 |
--------------------------------------------------------------------------------
/Example/ios/Example-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 |
--------------------------------------------------------------------------------
/windows/RNTabbedViewPagerAndroid/RNTabbedViewPagerAndroidPackage.cs:
--------------------------------------------------------------------------------
1 | using ReactNative.Bridge;
2 | using ReactNative.Modules.Core;
3 | using ReactNative.UIManager;
4 | using System;
5 | using System.Collections.Generic;
6 |
7 | namespace Com.Reactlibrary.RNTabbedViewPagerAndroid
8 | {
9 | ///
10 | /// Package defining core framework modules (e.g., ).
11 | /// It should be used for modules that require special integration with
12 | /// other framework parts (e.g., with the list of packages to load view
13 | /// managers from).
14 | ///
15 | public class RNTabbedViewPagerAndroidPackage : IReactPackage
16 | {
17 | ///
18 | /// Creates the list of native modules to register with the react
19 | /// instance.
20 | ///
21 | /// The react application context.
22 | /// The list of native modules.
23 | public IReadOnlyList CreateNativeModules(ReactContext reactContext)
24 | {
25 | return new List
26 | {
27 | new RNTabbedViewPagerAndroidModule(),
28 | };
29 | }
30 |
31 | ///
32 | /// Creates the list of JavaScript modules to register with the
33 | /// react instance.
34 | ///
35 | /// The list of JavaScript modules.
36 | public IReadOnlyList CreateJavaScriptModulesConfig()
37 | {
38 | return new List(0);
39 | }
40 |
41 | ///
42 | /// Creates the list of view managers that should be registered with
43 | /// the .
44 | ///
45 | /// The react application context.
46 | /// The list of view managers.
47 | public IReadOnlyList CreateViewManagers(
48 | ReactContext reactContext)
49 | {
50 | return new List(0);
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/Example/ios/ExampleTests/ExampleTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import
14 | #import
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface ExampleTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation ExampleTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/Example/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # okhttp
54 |
55 | -keepattributes Signature
56 | -keepattributes *Annotation*
57 | -keep class okhttp3.** { *; }
58 | -keep interface okhttp3.** { *; }
59 | -dontwarn okhttp3.**
60 |
61 | # okio
62 |
63 | -keep class sun.misc.Unsafe { *; }
64 | -dontwarn java.nio.file.*
65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
66 | -dontwarn okio.**
67 |
--------------------------------------------------------------------------------
/Example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/Example/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | * @flow
5 | */
6 |
7 | import React, { Component } from "react";
8 | import {
9 | AppRegistry,
10 | StyleSheet,
11 | Text,
12 | View,
13 | StatusBar,
14 | ToolbarAndroid
15 | } from "react-native";
16 | import TabbedViewPager from "react-native-tabbed-view-pager-android";
17 | export default class Example extends Component {
18 | constructor() {
19 | super();
20 | this.state = {
21 | tabNames: [
22 | "Beverages",
23 | "Breakfast Cereals",
24 | "Confectionary",
25 | "Cooking Medium",
26 | "Dairy Products",
27 | "Dessert",
28 | "Health Care",
29 | "Herbs",
30 | "Ready To Cook",
31 | "Ready To Eat",
32 | "Snacks",
33 | "Staples"
34 | ]
35 | };
36 | }
37 | render() {
38 | return (
39 |
40 |
41 |
46 |
59 | this.onPageSelected(event.nativeEvent.position)
60 | }
61 | onPageScrollStateChanged={state =>
62 | this.onPageScrollStateChanged(state)
63 | }
64 | onPageScroll={event => this.onPageScroll(event.nativeEvent)}
65 | >
66 | {this.state.tabNames.map(tabName => {
67 | return (
68 |
69 | {tabName}
70 |
71 | );
72 | })}
73 |
74 |
75 | );
76 | }
77 |
78 | onPageSelected(position) {
79 | console.log("Page position is:" + position);
80 | }
81 |
82 | onPageScroll(event) {
83 | console.log("Page scroll event:" + JSON.stringify(event));
84 | }
85 |
86 | onPageScrollStateChanged(state) {
87 | console.log("Page scroll state change event:" + state);
88 | }
89 | }
90 |
91 | const styles = StyleSheet.create({
92 | container: {
93 | flex: 1
94 | },
95 | pageStyle: {
96 | alignItems: "center",
97 | padding: 20,
98 | justifyContent: "center"
99 | },
100 | viewPager: {
101 | flex: 1,
102 | backgroundColor: "#F5FCFF"
103 | },
104 | toolbar: {
105 | backgroundColor: "#008B7D",
106 | height: 56
107 | }
108 | });
109 |
110 | AppRegistry.registerComponent("Example", () => Example);
111 |
--------------------------------------------------------------------------------
/Example/ios/Example/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # react-native-tabbed-view-pager-android
3 | 
4 | ## Getting started
5 |
6 | `$ npm install react-native-tabbed-view-pager-android --save`
7 |
8 | ### Mostly automatic installation
9 |
10 | `$ react-native link react-native-tabbed-view-pager-android`
11 |
12 | ### Manual installation
13 |
14 |
15 | #### iOS
16 | Not Supported.
17 |
18 | #### Android
19 |
20 | 1. Open up `android/app/src/main/java/[...]/MainActivity.java`
21 | - Add `import is.uncommon.rn.widgets.TabbedViewPagerAndroidPackage;` to the imports at the top of the file
22 | - Add `new TabbedViewPagerAndroidPackage()` to the list returned by the `getPackages()` method
23 | 2. Append the following lines to `android/settings.gradle`:
24 | ```
25 | include ':react-native-tabbed-view-pager-android'
26 | project(':react-native-tabbed-view-pager-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-tabbed-view-pager-android/android')
27 | ```
28 | 3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
29 | ```
30 | compile project(':react-native-tabbed-view-pager-android')
31 | ```
32 |
33 | #### Windows
34 | Not Supported.
35 |
36 | ## Usage
37 | ```javascript
38 | import TabbedViewPager from 'react-native-tabbed-view-pager-android';
39 |
40 | this.onPageSelected(event.nativeEvent.position)}
53 | onPageScrollStateChanged={(state) => this.onPageScrollStateChanged(state)}
54 | onPageScroll={(event) => this.onPageScroll(event.nativeEvent)}>
55 | {
56 | this.state.tabNames.map((tabName) => {
57 | return(
58 |
59 | {tabName}
60 |
61 | )
62 | })
63 | }
64 |
65 | ```
66 | All props of [ViewPagerAndroid](https://facebook.github.io/react-native/docs/viewpagerandroid.html) are supported. Following table shows tab props supported by this component.
67 |
68 | Prop | Type | Default | Optional | Explanation
69 | --- | --- | --- | --- |---
70 | tabMode | string | `scrollable`| Yes. | Either `fixed` or `scrollable`.
71 | tabGravity | string | `fill`| Yes. | Either `center` or `fill`.
72 | tabBackground | string | App theme| Yes. | Entire tab layout background color. Specify in [CSS color format](https://facebook.github.io/react-native/docs/colors.html).
73 | tabIndicatorColor | string | App theme| Yes. | Selected tab indicator color. Specify in [CSS color format](https://facebook.github.io/react-native/docs/colors.html).
74 | tabIndicatorHeight | number | App theme| Yes. | Selected tab indicator height. Specify in [CSS color format](https://facebook.github.io/react-native/docs/colors.html).
75 | tabTextColor | string | App theme | Yes. | Color of the text in the normal/unselected tab. Specify in [CSS color format](https://facebook.github.io/react-native/docs/colors.html).
76 | tabSelectedTextColor | string | App theme | Yes. | Color of the text in the selected tab. Specify in [CSS color format](https://facebook.github.io/react-native/docs/colors.html).
77 | tabElevation | number | 0 | Yes. | Elevation of the tab layout. Default value is 0.
78 | tabNames | array | None | No. | A string array of tab names. Non optional prop. Should indicate names in the same order as views of view pager children.
79 |
80 | Look at `Example` included with this sample for further details.
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/TabbedViewPager.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | import android.annotation.TargetApi;
4 | import android.content.Context;
5 | import android.content.res.ColorStateList;
6 | import android.os.Build;
7 | import android.support.design.widget.TabLayout;
8 | import android.support.v4.view.ViewCompat;
9 | import android.util.AttributeSet;
10 | import android.view.View;
11 | import android.view.ViewGroup;
12 | import android.widget.LinearLayout;
13 | import com.facebook.react.bridge.ReactContext;
14 |
15 | /**
16 | * Created by madhu on 08/03/17.
17 | */
18 |
19 | public class TabbedViewPager extends LinearLayout {
20 | private ReactViewPager reactViewPager = null;
21 | private TabLayout tabLayout = null;
22 |
23 | public TabbedViewPager(Context context) {
24 | super(context);
25 | }
26 |
27 | public TabbedViewPager(Context context, AttributeSet attrs) {
28 | super(context, attrs);
29 | }
30 |
31 | public TabbedViewPager(Context context, AttributeSet attrs, int defStyleAttr) {
32 | super(context, attrs, defStyleAttr);
33 | }
34 |
35 | @TargetApi(Build.VERSION_CODES.LOLLIPOP)
36 | public TabbedViewPager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
37 | super(context, attrs, defStyleAttr, defStyleRes);
38 | }
39 |
40 | void setup(ReactContext reactContext) {
41 | this.setOrientation(VERTICAL);
42 | this.reactViewPager = new ReactViewPager(reactContext);
43 | this.reactViewPager.setParentIdCallback(new ReactViewPager.ParentIdCallback() {
44 | @Override public int getParentId() {
45 | return getId();
46 | }
47 | });
48 | this.tabLayout = new TabLayout(reactContext);
49 | this.tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
50 | LayoutParams viewPagerParams =
51 | new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,
52 | 1);
53 |
54 | LayoutParams tabParams =
55 | new LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
56 | this.addView(tabLayout, tabParams);
57 | this.addView(reactViewPager, viewPagerParams);
58 | tabLayout.setupWithViewPager(reactViewPager);
59 | }
60 |
61 | public void handleViewDropped() {
62 |
63 | }
64 |
65 | public void setScrollEnabled(boolean value) {
66 | this.reactViewPager.setScrollEnabled(value);
67 | }
68 |
69 | public void setCurrentItemFromJs(int anInt, boolean b) {
70 | this.reactViewPager.setCurrentItemFromJs(anInt, b);
71 | }
72 |
73 | public void addViewToAdapter(View child, int index) {
74 | this.reactViewPager.addViewToAdapter(child, index);
75 | }
76 |
77 | public int getViewCountInAdapter() {
78 | return this.reactViewPager.getViewCountInAdapter();
79 | }
80 |
81 | public View getViewFromAdapter(int index) {
82 | return this.reactViewPager.getViewFromAdapter(index);
83 | }
84 |
85 | public void removeViewFromAdapter(int index) {
86 | this.reactViewPager.removeViewFromAdapter(index);
87 | }
88 |
89 | public void removeAllViewsFromAdapter() {
90 | this.reactViewPager.removeAllViewsFromAdapter();
91 | }
92 |
93 | public void setPageMargin(int i) {
94 | this.reactViewPager.setPageMargin(i);
95 | }
96 |
97 | public void setTabMode(String tabMode) {
98 | if ("scrollable".equalsIgnoreCase(tabMode)) {
99 | tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
100 | } else {
101 | tabLayout.setTabMode(TabLayout.MODE_FIXED);
102 | }
103 | }
104 |
105 | public void setTabGravity(String tabGravity) {
106 | if ("center".equalsIgnoreCase(tabGravity)) {
107 | tabLayout.setTabMode(TabLayout.GRAVITY_CENTER);
108 | } else {
109 | tabLayout.setTabMode(TabLayout.GRAVITY_FILL);
110 | }
111 | }
112 |
113 | public void setTabBackgroundColor(int tabBackgroundColor) {
114 | tabLayout.setBackgroundColor(tabBackgroundColor);
115 | }
116 |
117 | public void setTabIndicatorColor(int tabIndicatorColor) {
118 | tabLayout.setSelectedTabIndicatorColor(tabIndicatorColor);
119 | }
120 |
121 | public void setTabIndicatorHeight(float height) {
122 | tabLayout.setSelectedTabIndicatorHeight((int) height);
123 | }
124 |
125 | public void setTabSelectedTextColor(int tabSelectedTextColor) {
126 | ColorStateList stateList = tabLayout.getTabTextColors();
127 | int normalColor = stateList.getColorForState(EMPTY_STATE_SET, tabSelectedTextColor);
128 | tabLayout.setTabTextColors(normalColor, tabSelectedTextColor);
129 | }
130 |
131 | public void setTabTextColor(int tabTextColor) {
132 | ColorStateList stateList = tabLayout.getTabTextColors();
133 | int selectedColor = stateList.getColorForState(SELECTED_STATE_SET, tabTextColor);
134 | tabLayout.setTabTextColors(tabTextColor, selectedColor);
135 | }
136 |
137 | public void setTabNames(String[] names) {
138 | reactViewPager.setPageNames(names);
139 | }
140 |
141 | public void setTabElevation(float elevation) {
142 | ViewCompat.setElevation(tabLayout, elevation);
143 | }
144 | }
145 |
--------------------------------------------------------------------------------
/windows/RNTabbedViewPagerAndroid.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 12.00
2 | # Visual Studio 14
3 | VisualStudioVersion = 14.0.25123.0
4 | MinimumVisualStudioVersion = 10.0.40219.1
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RNTabbedViewPagerAndroid", "RNTabbedViewPagerAndroid\RNTabbedViewPagerAndroid.csproj", "{52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}"
6 | EndProject
7 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}"
8 | EndProject
9 | Global
10 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
11 | Debug|Any CPU = Debug|Any CPU
12 | Debug|ARM = Debug|ARM
13 | Debug|x64 = Debug|x64
14 | Debug|x86 = Debug|x86
15 | Development|Any CPU = Development|Any CPU
16 | Development|ARM = Development|ARM
17 | Development|x64 = Development|x64
18 | Development|x86 = Development|x86
19 | Release|Any CPU = Release|Any CPU
20 | Release|ARM = Release|ARM
21 | Release|x64 = Release|x64
22 | Release|x86 = Release|x86
23 | EndGlobalSection
24 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
25 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|Any CPU.Build.0 = Debug|Any CPU
27 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|ARM.ActiveCfg = Debug|ARM
28 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|ARM.Build.0 = Debug|ARM
29 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|x64.ActiveCfg = Debug|x64
30 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|x64.Build.0 = Debug|x64
31 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|x86.ActiveCfg = Debug|x86
32 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Debug|x86.Build.0 = Debug|x86
33 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|Any CPU.ActiveCfg = Development|Any CPU
34 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|Any CPU.Build.0 = Development|Any CPU
35 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|ARM.ActiveCfg = Development|ARM
36 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|ARM.Build.0 = Development|ARM
37 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|x64.ActiveCfg = Development|x64
38 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|x64.Build.0 = Development|x64
39 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|x86.ActiveCfg = Development|x86
40 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Development|x86.Build.0 = Development|x86
41 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|Any CPU.ActiveCfg = Release|Any CPU
42 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|Any CPU.Build.0 = Release|Any CPU
43 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|ARM.ActiveCfg = Release|ARM
44 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|ARM.Build.0 = Release|ARM
45 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|x64.ActiveCfg = Release|x64
46 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|x64.Build.0 = Release|x64
47 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|x86.ActiveCfg = Release|x86
48 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}.Release|x86.Build.0 = Release|x86
49 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.Build.0 = Debug|Any CPU
51 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM
52 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM
53 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64
54 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64
55 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86
56 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86
57 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.ActiveCfg = Debug|Any CPU
58 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.Build.0 = Debug|Any CPU
59 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.ActiveCfg = Debug|ARM
60 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.Build.0 = Debug|ARM
61 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.ActiveCfg = Debug|x64
62 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.Build.0 = Debug|x64
63 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.ActiveCfg = Debug|x86
64 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.Build.0 = Debug|x86
65 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.ActiveCfg = Release|Any CPU
66 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.Build.0 = Release|Any CPU
67 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM
68 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM
69 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64
70 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.Build.0 = Release|x64
71 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.ActiveCfg = Release|x86
72 | {C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.Build.0 = Release|x86
73 | EndGlobalSection
74 | GlobalSection(SolutionProperties) = preSolution
75 | HideSolutionNode = FALSE
76 | EndGlobalSection
77 | EndGlobal
78 |
--------------------------------------------------------------------------------
/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.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/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-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 |
--------------------------------------------------------------------------------
/Example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/Example/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 | * // the root of your project, i.e. where "package.json" lives
37 | * root: "../../",
38 | *
39 | * // where to put the JS bundle asset in debug mode
40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
41 | *
42 | * // where to put the JS bundle asset in release mode
43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
44 | *
45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
46 | * // require('./image.png')), in debug mode
47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
48 | *
49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
50 | * // require('./image.png')), in release mode
51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
52 | *
53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
57 | * // for example, you might want to remove it from here.
58 | * inputExcludes: ["android/**", "ios/**"],
59 | *
60 | * // override which node gets called and with what additional arguments
61 | * nodeExecutableAndArgs: ["node"]
62 | *
63 | * // supply additional arguments to the packager
64 | * extraPackagerArgs: []
65 | * ]
66 | */
67 |
68 | apply from: "../../node_modules/react-native/react.gradle"
69 |
70 | /**
71 | * Set this to true to create two separate APKs instead of one:
72 | * - An APK that only works on ARM devices
73 | * - An APK that only works on x86 devices
74 | * The advantage is the size of the APK is reduced by about 4MB.
75 | * Upload all the APKs to the Play Store and people will download
76 | * the correct one based on the CPU architecture of their device.
77 | */
78 | def enableSeparateBuildPerCPUArchitecture = false
79 |
80 | /**
81 | * Run Proguard to shrink the Java bytecode in release builds.
82 | */
83 | def enableProguardInReleaseBuilds = false
84 |
85 | android {
86 | compileSdkVersion 25
87 | buildToolsVersion '26.0.2'
88 |
89 | defaultConfig {
90 | applicationId "com.example"
91 | minSdkVersion 16
92 | targetSdkVersion 25
93 | versionCode 1
94 | versionName "1.0"
95 | ndk {
96 | abiFilters "armeabi-v7a", "x86"
97 | }
98 | }
99 | splits {
100 | abi {
101 | reset()
102 | enable enableSeparateBuildPerCPUArchitecture
103 | universalApk false // If true, also generate a universal APK
104 | include "armeabi-v7a", "x86"
105 | }
106 | }
107 | buildTypes {
108 | release {
109 | minifyEnabled enableProguardInReleaseBuilds
110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
111 | }
112 | }
113 | // applicationVariants are e.g. debug, release
114 | applicationVariants.all { variant ->
115 | variant.outputs.each { output ->
116 | // For each separate APK per architecture, set a unique version code as described here:
117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
118 | def versionCodes = ["armeabi-v7a":1, "x86":2]
119 | def abi = output.getFilter(OutputFile.ABI)
120 | if (abi != null) { // null for the universal-debug, universal-release variants
121 | output.versionCodeOverride =
122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
123 | }
124 | }
125 | }
126 | }
127 |
128 | dependencies {
129 | compile project(':react-native-tabbed-view-pager-android')
130 | compile fileTree(dir: "libs", include: ["*.jar"])
131 | compile "com.android.support:appcompat-v7:25.0.0"
132 | compile "com.facebook.react:react-native:+" // From node_modules
133 | }
134 |
135 | // Run this once to be able to run the application with BUCK
136 | // puts all compile dependencies into folder libs for BUCK to use
137 | task copyDownloadableDepsToLibs(type: Copy) {
138 | from configurations.compile
139 | into 'libs'
140 | }
141 |
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/TabbedViewPagerManager.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | import android.view.View;
4 | import com.facebook.infer.annotation.Assertions;
5 | import com.facebook.react.bridge.ReadableArray;
6 | import com.facebook.react.common.MapBuilder;
7 | import com.facebook.react.module.annotations.ReactModule;
8 | import com.facebook.react.uimanager.PixelUtil;
9 | import com.facebook.react.uimanager.ThemedReactContext;
10 | import com.facebook.react.uimanager.ViewGroupManager;
11 | import com.facebook.react.uimanager.annotations.ReactProp;
12 | import java.util.Map;
13 | import javax.annotation.Nullable;
14 |
15 | /**
16 | * Created by madhu on 08/03/17.
17 | */
18 | @ReactModule(name = TabbedViewPagerManager.REACT_CLASS) public class TabbedViewPagerManager
19 | extends ViewGroupManager {
20 | protected static final String REACT_CLASS = "TabbedViewPager";
21 | public static final int COMMAND_SET_PAGE = 1;
22 | public static final int COMMAND_SET_PAGE_WITHOUT_ANIMATION = 2;
23 |
24 | public TabbedViewPagerManager() {
25 |
26 | }
27 |
28 | @Override public String getName() {
29 | return REACT_CLASS;
30 | }
31 |
32 | @Override protected TabbedViewPager createViewInstance(ThemedReactContext reactContext) {
33 | TabbedViewPager viewPager = new TabbedViewPager(reactContext);
34 | viewPager.setup(reactContext);
35 | return viewPager;
36 | }
37 |
38 | @Override public void onDropViewInstance(TabbedViewPager view) {
39 | super.onDropViewInstance(view);
40 | view.handleViewDropped();
41 | }
42 |
43 | //tab properties -- start
44 | @ReactProp(name = "tabMode") public void setTabProperties(TabbedViewPager viewPager,
45 | String tabMode) {
46 | viewPager.setTabMode(tabMode);
47 | }
48 |
49 | @ReactProp(name = "tabGravity")
50 | public void setTabGravity(TabbedViewPager viewPager, String tabGravity) {
51 | viewPager.setTabGravity(tabGravity);
52 | }
53 |
54 | @ReactProp(name = "tabBackground")
55 | public void setTabBackground(TabbedViewPager viewPager, int tabBackgroundColor) {
56 | viewPager.setTabBackgroundColor(tabBackgroundColor);
57 | }
58 |
59 | @ReactProp(name = "tabIndicatorColor")
60 | public void setTabIndicatorColor(TabbedViewPager viewPager, int tabIndicatorColor) {
61 | viewPager.setTabIndicatorColor(tabIndicatorColor);
62 | }
63 |
64 | @ReactProp(name = "tabSelectedTextColor")
65 | public void setTabSelectedTextColor(TabbedViewPager viewPager, int tabSelectedTextColor) {
66 | viewPager.setTabSelectedTextColor(tabSelectedTextColor);
67 | }
68 |
69 | @ReactProp(name = "tabTextColor")
70 | public void setTabTextColor(TabbedViewPager viewPager, int tabTextColor) {
71 | viewPager.setTabTextColor(tabTextColor);
72 | }
73 |
74 | @ReactProp(name = "tabIndicatorHeight")
75 | public void setTabIndicatorHeight(TabbedViewPager viewPager, float tabIndicatorHeight) {
76 | viewPager.setTabIndicatorHeight(PixelUtil.toPixelFromDIP(tabIndicatorHeight));
77 | }
78 |
79 | @ReactProp(name = "tabElevation")
80 | public void setTabElevation(TabbedViewPager viewPager, float tabElevation) {
81 | viewPager.setTabElevation(PixelUtil.toPixelFromDIP(tabElevation));
82 | }
83 |
84 | @ReactProp(name = "tabNames")
85 | public void setTabNames(TabbedViewPager viewPager, ReadableArray readableArray) {
86 | String[] names = new String[readableArray.size()];
87 | for (int i = 0; i < readableArray.size(); i++) {
88 | names[i] = readableArray.getString(i);
89 | }
90 | viewPager.setTabNames(names);
91 | }
92 |
93 | //tab properties -- end
94 |
95 | @ReactProp(name = "scrollEnabled", defaultBoolean = true)
96 | public void setScrollEnabled(TabbedViewPager viewPager, boolean value) {
97 | viewPager.setScrollEnabled(value);
98 | }
99 |
100 | @Override public boolean needsCustomLayoutForChildren() {
101 | return true;
102 | }
103 |
104 | @Override public Map getExportedCustomDirectEventTypeConstants() {
105 | return MapBuilder.of(PageScrollEvent.EVENT_NAME,
106 | MapBuilder.of("registrationName", "onPageScroll"), PageScrollStateChangedEvent.EVENT_NAME,
107 | MapBuilder.of("registrationName", "onPageScrollStateChanged"), PageSelectedEvent.EVENT_NAME,
108 | MapBuilder.of("registrationName", "onPageSelected"));
109 | }
110 |
111 | @Override public Map getCommandsMap() {
112 | return MapBuilder.of("setPage", COMMAND_SET_PAGE, "setPageWithoutAnimation",
113 | COMMAND_SET_PAGE_WITHOUT_ANIMATION);
114 | }
115 |
116 | @Override public void receiveCommand(TabbedViewPager viewPager, int commandType,
117 | @Nullable ReadableArray args) {
118 | Assertions.assertNotNull(viewPager);
119 | Assertions.assertNotNull(args);
120 | switch (commandType) {
121 | case COMMAND_SET_PAGE: {
122 | viewPager.setCurrentItemFromJs(args.getInt(0), true);
123 | return;
124 | }
125 | case COMMAND_SET_PAGE_WITHOUT_ANIMATION: {
126 | viewPager.setCurrentItemFromJs(args.getInt(0), false);
127 | return;
128 | }
129 | default:
130 | throw new IllegalArgumentException(
131 | String.format("Unsupported command %d received by %s.", commandType,
132 | getClass().getSimpleName()));
133 | }
134 | }
135 |
136 | @Override public void addView(TabbedViewPager parent, View child, int index) {
137 | parent.addViewToAdapter(child, index);
138 | }
139 |
140 | @Override public int getChildCount(TabbedViewPager parent) {
141 | return parent.getViewCountInAdapter();
142 | }
143 |
144 | @Override public View getChildAt(TabbedViewPager parent, int index) {
145 | return parent.getViewFromAdapter(index);
146 | }
147 |
148 | @Override public void removeViewAt(TabbedViewPager parent, int index) {
149 | parent.removeViewFromAdapter(index);
150 | }
151 |
152 | @Override public void removeAllViews(TabbedViewPager parent) {
153 | parent.removeAllViewsFromAdapter();
154 | }
155 |
156 | @ReactProp(name = "pageMargin", defaultFloat = 0)
157 | public void setPageMargin(TabbedViewPager pager, float margin) {
158 | pager.setPageMargin((int) PixelUtil.toPixelFromDIP(margin));
159 | }
160 | }
161 |
--------------------------------------------------------------------------------
/android/src/main/java/is/uncommon/rn/widgets/ReactViewPager.java:
--------------------------------------------------------------------------------
1 | package is.uncommon.rn.widgets;
2 |
3 | /**
4 | * Created by madhu on 08/03/17.
5 | */
6 |
7 | import android.support.v4.view.PagerAdapter;
8 | import android.support.v4.view.ViewPager;
9 | import android.view.MotionEvent;
10 | import android.view.View;
11 | import android.view.ViewGroup;
12 | import com.facebook.react.bridge.ReactContext;
13 | import com.facebook.react.uimanager.UIManagerModule;
14 | import com.facebook.react.uimanager.events.EventDispatcher;
15 | import com.facebook.react.uimanager.events.NativeGestureUtil;
16 | import java.util.ArrayList;
17 | import java.util.List;
18 |
19 | //Source: react-native/ReactAndroid/src/main/java/com/facebook/react/views/viewpager/ReactViewPager.java
20 | public class ReactViewPager extends ViewPager {
21 |
22 | interface ParentIdCallback {
23 | int getParentId();
24 | }
25 |
26 | private String[] pageNames;
27 |
28 | private ParentIdCallback parentIdCallback;
29 |
30 | public void setParentIdCallback(ParentIdCallback parentIdCallback) {
31 | this.parentIdCallback = parentIdCallback;
32 | }
33 |
34 | public void setPageNames(String[] names) {
35 | this.pageNames = names;
36 | }
37 |
38 | private class Adapter extends PagerAdapter {
39 |
40 | private final List mViews = new ArrayList<>();
41 | private boolean mIsViewPagerInIntentionallyInconsistentState = false;
42 |
43 | void addView(View child, int index) {
44 | mViews.add(index, child);
45 | notifyDataSetChanged();
46 | // This will prevent view pager from detaching views for pages that are not currently selected
47 | // We need to do that since {@link ViewPager} relies on layout passes to position those views
48 | // in a right way (also thanks to {@link ReactViewPagerManager#needsCustomLayoutForChildren}
49 | // returning {@code true}). Currently we only call {@link View#measure} and
50 | // {@link View#layout} after CSSLayout step.
51 |
52 | // TODO(7323049): Remove this workaround once we figure out a way to re-layout some views on
53 | // request
54 | setOffscreenPageLimit(mViews.size());
55 | }
56 |
57 | void removeViewAt(int index) {
58 | mViews.remove(index);
59 | notifyDataSetChanged();
60 |
61 | // TODO(7323049): Remove this workaround once we figure out a way to re-layout some views on
62 | // request
63 | setOffscreenPageLimit(mViews.size());
64 | }
65 |
66 | /**
67 | * Replace a set of views to the ViewPager adapter and update the ViewPager
68 | */
69 | void setViews(List views) {
70 | mViews.clear();
71 | mViews.addAll(views);
72 | notifyDataSetChanged();
73 |
74 | // we want to make sure we return POSITION_NONE for every view here, since this is only
75 | // called after a removeAllViewsFromAdapter
76 | mIsViewPagerInIntentionallyInconsistentState = false;
77 | }
78 |
79 | /**
80 | * Remove all the views from the adapter and de-parents them from the ViewPager
81 | * After calling this, it is expected that notifyDataSetChanged should be called soon
82 | * afterwards.
83 | */
84 | void removeAllViewsFromAdapter(ViewPager pager) {
85 | mViews.clear();
86 | pager.removeAllViews();
87 | // set this, so that when the next addViews is called, we return POSITION_NONE for every
88 | // entry so we can remove whichever views we need to and add the ones that we need to.
89 | mIsViewPagerInIntentionallyInconsistentState = true;
90 | }
91 |
92 | View getViewAt(int index) {
93 | return mViews.get(index);
94 | }
95 |
96 | @Override public int getCount() {
97 | return mViews.size();
98 | }
99 |
100 | @Override public int getItemPosition(Object object) {
101 | // if we've removed all views, we want to return POSITION_NONE intentionally
102 | return mIsViewPagerInIntentionallyInconsistentState || !mViews.contains(object)
103 | ? POSITION_NONE : mViews.indexOf(object);
104 | }
105 |
106 | @Override public Object instantiateItem(ViewGroup container, int position) {
107 | View view = mViews.get(position);
108 | container.addView(view, 0, generateDefaultLayoutParams());
109 | return view;
110 | }
111 |
112 | @Override public void destroyItem(ViewGroup container, int position, Object object) {
113 | container.removeView((View) object);
114 | }
115 |
116 | @Override public boolean isViewFromObject(View view, Object object) {
117 | return view == object;
118 | }
119 |
120 | @Override public CharSequence getPageTitle(int position) {
121 | if (pageNames.length > position) {
122 | return pageNames[position];
123 | }
124 | return "Position: " + position;
125 | }
126 | }
127 |
128 | private class PageChangeListener implements OnPageChangeListener {
129 |
130 | @Override
131 | public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
132 | mEventDispatcher.dispatchEvent(new PageScrollEvent(parentIdCallback.getParentId(), position, positionOffset));
133 | }
134 |
135 | @Override public void onPageSelected(int position) {
136 | if (!mIsCurrentItemFromJs) {
137 | mEventDispatcher.dispatchEvent(new PageSelectedEvent(parentIdCallback.getParentId(), position));
138 | }
139 | }
140 |
141 | @Override public void onPageScrollStateChanged(int state) {
142 | String pageScrollState;
143 | switch (state) {
144 | case SCROLL_STATE_IDLE:
145 | pageScrollState = "idle";
146 | break;
147 | case SCROLL_STATE_DRAGGING:
148 | pageScrollState = "dragging";
149 | break;
150 | case SCROLL_STATE_SETTLING:
151 | pageScrollState = "settling";
152 | break;
153 | default:
154 | throw new IllegalStateException("Unsupported pageScrollState");
155 | }
156 | mEventDispatcher.dispatchEvent(new PageScrollStateChangedEvent(parentIdCallback.getParentId(), pageScrollState));
157 | }
158 | }
159 |
160 | private final EventDispatcher mEventDispatcher;
161 | private boolean mIsCurrentItemFromJs;
162 | private boolean mScrollEnabled = true;
163 |
164 | public ReactViewPager(ReactContext reactContext) {
165 | super(reactContext);
166 | mEventDispatcher = reactContext.getNativeModule(UIManagerModule.class).getEventDispatcher();
167 | mIsCurrentItemFromJs = false;
168 | setOnPageChangeListener(new PageChangeListener());
169 | setAdapter(new Adapter());
170 | }
171 |
172 | @Override public Adapter getAdapter() {
173 | return (Adapter) super.getAdapter();
174 | }
175 |
176 | @Override public boolean onInterceptTouchEvent(MotionEvent ev) {
177 | if (!mScrollEnabled) {
178 | return false;
179 | }
180 |
181 | if (super.onInterceptTouchEvent(ev)) {
182 | NativeGestureUtil.notifyNativeGestureStarted(this, ev);
183 | return true;
184 | }
185 | return false;
186 | }
187 |
188 | @Override public boolean onTouchEvent(MotionEvent ev) {
189 | if (!mScrollEnabled) {
190 | return false;
191 | }
192 |
193 | return super.onTouchEvent(ev);
194 | }
195 |
196 | public void setCurrentItemFromJs(int item, boolean animated) {
197 | mIsCurrentItemFromJs = true;
198 | setCurrentItem(item, animated);
199 | mIsCurrentItemFromJs = false;
200 | }
201 |
202 | public void setScrollEnabled(boolean scrollEnabled) {
203 | mScrollEnabled = scrollEnabled;
204 | }
205 |
206 | /*package*/ void addViewToAdapter(View child, int index) {
207 | getAdapter().addView(child, index);
208 | }
209 |
210 | /*package*/ void removeViewFromAdapter(int index) {
211 | getAdapter().removeViewAt(index);
212 | }
213 |
214 | /*package*/ int getViewCountInAdapter() {
215 | return getAdapter().getCount();
216 | }
217 |
218 | /*package*/ View getViewFromAdapter(int index) {
219 | return getAdapter().getViewAt(index);
220 | }
221 |
222 | public void setViews(List views) {
223 | getAdapter().setViews(views);
224 | }
225 |
226 | public void removeAllViewsFromAdapter() {
227 | getAdapter().removeAllViewsFromAdapter(this);
228 | }
229 | }
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import PropTypes from "prop-types";
3 | import {
4 | UIManager,
5 | View,
6 | dismissKeyboard,
7 | requireNativeComponent,
8 | findNodeHandle,
9 | ColorPropType,
10 | processColor
11 | } from "react-native";
12 |
13 | var ReactPropTypes = PropTypes;
14 |
15 | var VIEWPAGER_REF = "viewPager";
16 |
17 | type Event = Object;
18 |
19 | export type ViewPagerScrollState = $Enum<{
20 | idle: string,
21 | dragging: string,
22 | settling: string
23 | }>;
24 |
25 | /**
26 | * Container that allows to flip left and right between child views. Each
27 | * child view of the `TabbedViewPager` will be treated as a separate page
28 | * and will be stretched to fill the `TabbedViewPager`.
29 | *
30 | * It is important all children are ``s and not composite components.
31 | * You can set style properties like `padding` or `backgroundColor` for each
32 | * child.
33 | *
34 | * Example:
35 | *
36 | * ```
37 | * render: function() {
38 | * return (
39 | *
42 | *
43 | * First page
44 | *
45 | *
46 | * Second page
47 | *
48 | *
49 | * );
50 | * }
51 | *
52 | * ...
53 | *
54 | * var styles = {
55 | * ...
56 | * pageStyle: {
57 | * alignItems: 'center',
58 | * padding: 20,
59 | * }
60 | * }
61 | * ```
62 | */
63 | class TabbedViewPager extends React.Component {
64 | props: {
65 | initialPage?: number,
66 | onPageScroll?: Function,
67 | onPageScrollStateChanged?: Function,
68 | onPageSelected?: Function,
69 | pageMargin?: number,
70 | keyboardDismissMode?: "none" | "on-drag",
71 | scrollEnabled?: boolean
72 | };
73 |
74 | static propTypes = {
75 | ...View.propTypes,
76 | /**
77 | * Index of initial page that should be selected. Use `setPage` method to
78 | * update the page, and `onPageSelected` to monitor page changes
79 | */
80 | initialPage: ReactPropTypes.number,
81 |
82 | /**
83 | * Executed when transitioning between pages (ether because of animation for
84 | * the requested page change or when user is swiping/dragging between pages)
85 | * The `event.nativeEvent` object for this callback will carry following data:
86 | * - position - index of first page from the left that is currently visible
87 | * - offset - value from range [0,1) describing stage between page transitions.
88 | * Value x means that (1 - x) fraction of the page at "position" index is
89 | * visible, and x fraction of the next page is visible.
90 | */
91 | onPageScroll: ReactPropTypes.func,
92 |
93 | /**
94 | * Function called when the page scrolling state has changed.
95 | * The page scrolling state can be in 3 states:
96 | * - idle, meaning there is no interaction with the page scroller happening at the time
97 | * - dragging, meaning there is currently an interaction with the page scroller
98 | * - settling, meaning that there was an interaction with the page scroller, and the
99 | * page scroller is now finishing it's closing or opening animation
100 | */
101 | onPageScrollStateChanged: ReactPropTypes.func,
102 |
103 | /**
104 | * This callback will be called once ViewPager finish navigating to selected page
105 | * (when user swipes between pages). The `event.nativeEvent` object passed to this
106 | * callback will have following fields:
107 | * - position - index of page that has been selected
108 | */
109 | onPageSelected: ReactPropTypes.func,
110 |
111 | /**
112 | * Blank space to show between pages. This is only visible while scrolling, pages are still
113 | * edge-to-edge.
114 | */
115 | pageMargin: ReactPropTypes.number,
116 |
117 | /**
118 | * Determines whether the keyboard gets dismissed in response to a drag.
119 | * - 'none' (the default), drags do not dismiss the keyboard.
120 | * - 'on-drag', the keyboard is dismissed when a drag begins.
121 | */
122 | keyboardDismissMode: ReactPropTypes.oneOf([
123 | "none", // default
124 | "on-drag"
125 | ]),
126 |
127 | /**
128 | * When false, the content does not scroll.
129 | * The default value is true.
130 | */
131 | scrollEnabled: ReactPropTypes.bool,
132 |
133 | /**
134 | * Tab properties
135 | */
136 | tabGravity: ReactPropTypes.oneOf(["fill", "center"]),
137 | tabMode: ReactPropTypes.oneOf(["fixed", "scrollable"]),
138 | tabBackground: ColorPropType,
139 | tabIndicatorColor: ColorPropType,
140 | tabTextColor: ColorPropType,
141 | tabSelectedTextColor: ColorPropType,
142 | tabIndicatorHeight: ReactPropTypes.number,
143 | tabElevation: ReactPropTypes.number,
144 | tabNames: ReactPropTypes.array.isRequired
145 | };
146 |
147 | componentDidMount() {
148 | if (this.props.initialPage != null) {
149 | this.setPageWithoutAnimation(this.props.initialPage);
150 | }
151 | }
152 |
153 | getInnerViewNode = (): ReactComponent => {
154 | return this.refs[VIEWPAGER_REF].getInnerViewNode();
155 | };
156 |
157 | _childrenWithOverridenStyle = (): Array => {
158 | // Override styles so that each page will fill the parent. Native component
159 | // will handle positioning of elements, so it's not important to offset
160 | // them correctly.
161 | return React.Children.map(this.props.children, function(child) {
162 | if (!child) {
163 | return null;
164 | }
165 | var newProps = {
166 | ...child.props,
167 | style: [
168 | child.props.style,
169 | {
170 | position: "absolute",
171 | left: 0,
172 | top: 0,
173 | right: 0,
174 | bottom: 0,
175 | width: undefined,
176 | height: undefined
177 | }
178 | ],
179 | collapsable: false
180 | };
181 | if (
182 | child.type &&
183 | child.type.displayName &&
184 | child.type.displayName !== "RCTView" &&
185 | child.type.displayName !== "View"
186 | ) {
187 | console.warn(
188 | "Each ViewPager child must be a . Was " + child.type.displayName
189 | );
190 | }
191 | return React.createElement(child.type, newProps);
192 | });
193 | };
194 |
195 | _onPageScroll = (e: Event) => {
196 | if (this.props.onPageScroll) {
197 | this.props.onPageScroll(e);
198 | }
199 | if (this.props.keyboardDismissMode === "on-drag") {
200 | dismissKeyboard();
201 | }
202 | };
203 |
204 | _onPageScrollStateChanged = (e: Event) => {
205 | if (this.props.onPageScrollStateChanged) {
206 | this.props.onPageScrollStateChanged(e.nativeEvent.pageScrollState);
207 | }
208 | };
209 |
210 | _onPageSelected = (e: Event) => {
211 | if (this.props.onPageSelected) {
212 | this.props.onPageSelected(e);
213 | }
214 | };
215 |
216 | /**
217 | * A helper function to scroll to a specific page in the ViewPager.
218 | * The transition between pages will be animated.
219 | */
220 | setPage = (selectedPage: number) => {
221 | UIManager.dispatchViewManagerCommand(
222 | findNodeHandle(this),
223 | UIManager.TabbedViewPager.Commands.setPage,
224 | [selectedPage]
225 | );
226 | };
227 |
228 | /**
229 | * A helper function to scroll to a specific page in the ViewPager.
230 | * The transition between pages will *not* be animated.
231 | */
232 | setPageWithoutAnimation = (selectedPage: number) => {
233 | UIManager.dispatchViewManagerCommand(
234 | findNodeHandle(this),
235 | UIManager.TabbedViewPager.Commands.setPageWithoutAnimation,
236 | [selectedPage]
237 | );
238 | };
239 |
240 | render() {
241 | return (
242 |
255 | );
256 | }
257 | }
258 |
259 | var NativeTabbedViewPager = requireNativeComponent(
260 | "TabbedViewPager",
261 | TabbedViewPager
262 | );
263 | var TabbedViewPagerAndroid = TabbedViewPager;
264 | module.exports = TabbedViewPagerAndroid;
265 |
--------------------------------------------------------------------------------
/windows/RNTabbedViewPagerAndroid/RNTabbedViewPagerAndroid.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {52FE9270-03EC-11E7-BD5D-6B1A50DAD84F}
8 | Library
9 | Properties
10 | RNTabbedViewPagerAndroid
11 | RNTabbedViewPagerAndroid
12 | en-US
13 | UAP
14 | 10.0.10586.0
15 | 10.0.10240.0
16 | 14
17 | 512
18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
19 | ..\..\node_modules
20 |
21 |
22 | ..\..
23 |
24 |
25 | AnyCPU
26 | true
27 | full
28 | false
29 | bin\Debug\
30 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
31 | prompt
32 | 4
33 |
34 |
35 | AnyCPU
36 | pdbonly
37 | true
38 | bin\Release\
39 | TRACE;NETFX_CORE;WINDOWS_UWP
40 | prompt
41 | 4
42 |
43 |
44 | x86
45 | true
46 | bin\x86\Debug\
47 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
48 | ;2008
49 | full
50 | x86
51 | false
52 | prompt
53 |
54 |
55 | x86
56 | bin\x86\Release\
57 | TRACE;NETFX_CORE;WINDOWS_UWP
58 | true
59 | ;2008
60 | pdbonly
61 | x86
62 | false
63 | prompt
64 |
65 |
66 | ARM
67 | true
68 | bin\ARM\Debug\
69 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
70 | ;2008
71 | full
72 | ARM
73 | false
74 | prompt
75 |
76 |
77 | ARM
78 | bin\ARM\Release\
79 | TRACE;NETFX_CORE;WINDOWS_UWP
80 | true
81 | ;2008
82 | pdbonly
83 | ARM
84 | false
85 | prompt
86 |
87 |
88 | x64
89 | true
90 | bin\x64\Debug\
91 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
92 | ;2008
93 | full
94 | x64
95 | false
96 | prompt
97 |
98 |
99 | x64
100 | bin\x64\Release\
101 | TRACE;NETFX_CORE;WINDOWS_UWP
102 | true
103 | ;2008
104 | pdbonly
105 | x64
106 | false
107 | prompt
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 | {c7673ad5-e3aa-468c-a5fd-fa38154e205c}
122 | ReactNative
123 |
124 |
125 |
126 | 14.0
127 |
128 |
129 | true
130 | bin\Development\
131 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
132 | true
133 | full
134 | AnyCPU
135 | false
136 | prompt
137 | MinimumRecommendedRules.ruleset
138 |
139 |
140 | true
141 | bin\x86\Development\
142 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
143 | ;2008
144 | true
145 | full
146 | x86
147 | false
148 | prompt
149 | MinimumRecommendedRules.ruleset
150 |
151 |
152 | true
153 | bin\ARM\Development\
154 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
155 | ;2008
156 | true
157 | full
158 | ARM
159 | false
160 | prompt
161 | MinimumRecommendedRules.ruleset
162 |
163 |
164 | true
165 | bin\x64\Development\
166 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
167 | ;2008
168 | true
169 | full
170 | x64
171 | false
172 | prompt
173 | MinimumRecommendedRules.ruleset
174 |
175 |
176 |
183 |
184 |
--------------------------------------------------------------------------------
/ios/RNTabbedViewPagerAndroid.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | B3E7B58A1CC2AC0600A0062D /* RNTabbedViewPagerAndroid.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNTabbedViewPagerAndroid.m */; };
11 | /* End PBXBuildFile section */
12 |
13 | /* Begin PBXCopyFilesBuildPhase section */
14 | 58B511D91A9E6C8500147676 /* CopyFiles */ = {
15 | isa = PBXCopyFilesBuildPhase;
16 | buildActionMask = 2147483647;
17 | dstPath = "include/$(PRODUCT_NAME)";
18 | dstSubfolderSpec = 16;
19 | files = (
20 | );
21 | runOnlyForDeploymentPostprocessing = 0;
22 | };
23 | /* End PBXCopyFilesBuildPhase section */
24 |
25 | /* Begin PBXFileReference section */
26 | 134814201AA4EA6300B7C361 /* libRNTabbedViewPagerAndroid.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNTabbedViewPagerAndroid.a; sourceTree = BUILT_PRODUCTS_DIR; };
27 | B3E7B5881CC2AC0600A0062D /* RNTabbedViewPagerAndroid.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNTabbedViewPagerAndroid.h; sourceTree = ""; };
28 | B3E7B5891CC2AC0600A0062D /* RNTabbedViewPagerAndroid.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNTabbedViewPagerAndroid.m; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | 58B511D81A9E6C8500147676 /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | 134814211AA4EA7D00B7C361 /* Products */ = {
43 | isa = PBXGroup;
44 | children = (
45 | 134814201AA4EA6300B7C361 /* libRNTabbedViewPagerAndroid.a */,
46 | );
47 | name = Products;
48 | sourceTree = "";
49 | };
50 | 58B511D21A9E6C8500147676 = {
51 | isa = PBXGroup;
52 | children = (
53 | B3E7B5881CC2AC0600A0062D /* RNTabbedViewPagerAndroid.h */,
54 | B3E7B5891CC2AC0600A0062D /* RNTabbedViewPagerAndroid.m */,
55 | 134814211AA4EA7D00B7C361 /* Products */,
56 | );
57 | sourceTree = "";
58 | };
59 | /* End PBXGroup section */
60 |
61 | /* Begin PBXNativeTarget section */
62 | 58B511DA1A9E6C8500147676 /* RNTabbedViewPagerAndroid */ = {
63 | isa = PBXNativeTarget;
64 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNTabbedViewPagerAndroid" */;
65 | buildPhases = (
66 | 58B511D71A9E6C8500147676 /* Sources */,
67 | 58B511D81A9E6C8500147676 /* Frameworks */,
68 | 58B511D91A9E6C8500147676 /* CopyFiles */,
69 | );
70 | buildRules = (
71 | );
72 | dependencies = (
73 | );
74 | name = RNTabbedViewPagerAndroid;
75 | productName = RCTDataManager;
76 | productReference = 134814201AA4EA6300B7C361 /* libRNTabbedViewPagerAndroid.a */;
77 | productType = "com.apple.product-type.library.static";
78 | };
79 | /* End PBXNativeTarget section */
80 |
81 | /* Begin PBXProject section */
82 | 58B511D31A9E6C8500147676 /* Project object */ = {
83 | isa = PBXProject;
84 | attributes = {
85 | LastUpgradeCheck = 0610;
86 | ORGANIZATIONNAME = Facebook;
87 | TargetAttributes = {
88 | 58B511DA1A9E6C8500147676 = {
89 | CreatedOnToolsVersion = 6.1.1;
90 | };
91 | };
92 | };
93 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNTabbedViewPagerAndroid" */;
94 | compatibilityVersion = "Xcode 3.2";
95 | developmentRegion = English;
96 | hasScannedForEncodings = 0;
97 | knownRegions = (
98 | en,
99 | );
100 | mainGroup = 58B511D21A9E6C8500147676;
101 | productRefGroup = 58B511D21A9E6C8500147676;
102 | projectDirPath = "";
103 | projectRoot = "";
104 | targets = (
105 | 58B511DA1A9E6C8500147676 /* RNTabbedViewPagerAndroid */,
106 | );
107 | };
108 | /* End PBXProject section */
109 |
110 | /* Begin PBXSourcesBuildPhase section */
111 | 58B511D71A9E6C8500147676 /* Sources */ = {
112 | isa = PBXSourcesBuildPhase;
113 | buildActionMask = 2147483647;
114 | files = (
115 | B3E7B58A1CC2AC0600A0062D /* RNTabbedViewPagerAndroid.m in Sources */,
116 | );
117 | runOnlyForDeploymentPostprocessing = 0;
118 | };
119 | /* End PBXSourcesBuildPhase section */
120 |
121 | /* Begin XCBuildConfiguration section */
122 | 58B511ED1A9E6C8500147676 /* Debug */ = {
123 | isa = XCBuildConfiguration;
124 | buildSettings = {
125 | ALWAYS_SEARCH_USER_PATHS = NO;
126 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
127 | CLANG_CXX_LIBRARY = "libc++";
128 | CLANG_ENABLE_MODULES = YES;
129 | CLANG_ENABLE_OBJC_ARC = YES;
130 | CLANG_WARN_BOOL_CONVERSION = YES;
131 | CLANG_WARN_CONSTANT_CONVERSION = YES;
132 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
133 | CLANG_WARN_EMPTY_BODY = YES;
134 | CLANG_WARN_ENUM_CONVERSION = YES;
135 | CLANG_WARN_INT_CONVERSION = YES;
136 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
137 | CLANG_WARN_UNREACHABLE_CODE = YES;
138 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
139 | COPY_PHASE_STRIP = NO;
140 | ENABLE_STRICT_OBJC_MSGSEND = YES;
141 | GCC_C_LANGUAGE_STANDARD = gnu99;
142 | GCC_DYNAMIC_NO_PIC = NO;
143 | GCC_OPTIMIZATION_LEVEL = 0;
144 | GCC_PREPROCESSOR_DEFINITIONS = (
145 | "DEBUG=1",
146 | "$(inherited)",
147 | );
148 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
149 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
150 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
151 | GCC_WARN_UNDECLARED_SELECTOR = YES;
152 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
153 | GCC_WARN_UNUSED_FUNCTION = YES;
154 | GCC_WARN_UNUSED_VARIABLE = YES;
155 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
156 | MTL_ENABLE_DEBUG_INFO = YES;
157 | ONLY_ACTIVE_ARCH = YES;
158 | SDKROOT = iphoneos;
159 | };
160 | name = Debug;
161 | };
162 | 58B511EE1A9E6C8500147676 /* Release */ = {
163 | isa = XCBuildConfiguration;
164 | buildSettings = {
165 | ALWAYS_SEARCH_USER_PATHS = NO;
166 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
167 | CLANG_CXX_LIBRARY = "libc++";
168 | CLANG_ENABLE_MODULES = YES;
169 | CLANG_ENABLE_OBJC_ARC = YES;
170 | CLANG_WARN_BOOL_CONVERSION = YES;
171 | CLANG_WARN_CONSTANT_CONVERSION = YES;
172 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
173 | CLANG_WARN_EMPTY_BODY = YES;
174 | CLANG_WARN_ENUM_CONVERSION = YES;
175 | CLANG_WARN_INT_CONVERSION = YES;
176 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
177 | CLANG_WARN_UNREACHABLE_CODE = YES;
178 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
179 | COPY_PHASE_STRIP = YES;
180 | ENABLE_NS_ASSERTIONS = NO;
181 | ENABLE_STRICT_OBJC_MSGSEND = YES;
182 | GCC_C_LANGUAGE_STANDARD = gnu99;
183 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
184 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
185 | GCC_WARN_UNDECLARED_SELECTOR = YES;
186 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
187 | GCC_WARN_UNUSED_FUNCTION = YES;
188 | GCC_WARN_UNUSED_VARIABLE = YES;
189 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
190 | MTL_ENABLE_DEBUG_INFO = NO;
191 | SDKROOT = iphoneos;
192 | VALIDATE_PRODUCT = YES;
193 | };
194 | name = Release;
195 | };
196 | 58B511F01A9E6C8500147676 /* Debug */ = {
197 | isa = XCBuildConfiguration;
198 | buildSettings = {
199 | HEADER_SEARCH_PATHS = (
200 | "$(inherited)",
201 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
202 | "$(SRCROOT)/../../../React/**",
203 | "$(SRCROOT)/../../react-native/React/**",
204 | );
205 | LIBRARY_SEARCH_PATHS = "$(inherited)";
206 | OTHER_LDFLAGS = "-ObjC";
207 | PRODUCT_NAME = RNTabbedViewPagerAndroid;
208 | SKIP_INSTALL = YES;
209 | };
210 | name = Debug;
211 | };
212 | 58B511F11A9E6C8500147676 /* Release */ = {
213 | isa = XCBuildConfiguration;
214 | buildSettings = {
215 | HEADER_SEARCH_PATHS = (
216 | "$(inherited)",
217 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
218 | "$(SRCROOT)/../../../React/**",
219 | "$(SRCROOT)/../../react-native/React/**",
220 | );
221 | LIBRARY_SEARCH_PATHS = "$(inherited)";
222 | OTHER_LDFLAGS = "-ObjC";
223 | PRODUCT_NAME = RNTabbedViewPagerAndroid;
224 | SKIP_INSTALL = YES;
225 | };
226 | name = Release;
227 | };
228 | /* End XCBuildConfiguration section */
229 |
230 | /* Begin XCConfigurationList section */
231 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNTabbedViewPagerAndroid" */ = {
232 | isa = XCConfigurationList;
233 | buildConfigurations = (
234 | 58B511ED1A9E6C8500147676 /* Debug */,
235 | 58B511EE1A9E6C8500147676 /* Release */,
236 | );
237 | defaultConfigurationIsVisible = 0;
238 | defaultConfigurationName = Release;
239 | };
240 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNTabbedViewPagerAndroid" */ = {
241 | isa = XCConfigurationList;
242 | buildConfigurations = (
243 | 58B511F01A9E6C8500147676 /* Debug */,
244 | 58B511F11A9E6C8500147676 /* Release */,
245 | );
246 | defaultConfigurationIsVisible = 0;
247 | defaultConfigurationName = Release;
248 | };
249 | /* End XCConfigurationList section */
250 | };
251 | rootObject = 58B511D31A9E6C8500147676 /* Project object */;
252 | }
253 |
--------------------------------------------------------------------------------
/Example/ios/Example.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 | /* Begin PBXBuildFile section */
9 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
10 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
11 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
12 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
13 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
14 | 00E356F31AD99517003FC87E /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.m */; };
15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
19 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
20 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
21 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
22 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
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-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.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 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
35 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleTests.m */; };
36 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
37 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
38 | 6CBCD81CF6904A65A0C7F7DA /* libRNTabbedViewPagerAndroid.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B51AA1B97A364636A8330C1F /* libRNTabbedViewPagerAndroid.a */; };
39 | /* End PBXBuildFile section */
40 |
41 | /* Begin PBXContainerItemProxy section */
42 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
43 | isa = PBXContainerItemProxy;
44 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
45 | proxyType = 2;
46 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
47 | remoteInfo = RCTActionSheet;
48 | };
49 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
50 | isa = PBXContainerItemProxy;
51 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
52 | proxyType = 2;
53 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
54 | remoteInfo = RCTGeolocation;
55 | };
56 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
57 | isa = PBXContainerItemProxy;
58 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
59 | proxyType = 2;
60 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
61 | remoteInfo = RCTImage;
62 | };
63 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
64 | isa = PBXContainerItemProxy;
65 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
66 | proxyType = 2;
67 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
68 | remoteInfo = RCTNetwork;
69 | };
70 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
71 | isa = PBXContainerItemProxy;
72 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
73 | proxyType = 2;
74 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
75 | remoteInfo = RCTVibration;
76 | };
77 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
78 | isa = PBXContainerItemProxy;
79 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
80 | proxyType = 1;
81 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
82 | remoteInfo = Example;
83 | };
84 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
85 | isa = PBXContainerItemProxy;
86 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
87 | proxyType = 2;
88 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
89 | remoteInfo = RCTSettings;
90 | };
91 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
92 | isa = PBXContainerItemProxy;
93 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
94 | proxyType = 2;
95 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
96 | remoteInfo = RCTWebSocket;
97 | };
98 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
99 | isa = PBXContainerItemProxy;
100 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
101 | proxyType = 2;
102 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
103 | remoteInfo = React;
104 | };
105 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
106 | isa = PBXContainerItemProxy;
107 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
108 | proxyType = 1;
109 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
110 | remoteInfo = "Example-tvOS";
111 | };
112 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = {
113 | isa = PBXContainerItemProxy;
114 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
115 | proxyType = 2;
116 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
117 | remoteInfo = "RCTImage-tvOS";
118 | };
119 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = {
120 | isa = PBXContainerItemProxy;
121 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
122 | proxyType = 2;
123 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
124 | remoteInfo = "RCTLinking-tvOS";
125 | };
126 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
127 | isa = PBXContainerItemProxy;
128 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
129 | proxyType = 2;
130 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
131 | remoteInfo = "RCTNetwork-tvOS";
132 | };
133 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
134 | isa = PBXContainerItemProxy;
135 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
136 | proxyType = 2;
137 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
138 | remoteInfo = "RCTSettings-tvOS";
139 | };
140 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = {
141 | isa = PBXContainerItemProxy;
142 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
143 | proxyType = 2;
144 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
145 | remoteInfo = "RCTText-tvOS";
146 | };
147 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = {
148 | isa = PBXContainerItemProxy;
149 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
150 | proxyType = 2;
151 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
152 | remoteInfo = "RCTWebSocket-tvOS";
153 | };
154 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = {
155 | isa = PBXContainerItemProxy;
156 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
157 | proxyType = 2;
158 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
159 | remoteInfo = "React-tvOS";
160 | };
161 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = {
162 | isa = PBXContainerItemProxy;
163 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
164 | proxyType = 2;
165 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA;
166 | remoteInfo = yoga;
167 | };
168 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = {
169 | isa = PBXContainerItemProxy;
170 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
171 | proxyType = 2;
172 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA;
173 | remoteInfo = "yoga-tvOS";
174 | };
175 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = {
176 | isa = PBXContainerItemProxy;
177 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
178 | proxyType = 2;
179 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4;
180 | remoteInfo = cxxreact;
181 | };
182 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
183 | isa = PBXContainerItemProxy;
184 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
185 | proxyType = 2;
186 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
187 | remoteInfo = "cxxreact-tvOS";
188 | };
189 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
190 | isa = PBXContainerItemProxy;
191 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
192 | proxyType = 2;
193 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
194 | remoteInfo = jschelpers;
195 | };
196 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
197 | isa = PBXContainerItemProxy;
198 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
199 | proxyType = 2;
200 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
201 | remoteInfo = "jschelpers-tvOS";
202 | };
203 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
204 | isa = PBXContainerItemProxy;
205 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
206 | proxyType = 2;
207 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
208 | remoteInfo = RCTAnimation;
209 | };
210 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
211 | isa = PBXContainerItemProxy;
212 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
213 | proxyType = 2;
214 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
215 | remoteInfo = "RCTAnimation-tvOS";
216 | };
217 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
218 | isa = PBXContainerItemProxy;
219 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
220 | proxyType = 2;
221 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
222 | remoteInfo = RCTLinking;
223 | };
224 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
225 | isa = PBXContainerItemProxy;
226 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
227 | proxyType = 2;
228 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
229 | remoteInfo = RCTText;
230 | };
231 | /* End PBXContainerItemProxy section */
232 |
233 | /* Begin PBXFileReference section */
234 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
235 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
236 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
237 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
238 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
239 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
240 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
241 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
242 | 00E356F21AD99517003FC87E /* ExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExampleTests.m; sourceTree = ""; };
243 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
244 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
245 | 13B07F961A680F5B00A75B9A /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
246 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Example/AppDelegate.h; sourceTree = ""; };
247 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Example/AppDelegate.m; sourceTree = ""; };
248 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
249 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Example/Images.xcassets; sourceTree = ""; };
250 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Example/Info.plist; sourceTree = ""; };
251 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Example/main.m; sourceTree = ""; };
252 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
253 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
254 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Example-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
255 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
256 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
257 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
258 | 7A30684316E5490091B66656 /* RNTabbedViewPagerAndroid.xcodeproj */ = {isa = PBXFileReference; name = "RNTabbedViewPagerAndroid.xcodeproj"; path = "../node_modules/react-native-tabbed-view-pager-android/ios/RNTabbedViewPagerAndroid.xcodeproj"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
259 | B51AA1B97A364636A8330C1F /* libRNTabbedViewPagerAndroid.a */ = {isa = PBXFileReference; name = "libRNTabbedViewPagerAndroid.a"; path = "libRNTabbedViewPagerAndroid.a"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
260 | /* End PBXFileReference section */
261 |
262 | /* Begin PBXFrameworksBuildPhase section */
263 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
264 | isa = PBXFrameworksBuildPhase;
265 | buildActionMask = 2147483647;
266 | files = (
267 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
268 | );
269 | runOnlyForDeploymentPostprocessing = 0;
270 | };
271 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
272 | isa = PBXFrameworksBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
276 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
277 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
278 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
279 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
280 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
281 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
282 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
283 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
284 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
285 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
286 | 6CBCD81CF6904A65A0C7F7DA /* libRNTabbedViewPagerAndroid.a in Frameworks */,
287 | );
288 | runOnlyForDeploymentPostprocessing = 0;
289 | };
290 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
291 | isa = PBXFrameworksBuildPhase;
292 | buildActionMask = 2147483647;
293 | files = (
294 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */,
295 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */,
296 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */,
297 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */,
298 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */,
299 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */,
300 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */,
301 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */,
302 | );
303 | runOnlyForDeploymentPostprocessing = 0;
304 | };
305 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
306 | isa = PBXFrameworksBuildPhase;
307 | buildActionMask = 2147483647;
308 | files = (
309 | );
310 | runOnlyForDeploymentPostprocessing = 0;
311 | };
312 | /* End PBXFrameworksBuildPhase section */
313 |
314 | /* Begin PBXGroup section */
315 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
316 | isa = PBXGroup;
317 | children = (
318 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
319 | );
320 | name = Products;
321 | sourceTree = "";
322 | };
323 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
324 | isa = PBXGroup;
325 | children = (
326 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
327 | );
328 | name = Products;
329 | sourceTree = "";
330 | };
331 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
332 | isa = PBXGroup;
333 | children = (
334 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
335 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */,
336 | );
337 | name = Products;
338 | sourceTree = "";
339 | };
340 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
341 | isa = PBXGroup;
342 | children = (
343 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
344 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */,
345 | );
346 | name = Products;
347 | sourceTree = "";
348 | };
349 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
350 | isa = PBXGroup;
351 | children = (
352 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
353 | );
354 | name = Products;
355 | sourceTree = "";
356 | };
357 | 00E356EF1AD99517003FC87E /* ExampleTests */ = {
358 | isa = PBXGroup;
359 | children = (
360 | 00E356F21AD99517003FC87E /* ExampleTests.m */,
361 | 00E356F01AD99517003FC87E /* Supporting Files */,
362 | );
363 | path = ExampleTests;
364 | sourceTree = "";
365 | };
366 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
367 | isa = PBXGroup;
368 | children = (
369 | 00E356F11AD99517003FC87E /* Info.plist */,
370 | );
371 | name = "Supporting Files";
372 | sourceTree = "";
373 | };
374 | 139105B71AF99BAD00B5F7CC /* Products */ = {
375 | isa = PBXGroup;
376 | children = (
377 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
378 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */,
379 | );
380 | name = Products;
381 | sourceTree = "";
382 | };
383 | 139FDEE71B06529A00C62182 /* Products */ = {
384 | isa = PBXGroup;
385 | children = (
386 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
387 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
388 | );
389 | name = Products;
390 | sourceTree = "";
391 | };
392 | 13B07FAE1A68108700A75B9A /* Example */ = {
393 | isa = PBXGroup;
394 | children = (
395 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
396 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
397 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
398 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
399 | 13B07FB61A68108700A75B9A /* Info.plist */,
400 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
401 | 13B07FB71A68108700A75B9A /* main.m */,
402 | );
403 | name = Example;
404 | sourceTree = "";
405 | };
406 | 146834001AC3E56700842450 /* Products */ = {
407 | isa = PBXGroup;
408 | children = (
409 | 146834041AC3E56700842450 /* libReact.a */,
410 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */,
411 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */,
412 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
413 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
414 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
415 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
416 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
417 | );
418 | name = Products;
419 | sourceTree = "";
420 | };
421 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
422 | isa = PBXGroup;
423 | children = (
424 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
425 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */,
426 | );
427 | name = Products;
428 | sourceTree = "";
429 | };
430 | 78C398B11ACF4ADC00677621 /* Products */ = {
431 | isa = PBXGroup;
432 | children = (
433 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
434 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */,
435 | );
436 | name = Products;
437 | sourceTree = "";
438 | };
439 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
440 | isa = PBXGroup;
441 | children = (
442 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
443 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
444 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
445 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
446 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
447 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
448 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
449 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
450 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
451 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
452 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
453 | 7A30684316E5490091B66656 /* RNTabbedViewPagerAndroid.xcodeproj */,
454 | );
455 | name = Libraries;
456 | sourceTree = "";
457 | };
458 | 832341B11AAA6A8300B99B32 /* Products */ = {
459 | isa = PBXGroup;
460 | children = (
461 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
462 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */,
463 | );
464 | name = Products;
465 | sourceTree = "";
466 | };
467 | 83CBB9F61A601CBA00E9B192 = {
468 | isa = PBXGroup;
469 | children = (
470 | 13B07FAE1A68108700A75B9A /* Example */,
471 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
472 | 00E356EF1AD99517003FC87E /* ExampleTests */,
473 | 83CBBA001A601CBA00E9B192 /* Products */,
474 | );
475 | indentWidth = 2;
476 | sourceTree = "";
477 | tabWidth = 2;
478 | };
479 | 83CBBA001A601CBA00E9B192 /* Products */ = {
480 | isa = PBXGroup;
481 | children = (
482 | 13B07F961A680F5B00A75B9A /* Example.app */,
483 | 00E356EE1AD99517003FC87E /* ExampleTests.xctest */,
484 | 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */,
485 | 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */,
486 | );
487 | name = Products;
488 | sourceTree = "";
489 | };
490 | /* End PBXGroup section */
491 |
492 | /* Begin PBXNativeTarget section */
493 | 00E356ED1AD99517003FC87E /* ExampleTests */ = {
494 | isa = PBXNativeTarget;
495 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */;
496 | buildPhases = (
497 | 00E356EA1AD99517003FC87E /* Sources */,
498 | 00E356EB1AD99517003FC87E /* Frameworks */,
499 | 00E356EC1AD99517003FC87E /* Resources */,
500 | );
501 | buildRules = (
502 | );
503 | dependencies = (
504 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
505 | );
506 | name = ExampleTests;
507 | productName = ExampleTests;
508 | productReference = 00E356EE1AD99517003FC87E /* ExampleTests.xctest */;
509 | productType = "com.apple.product-type.bundle.unit-test";
510 | };
511 | 13B07F861A680F5B00A75B9A /* Example */ = {
512 | isa = PBXNativeTarget;
513 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */;
514 | buildPhases = (
515 | 13B07F871A680F5B00A75B9A /* Sources */,
516 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
517 | 13B07F8E1A680F5B00A75B9A /* Resources */,
518 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
519 | );
520 | buildRules = (
521 | );
522 | dependencies = (
523 | );
524 | name = Example;
525 | productName = "Hello World";
526 | productReference = 13B07F961A680F5B00A75B9A /* Example.app */;
527 | productType = "com.apple.product-type.application";
528 | };
529 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */ = {
530 | isa = PBXNativeTarget;
531 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */;
532 | buildPhases = (
533 | 2D02E4771E0B4A5D006451C7 /* Sources */,
534 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
535 | 2D02E4791E0B4A5D006451C7 /* Resources */,
536 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
537 | );
538 | buildRules = (
539 | );
540 | dependencies = (
541 | );
542 | name = "Example-tvOS";
543 | productName = "Example-tvOS";
544 | productReference = 2D02E47B1E0B4A5D006451C7 /* Example-tvOS.app */;
545 | productType = "com.apple.product-type.application";
546 | };
547 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */ = {
548 | isa = PBXNativeTarget;
549 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */;
550 | buildPhases = (
551 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
552 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
553 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
554 | );
555 | buildRules = (
556 | );
557 | dependencies = (
558 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
559 | );
560 | name = "Example-tvOSTests";
561 | productName = "Example-tvOSTests";
562 | productReference = 2D02E4901E0B4A5D006451C7 /* Example-tvOSTests.xctest */;
563 | productType = "com.apple.product-type.bundle.unit-test";
564 | };
565 | /* End PBXNativeTarget section */
566 |
567 | /* Begin PBXProject section */
568 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
569 | isa = PBXProject;
570 | attributes = {
571 | LastUpgradeCheck = 610;
572 | ORGANIZATIONNAME = Facebook;
573 | TargetAttributes = {
574 | 00E356ED1AD99517003FC87E = {
575 | CreatedOnToolsVersion = 6.2;
576 | TestTargetID = 13B07F861A680F5B00A75B9A;
577 | };
578 | 2D02E47A1E0B4A5D006451C7 = {
579 | CreatedOnToolsVersion = 8.2.1;
580 | ProvisioningStyle = Automatic;
581 | };
582 | 2D02E48F1E0B4A5D006451C7 = {
583 | CreatedOnToolsVersion = 8.2.1;
584 | ProvisioningStyle = Automatic;
585 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
586 | };
587 | };
588 | };
589 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */;
590 | compatibilityVersion = "Xcode 3.2";
591 | developmentRegion = English;
592 | hasScannedForEncodings = 0;
593 | knownRegions = (
594 | en,
595 | Base,
596 | );
597 | mainGroup = 83CBB9F61A601CBA00E9B192;
598 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
599 | projectDirPath = "";
600 | projectReferences = (
601 | {
602 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
603 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
604 | },
605 | {
606 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
607 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
608 | },
609 | {
610 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
611 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
612 | },
613 | {
614 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
615 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
616 | },
617 | {
618 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
619 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
620 | },
621 | {
622 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
623 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
624 | },
625 | {
626 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
627 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
628 | },
629 | {
630 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
631 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
632 | },
633 | {
634 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
635 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
636 | },
637 | {
638 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
639 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
640 | },
641 | {
642 | ProductGroup = 146834001AC3E56700842450 /* Products */;
643 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
644 | },
645 | );
646 | projectRoot = "";
647 | targets = (
648 | 13B07F861A680F5B00A75B9A /* Example */,
649 | 00E356ED1AD99517003FC87E /* ExampleTests */,
650 | 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */,
651 | 2D02E48F1E0B4A5D006451C7 /* Example-tvOSTests */,
652 | );
653 | };
654 | /* End PBXProject section */
655 |
656 | /* Begin PBXReferenceProxy section */
657 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
658 | isa = PBXReferenceProxy;
659 | fileType = archive.ar;
660 | path = libRCTActionSheet.a;
661 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
662 | sourceTree = BUILT_PRODUCTS_DIR;
663 | };
664 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
665 | isa = PBXReferenceProxy;
666 | fileType = archive.ar;
667 | path = libRCTGeolocation.a;
668 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
669 | sourceTree = BUILT_PRODUCTS_DIR;
670 | };
671 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
672 | isa = PBXReferenceProxy;
673 | fileType = archive.ar;
674 | path = libRCTImage.a;
675 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
676 | sourceTree = BUILT_PRODUCTS_DIR;
677 | };
678 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
679 | isa = PBXReferenceProxy;
680 | fileType = archive.ar;
681 | path = libRCTNetwork.a;
682 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
683 | sourceTree = BUILT_PRODUCTS_DIR;
684 | };
685 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
686 | isa = PBXReferenceProxy;
687 | fileType = archive.ar;
688 | path = libRCTVibration.a;
689 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
690 | sourceTree = BUILT_PRODUCTS_DIR;
691 | };
692 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
693 | isa = PBXReferenceProxy;
694 | fileType = archive.ar;
695 | path = libRCTSettings.a;
696 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
697 | sourceTree = BUILT_PRODUCTS_DIR;
698 | };
699 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
700 | isa = PBXReferenceProxy;
701 | fileType = archive.ar;
702 | path = libRCTWebSocket.a;
703 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
704 | sourceTree = BUILT_PRODUCTS_DIR;
705 | };
706 | 146834041AC3E56700842450 /* libReact.a */ = {
707 | isa = PBXReferenceProxy;
708 | fileType = archive.ar;
709 | path = libReact.a;
710 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
711 | sourceTree = BUILT_PRODUCTS_DIR;
712 | };
713 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = {
714 | isa = PBXReferenceProxy;
715 | fileType = archive.ar;
716 | path = "libRCTImage-tvOS.a";
717 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */;
718 | sourceTree = BUILT_PRODUCTS_DIR;
719 | };
720 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = {
721 | isa = PBXReferenceProxy;
722 | fileType = archive.ar;
723 | path = "libRCTLinking-tvOS.a";
724 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */;
725 | sourceTree = BUILT_PRODUCTS_DIR;
726 | };
727 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = {
728 | isa = PBXReferenceProxy;
729 | fileType = archive.ar;
730 | path = "libRCTNetwork-tvOS.a";
731 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */;
732 | sourceTree = BUILT_PRODUCTS_DIR;
733 | };
734 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = {
735 | isa = PBXReferenceProxy;
736 | fileType = archive.ar;
737 | path = "libRCTSettings-tvOS.a";
738 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */;
739 | sourceTree = BUILT_PRODUCTS_DIR;
740 | };
741 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = {
742 | isa = PBXReferenceProxy;
743 | fileType = archive.ar;
744 | path = "libRCTText-tvOS.a";
745 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */;
746 | sourceTree = BUILT_PRODUCTS_DIR;
747 | };
748 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = {
749 | isa = PBXReferenceProxy;
750 | fileType = archive.ar;
751 | path = "libRCTWebSocket-tvOS.a";
752 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */;
753 | sourceTree = BUILT_PRODUCTS_DIR;
754 | };
755 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = {
756 | isa = PBXReferenceProxy;
757 | fileType = archive.ar;
758 | path = libReact.a;
759 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */;
760 | sourceTree = BUILT_PRODUCTS_DIR;
761 | };
762 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = {
763 | isa = PBXReferenceProxy;
764 | fileType = archive.ar;
765 | path = libyoga.a;
766 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */;
767 | sourceTree = BUILT_PRODUCTS_DIR;
768 | };
769 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = {
770 | isa = PBXReferenceProxy;
771 | fileType = archive.ar;
772 | path = libyoga.a;
773 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */;
774 | sourceTree = BUILT_PRODUCTS_DIR;
775 | };
776 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = {
777 | isa = PBXReferenceProxy;
778 | fileType = archive.ar;
779 | path = libcxxreact.a;
780 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */;
781 | sourceTree = BUILT_PRODUCTS_DIR;
782 | };
783 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = {
784 | isa = PBXReferenceProxy;
785 | fileType = archive.ar;
786 | path = libcxxreact.a;
787 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
788 | sourceTree = BUILT_PRODUCTS_DIR;
789 | };
790 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
791 | isa = PBXReferenceProxy;
792 | fileType = archive.ar;
793 | path = libjschelpers.a;
794 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
795 | sourceTree = BUILT_PRODUCTS_DIR;
796 | };
797 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
798 | isa = PBXReferenceProxy;
799 | fileType = archive.ar;
800 | path = libjschelpers.a;
801 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
802 | sourceTree = BUILT_PRODUCTS_DIR;
803 | };
804 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
805 | isa = PBXReferenceProxy;
806 | fileType = archive.ar;
807 | path = libRCTAnimation.a;
808 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
809 | sourceTree = BUILT_PRODUCTS_DIR;
810 | };
811 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = {
812 | isa = PBXReferenceProxy;
813 | fileType = archive.ar;
814 | path = "libRCTAnimation-tvOS.a";
815 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
816 | sourceTree = BUILT_PRODUCTS_DIR;
817 | };
818 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
819 | isa = PBXReferenceProxy;
820 | fileType = archive.ar;
821 | path = libRCTLinking.a;
822 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
823 | sourceTree = BUILT_PRODUCTS_DIR;
824 | };
825 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
826 | isa = PBXReferenceProxy;
827 | fileType = archive.ar;
828 | path = libRCTText.a;
829 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
830 | sourceTree = BUILT_PRODUCTS_DIR;
831 | };
832 | /* End PBXReferenceProxy section */
833 |
834 | /* Begin PBXResourcesBuildPhase section */
835 | 00E356EC1AD99517003FC87E /* Resources */ = {
836 | isa = PBXResourcesBuildPhase;
837 | buildActionMask = 2147483647;
838 | files = (
839 | );
840 | runOnlyForDeploymentPostprocessing = 0;
841 | };
842 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
843 | isa = PBXResourcesBuildPhase;
844 | buildActionMask = 2147483647;
845 | files = (
846 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
847 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
848 | );
849 | runOnlyForDeploymentPostprocessing = 0;
850 | };
851 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
852 | isa = PBXResourcesBuildPhase;
853 | buildActionMask = 2147483647;
854 | files = (
855 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
856 | );
857 | runOnlyForDeploymentPostprocessing = 0;
858 | };
859 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
860 | isa = PBXResourcesBuildPhase;
861 | buildActionMask = 2147483647;
862 | files = (
863 | );
864 | runOnlyForDeploymentPostprocessing = 0;
865 | };
866 | /* End PBXResourcesBuildPhase section */
867 |
868 | /* Begin PBXShellScriptBuildPhase section */
869 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
870 | isa = PBXShellScriptBuildPhase;
871 | buildActionMask = 2147483647;
872 | files = (
873 | );
874 | inputPaths = (
875 | );
876 | name = "Bundle React Native code and images";
877 | outputPaths = (
878 | );
879 | runOnlyForDeploymentPostprocessing = 0;
880 | shellPath = /bin/sh;
881 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
882 | };
883 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
884 | isa = PBXShellScriptBuildPhase;
885 | buildActionMask = 2147483647;
886 | files = (
887 | );
888 | inputPaths = (
889 | );
890 | name = "Bundle React Native Code And Images";
891 | outputPaths = (
892 | );
893 | runOnlyForDeploymentPostprocessing = 0;
894 | shellPath = /bin/sh;
895 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
896 | };
897 | /* End PBXShellScriptBuildPhase section */
898 |
899 | /* Begin PBXSourcesBuildPhase section */
900 | 00E356EA1AD99517003FC87E /* Sources */ = {
901 | isa = PBXSourcesBuildPhase;
902 | buildActionMask = 2147483647;
903 | files = (
904 | 00E356F31AD99517003FC87E /* ExampleTests.m in Sources */,
905 | );
906 | runOnlyForDeploymentPostprocessing = 0;
907 | };
908 | 13B07F871A680F5B00A75B9A /* Sources */ = {
909 | isa = PBXSourcesBuildPhase;
910 | buildActionMask = 2147483647;
911 | files = (
912 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
913 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
914 | );
915 | runOnlyForDeploymentPostprocessing = 0;
916 | };
917 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
918 | isa = PBXSourcesBuildPhase;
919 | buildActionMask = 2147483647;
920 | files = (
921 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
922 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
923 | );
924 | runOnlyForDeploymentPostprocessing = 0;
925 | };
926 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
927 | isa = PBXSourcesBuildPhase;
928 | buildActionMask = 2147483647;
929 | files = (
930 | 2DCD954D1E0B4F2C00145EB5 /* ExampleTests.m in Sources */,
931 | );
932 | runOnlyForDeploymentPostprocessing = 0;
933 | };
934 | /* End PBXSourcesBuildPhase section */
935 |
936 | /* Begin PBXTargetDependency section */
937 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
938 | isa = PBXTargetDependency;
939 | target = 13B07F861A680F5B00A75B9A /* Example */;
940 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
941 | };
942 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
943 | isa = PBXTargetDependency;
944 | target = 2D02E47A1E0B4A5D006451C7 /* Example-tvOS */;
945 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
946 | };
947 | /* End PBXTargetDependency section */
948 |
949 | /* Begin PBXVariantGroup section */
950 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
951 | isa = PBXVariantGroup;
952 | children = (
953 | 13B07FB21A68108700A75B9A /* Base */,
954 | );
955 | name = LaunchScreen.xib;
956 | path = Example;
957 | sourceTree = "";
958 | };
959 | /* End PBXVariantGroup section */
960 |
961 | /* Begin XCBuildConfiguration section */
962 | 00E356F61AD99517003FC87E /* Debug */ = {
963 | isa = XCBuildConfiguration;
964 | buildSettings = {
965 | BUNDLE_LOADER = "$(TEST_HOST)";
966 | GCC_PREPROCESSOR_DEFINITIONS = (
967 | "DEBUG=1",
968 | "$(inherited)",
969 | );
970 | INFOPLIST_FILE = ExampleTests/Info.plist;
971 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
972 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
973 | OTHER_LDFLAGS = (
974 | "-ObjC",
975 | "-lc++",
976 | );
977 | PRODUCT_NAME = "$(TARGET_NAME)";
978 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
979 | LIBRARY_SEARCH_PATHS = (
980 | "$(inherited)",
981 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
982 | );
983 | HEADER_SEARCH_PATHS = (
984 | "$(inherited)",
985 | "$(SRCROOT)/../node_modules/react-native-tabbed-view-pager-android/ios/**",
986 | );
987 | };
988 | name = Debug;
989 | };
990 | 00E356F71AD99517003FC87E /* Release */ = {
991 | isa = XCBuildConfiguration;
992 | buildSettings = {
993 | BUNDLE_LOADER = "$(TEST_HOST)";
994 | COPY_PHASE_STRIP = NO;
995 | INFOPLIST_FILE = ExampleTests/Info.plist;
996 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
997 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
998 | OTHER_LDFLAGS = (
999 | "-ObjC",
1000 | "-lc++",
1001 | );
1002 | PRODUCT_NAME = "$(TARGET_NAME)";
1003 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
1004 | LIBRARY_SEARCH_PATHS = (
1005 | "$(inherited)",
1006 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1007 | );
1008 | HEADER_SEARCH_PATHS = (
1009 | "$(inherited)",
1010 | "$(SRCROOT)/../node_modules/react-native-tabbed-view-pager-android/ios/**",
1011 | );
1012 | };
1013 | name = Release;
1014 | };
1015 | 13B07F941A680F5B00A75B9A /* Debug */ = {
1016 | isa = XCBuildConfiguration;
1017 | buildSettings = {
1018 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1019 | CURRENT_PROJECT_VERSION = 1;
1020 | DEAD_CODE_STRIPPING = NO;
1021 | INFOPLIST_FILE = Example/Info.plist;
1022 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1023 | OTHER_LDFLAGS = (
1024 | "$(inherited)",
1025 | "-ObjC",
1026 | "-lc++",
1027 | );
1028 | PRODUCT_NAME = Example;
1029 | VERSIONING_SYSTEM = "apple-generic";
1030 | HEADER_SEARCH_PATHS = (
1031 | "$(inherited)",
1032 | "$(SRCROOT)/../node_modules/react-native-tabbed-view-pager-android/ios/**",
1033 | );
1034 | };
1035 | name = Debug;
1036 | };
1037 | 13B07F951A680F5B00A75B9A /* Release */ = {
1038 | isa = XCBuildConfiguration;
1039 | buildSettings = {
1040 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
1041 | CURRENT_PROJECT_VERSION = 1;
1042 | INFOPLIST_FILE = Example/Info.plist;
1043 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1044 | OTHER_LDFLAGS = (
1045 | "$(inherited)",
1046 | "-ObjC",
1047 | "-lc++",
1048 | );
1049 | PRODUCT_NAME = Example;
1050 | VERSIONING_SYSTEM = "apple-generic";
1051 | HEADER_SEARCH_PATHS = (
1052 | "$(inherited)",
1053 | "$(SRCROOT)/../node_modules/react-native-tabbed-view-pager-android/ios/**",
1054 | );
1055 | };
1056 | name = Release;
1057 | };
1058 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
1059 | isa = XCBuildConfiguration;
1060 | buildSettings = {
1061 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1062 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1063 | CLANG_ANALYZER_NONNULL = YES;
1064 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1065 | CLANG_WARN_INFINITE_RECURSION = YES;
1066 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1067 | DEBUG_INFORMATION_FORMAT = dwarf;
1068 | ENABLE_TESTABILITY = YES;
1069 | GCC_NO_COMMON_BLOCKS = YES;
1070 | INFOPLIST_FILE = "Example-tvOS/Info.plist";
1071 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1072 | OTHER_LDFLAGS = (
1073 | "-ObjC",
1074 | "-lc++",
1075 | );
1076 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS";
1077 | PRODUCT_NAME = "$(TARGET_NAME)";
1078 | SDKROOT = appletvos;
1079 | TARGETED_DEVICE_FAMILY = 3;
1080 | TVOS_DEPLOYMENT_TARGET = 9.2;
1081 | LIBRARY_SEARCH_PATHS = (
1082 | "$(inherited)",
1083 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1084 | );
1085 | HEADER_SEARCH_PATHS = (
1086 | "$(inherited)",
1087 | "$(SRCROOT)/../node_modules/react-native-tabbed-view-pager-android/ios/**",
1088 | );
1089 | };
1090 | name = Debug;
1091 | };
1092 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
1093 | isa = XCBuildConfiguration;
1094 | buildSettings = {
1095 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
1096 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
1097 | CLANG_ANALYZER_NONNULL = YES;
1098 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1099 | CLANG_WARN_INFINITE_RECURSION = YES;
1100 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1101 | COPY_PHASE_STRIP = NO;
1102 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1103 | GCC_NO_COMMON_BLOCKS = YES;
1104 | INFOPLIST_FILE = "Example-tvOS/Info.plist";
1105 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
1106 | OTHER_LDFLAGS = (
1107 | "-ObjC",
1108 | "-lc++",
1109 | );
1110 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOS";
1111 | PRODUCT_NAME = "$(TARGET_NAME)";
1112 | SDKROOT = appletvos;
1113 | TARGETED_DEVICE_FAMILY = 3;
1114 | TVOS_DEPLOYMENT_TARGET = 9.2;
1115 | LIBRARY_SEARCH_PATHS = (
1116 | "$(inherited)",
1117 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1118 | );
1119 | HEADER_SEARCH_PATHS = (
1120 | "$(inherited)",
1121 | "$(SRCROOT)/../node_modules/react-native-tabbed-view-pager-android/ios/**",
1122 | );
1123 | };
1124 | name = Release;
1125 | };
1126 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
1127 | isa = XCBuildConfiguration;
1128 | buildSettings = {
1129 | BUNDLE_LOADER = "$(TEST_HOST)";
1130 | CLANG_ANALYZER_NONNULL = YES;
1131 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1132 | CLANG_WARN_INFINITE_RECURSION = YES;
1133 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1134 | DEBUG_INFORMATION_FORMAT = dwarf;
1135 | ENABLE_TESTABILITY = YES;
1136 | GCC_NO_COMMON_BLOCKS = YES;
1137 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist";
1138 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1139 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests";
1140 | PRODUCT_NAME = "$(TARGET_NAME)";
1141 | SDKROOT = appletvos;
1142 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS";
1143 | TVOS_DEPLOYMENT_TARGET = 10.1;
1144 | LIBRARY_SEARCH_PATHS = (
1145 | "$(inherited)",
1146 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1147 | );
1148 | };
1149 | name = Debug;
1150 | };
1151 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
1152 | isa = XCBuildConfiguration;
1153 | buildSettings = {
1154 | BUNDLE_LOADER = "$(TEST_HOST)";
1155 | CLANG_ANALYZER_NONNULL = YES;
1156 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1157 | CLANG_WARN_INFINITE_RECURSION = YES;
1158 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
1159 | COPY_PHASE_STRIP = NO;
1160 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1161 | GCC_NO_COMMON_BLOCKS = YES;
1162 | INFOPLIST_FILE = "Example-tvOSTests/Info.plist";
1163 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1164 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Example-tvOSTests";
1165 | PRODUCT_NAME = "$(TARGET_NAME)";
1166 | SDKROOT = appletvos;
1167 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example-tvOS.app/Example-tvOS";
1168 | TVOS_DEPLOYMENT_TARGET = 10.1;
1169 | LIBRARY_SEARCH_PATHS = (
1170 | "$(inherited)",
1171 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
1172 | );
1173 | };
1174 | name = Release;
1175 | };
1176 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
1177 | isa = XCBuildConfiguration;
1178 | buildSettings = {
1179 | ALWAYS_SEARCH_USER_PATHS = NO;
1180 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1181 | CLANG_CXX_LIBRARY = "libc++";
1182 | CLANG_ENABLE_MODULES = YES;
1183 | CLANG_ENABLE_OBJC_ARC = YES;
1184 | CLANG_WARN_BOOL_CONVERSION = YES;
1185 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1186 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1187 | CLANG_WARN_EMPTY_BODY = YES;
1188 | CLANG_WARN_ENUM_CONVERSION = YES;
1189 | CLANG_WARN_INT_CONVERSION = YES;
1190 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1191 | CLANG_WARN_UNREACHABLE_CODE = YES;
1192 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1193 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1194 | COPY_PHASE_STRIP = NO;
1195 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1196 | GCC_C_LANGUAGE_STANDARD = gnu99;
1197 | GCC_DYNAMIC_NO_PIC = NO;
1198 | GCC_OPTIMIZATION_LEVEL = 0;
1199 | GCC_PREPROCESSOR_DEFINITIONS = (
1200 | "DEBUG=1",
1201 | "$(inherited)",
1202 | );
1203 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
1204 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1205 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1206 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1207 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1208 | GCC_WARN_UNUSED_FUNCTION = YES;
1209 | GCC_WARN_UNUSED_VARIABLE = YES;
1210 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1211 | MTL_ENABLE_DEBUG_INFO = YES;
1212 | ONLY_ACTIVE_ARCH = YES;
1213 | SDKROOT = iphoneos;
1214 | };
1215 | name = Debug;
1216 | };
1217 | 83CBBA211A601CBA00E9B192 /* Release */ = {
1218 | isa = XCBuildConfiguration;
1219 | buildSettings = {
1220 | ALWAYS_SEARCH_USER_PATHS = NO;
1221 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
1222 | CLANG_CXX_LIBRARY = "libc++";
1223 | CLANG_ENABLE_MODULES = YES;
1224 | CLANG_ENABLE_OBJC_ARC = YES;
1225 | CLANG_WARN_BOOL_CONVERSION = YES;
1226 | CLANG_WARN_CONSTANT_CONVERSION = YES;
1227 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1228 | CLANG_WARN_EMPTY_BODY = YES;
1229 | CLANG_WARN_ENUM_CONVERSION = YES;
1230 | CLANG_WARN_INT_CONVERSION = YES;
1231 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1232 | CLANG_WARN_UNREACHABLE_CODE = YES;
1233 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
1234 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1235 | COPY_PHASE_STRIP = YES;
1236 | ENABLE_NS_ASSERTIONS = NO;
1237 | ENABLE_STRICT_OBJC_MSGSEND = YES;
1238 | GCC_C_LANGUAGE_STANDARD = gnu99;
1239 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1240 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1241 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1242 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1243 | GCC_WARN_UNUSED_FUNCTION = YES;
1244 | GCC_WARN_UNUSED_VARIABLE = YES;
1245 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1246 | MTL_ENABLE_DEBUG_INFO = NO;
1247 | SDKROOT = iphoneos;
1248 | VALIDATE_PRODUCT = YES;
1249 | };
1250 | name = Release;
1251 | };
1252 | /* End XCBuildConfiguration section */
1253 |
1254 | /* Begin XCConfigurationList section */
1255 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleTests" */ = {
1256 | isa = XCConfigurationList;
1257 | buildConfigurations = (
1258 | 00E356F61AD99517003FC87E /* Debug */,
1259 | 00E356F71AD99517003FC87E /* Release */,
1260 | );
1261 | defaultConfigurationIsVisible = 0;
1262 | defaultConfigurationName = Release;
1263 | };
1264 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Example" */ = {
1265 | isa = XCConfigurationList;
1266 | buildConfigurations = (
1267 | 13B07F941A680F5B00A75B9A /* Debug */,
1268 | 13B07F951A680F5B00A75B9A /* Release */,
1269 | );
1270 | defaultConfigurationIsVisible = 0;
1271 | defaultConfigurationName = Release;
1272 | };
1273 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOS" */ = {
1274 | isa = XCConfigurationList;
1275 | buildConfigurations = (
1276 | 2D02E4971E0B4A5E006451C7 /* Debug */,
1277 | 2D02E4981E0B4A5E006451C7 /* Release */,
1278 | );
1279 | defaultConfigurationIsVisible = 0;
1280 | defaultConfigurationName = Release;
1281 | };
1282 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Example-tvOSTests" */ = {
1283 | isa = XCConfigurationList;
1284 | buildConfigurations = (
1285 | 2D02E4991E0B4A5E006451C7 /* Debug */,
1286 | 2D02E49A1E0B4A5E006451C7 /* Release */,
1287 | );
1288 | defaultConfigurationIsVisible = 0;
1289 | defaultConfigurationName = Release;
1290 | };
1291 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Example" */ = {
1292 | isa = XCConfigurationList;
1293 | buildConfigurations = (
1294 | 83CBBA201A601CBA00E9B192 /* Debug */,
1295 | 83CBBA211A601CBA00E9B192 /* Release */,
1296 | );
1297 | defaultConfigurationIsVisible = 0;
1298 | defaultConfigurationName = Release;
1299 | };
1300 | /* End XCConfigurationList section */
1301 | };
1302 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1303 | }
1304 |
--------------------------------------------------------------------------------