├── .watchmanconfig ├── .gitattributes ├── .babelrc ├── app.json ├── image ├── ios.gif └── android.gif ├── android ├── app │ ├── weather.jks │ ├── 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 │ │ │ │ └── pulltorefreshdemo │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── AndroidManifest.xml │ ├── BUCK │ ├── proguard-rules.pro │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── keystores │ ├── debug.keystore.properties │ └── BUCK ├── settings.gradle ├── gradle.properties ├── build.gradle ├── gradlew.bat └── gradlew ├── .buckconfig ├── index.ios.js ├── index.android.js ├── __tests__ ├── index.ios.js └── index.android.js ├── ios ├── PullToRefreshDemo │ ├── AppDelegate.h │ ├── main.m │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── AppDelegate.m │ ├── Info.plist │ └── Base.lproj │ │ └── LaunchScreen.xib ├── PullToRefreshDemoTests │ ├── Info.plist │ └── PullToRefreshDemoTests.m ├── PullToRefreshDemo-tvOSTests │ └── Info.plist ├── PullToRefreshDemo-tvOS │ └── Info.plist └── PullToRefreshDemo.xcodeproj │ ├── xcshareddata │ └── xcschemes │ │ ├── PullToRefreshDemo.xcscheme │ │ └── PullToRefreshDemo-tvOS.xcscheme │ └── project.pbxproj ├── package.json ├── .gitignore ├── app ├── Main.js └── demo │ ├── PullScrollViewDemo.js │ ├── PullListViewDemo.js │ ├── PullFlatListDemo.js │ ├── PullViewDemo.js │ └── ScrollableTabBar.js ├── .flowconfig ├── README-ZH.md └── README.md /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PullToRefreshDemo", 3 | "displayName": "PullToRefreshDemo" 4 | } -------------------------------------------------------------------------------- /image/ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/image/ios.gif -------------------------------------------------------------------------------- /image/android.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/image/android.gif -------------------------------------------------------------------------------- /android/app/weather.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/android/app/weather.jks -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | PullToRefreshDemo 3 | 4 | -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hzl123456/react-native-rk-pull-to-refresh/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {AppRegistry,} from 'react-native'; 3 | import Main from './app/Main' 4 | AppRegistry.registerComponent('PullToRefreshDemo', () => Main); 5 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {AppRegistry,} from 'react-native'; 3 | import Main from './app/Main' 4 | AppRegistry.registerComponent('PullToRefreshDemo', () => Main); 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'PullToRefreshDemo' 2 | include ':react-native-rk-pull-to-refresh' 3 | project(':react-native-rk-pull-to-refresh').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-rk-pull-to-refresh/android') 4 | include ':app' 5 | 6 | 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Mar 09 14:57:23 CST 2019 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 | -------------------------------------------------------------------------------- /__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 | -------------------------------------------------------------------------------- /__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 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/pulltorefreshdemo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.pulltorefreshdemo; 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 "PullToRefreshDemo"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo/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 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo/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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PullToRefreshDemo", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "16.3.1", 11 | "react-native": "0.55.4", 12 | "react-native-rk-pull-to-refresh": "^1.2.7", 13 | "react-native-scrollable-tab-view": "^0.10.0" 14 | }, 15 | "devDependencies": { 16 | "babel-jest": "22.4.3", 17 | "babel-preset-react-native": "4.0.0", 18 | "jest": "22.4.3", 19 | "react-test-renderer": "16.3.1" 20 | }, 21 | "jest": { 22 | "preset": "react-native" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/PullToRefreshDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/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 | maven { 7 | url 'https://maven.google.com/' 8 | name 'Google' 9 | } 10 | } 11 | dependencies { 12 | classpath 'com.android.tools.build:gradle:3.0.1' 13 | 14 | // NOTE: Do not place your application dependencies here; they belong 15 | // in the individual module build.gradle files 16 | } 17 | } 18 | 19 | allprojects { 20 | repositories { 21 | mavenLocal() 22 | jcenter() 23 | maven { 24 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 25 | url "$rootDir/../node_modules/react-native/android" 26 | } 27 | maven { 28 | url 'https://maven.google.com/' 29 | name 'Google' 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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/app/src/main/java/com/pulltorefreshdemo/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.pulltorefreshdemo; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.hzl.pulltorefresh.RefreshReactPackage; 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 RefreshReactPackage() 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 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo/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:@"PullToRefreshDemo" 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 | -------------------------------------------------------------------------------- /app/Main.js: -------------------------------------------------------------------------------- 1 | import React, {Component} from 'react'; 2 | import {View, Platform, Dimensions, ViewPagerAndroid} from 'react-native'; 3 | 4 | import PullViewDemo from './demo/PullViewDemo' 5 | import PullScrollViewDemo from './demo/PullScrollViewDemo' 6 | import PullListViewDemo from './demo/PullListViewDemo' 7 | import PullFlatListDemo from './demo/PullFlatListDemo' 8 | import ScrollableTabView from 'react-native-scrollable-tab-view'; 9 | import ScrollableTabBar from './demo/ScrollableTabBar' 10 | 11 | const {width} = Dimensions.get('window') 12 | 13 | export default class Main extends Component { 14 | 15 | constructor(props) { 16 | super(props); 17 | console.disableYellowBox = true; //忽略黄色警告 18 | this.state = {locked: false, currentIndex: 0} 19 | } 20 | 21 | render() { 22 | return ( 23 | 26 | 27 | 28 | 29 | 30 | 31 | ) 32 | } 33 | 34 | _onPushing = (locked) => { 35 | if (this.state.locked != locked) { 36 | this.setState({locked: locked}) 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /app/demo/PullScrollViewDemo.js: -------------------------------------------------------------------------------- 1 | import React, {PureComponent} from 'react'; 2 | import {View, Text, Dimensions} from 'react-native'; 3 | import {PullScrollView} from 'react-native-rk-pull-to-refresh' 4 | 5 | const width = Dimensions.get('window').width 6 | 7 | export default class PullScrollViewDemo extends PureComponent { 8 | 9 | render() { 10 | return ( 11 | this.pull=c} 13 | style={{flex: 1, width: width}} 14 | onPushing={this.props.onPushing} 15 | onPullRelease={this._onPullRelease}> 16 | 17 | 内容1 18 | 19 | 20 | 内容2 21 | 22 | 23 | 内容3 24 | 25 | 26 | 内容4 27 | 28 | 29 | ) 30 | } 31 | 32 | _onPullRelease = () => { 33 | setTimeout(() => { 34 | this.pull && this.pull.finishRefresh() 35 | }, 2000) 36 | } 37 | 38 | componentDidMount() { 39 | this.pull && this.pull.startRefresh() 40 | } 41 | } -------------------------------------------------------------------------------- /.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\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-5]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 42 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 43 | 44 | unsafe.enable_getters_and_setters=true 45 | 46 | [version] 47 | ^0.45.0 48 | -------------------------------------------------------------------------------- /app/demo/PullListViewDemo.js: -------------------------------------------------------------------------------- 1 | import React, {PureComponent} from 'react'; 2 | import {ListView, View, Text, Dimensions} from 'react-native'; 3 | import {PullListView} from 'react-native-rk-pull-to-refresh' 4 | 5 | const width = Dimensions.get('window').width 6 | 7 | export default class PullListViewDemo extends PureComponent { 8 | 9 | constructor(props) { 10 | super(props); 11 | this.dataSource = 12 | new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}).cloneWithRows(this.getDataSource()) 13 | } 14 | 15 | getDataSource = () => { 16 | let array = new Array(); 17 | for (let i = 0; i < 50; i++) { 18 | array.push(`ListViewItem:${i + 1}`); 19 | } 20 | return array; 21 | } 22 | 23 | render() { 24 | return ( 25 | this.pull = c} 27 | isContentScroll={true} 28 | style={{flex: 1, width: width}} 29 | onPushing={this.props.onPushing} 30 | onPullRelease={this._onPullRelease} 31 | dataSource={this.dataSource} 32 | renderRow={this._renderRow}/> 33 | ) 34 | } 35 | 36 | _onPullRelease = () => { 37 | setTimeout(() => { 38 | this.pull && this.pull.finishRefresh() 39 | }, 2000) 40 | } 41 | 42 | _renderRow = (rowData) => { 43 | return ( 44 | 45 | {rowData} 46 | ); 47 | } 48 | 49 | componentDidMount() { 50 | this.pull && this.pull.startRefresh() 51 | } 52 | } 53 | 54 | 55 | -------------------------------------------------------------------------------- /app/demo/PullFlatListDemo.js: -------------------------------------------------------------------------------- 1 | import React, {PureComponent} from 'react'; 2 | import {View, Text, Dimensions} from 'react-native'; 3 | import {PullFlatList} from 'react-native-rk-pull-to-refresh' 4 | 5 | const width = Dimensions.get('window').width 6 | export default class PullFlatListDemo extends PureComponent { 7 | 8 | constructor(props) { 9 | super(props); 10 | this.dataSource = this.getDataSource() 11 | } 12 | 13 | getDataSource = () => { 14 | let array = new Array(); 15 | for (let i = 0; i < 50; i++) { 16 | array.push({key: i, value: `FlatListItem:${i + 1}`}); 17 | } 18 | return array; 19 | } 20 | 21 | render() { 22 | return ( 23 | this.pull = c} 25 | isContentScroll={true} 26 | ItemSeparatorComponent={() => } 27 | style={{flex: 1, width: width}} 28 | onPushing={this.props.onPushing} 29 | onPullRelease={this._onPullRelease} 30 | data={this.dataSource} 31 | renderItem={this._renderRow}/> 32 | ) 33 | } 34 | 35 | _onPullRelease = () => { 36 | setTimeout(() => { 37 | this.pull && this.pull.finishRefresh() 38 | }, 2000) 39 | } 40 | 41 | _renderRow = (rowData) => { 42 | return ( 43 | 44 | {rowData.item.value} 45 | ); 46 | } 47 | 48 | componentDidMount() { 49 | this.pull && this.pull.startRefresh() 50 | } 51 | 52 | } -------------------------------------------------------------------------------- /ios/PullToRefreshDemo-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 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.pulltorefreshdemo", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.pulltorefreshdemo", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | PullToRefreshDemo 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemoTests/PullToRefreshDemoTests.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 PullToRefreshDemoTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation PullToRefreshDemoTests 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 = [[[RCTSharedApplication() 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 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # TextLayoutBuilder uses a non-public Android constructor within StaticLayout. 54 | # See libs/proxy/src/main/java/com/facebook/fbui/textlayoutbuilder/proxy for details. 55 | -dontwarn android.text.StaticLayout 56 | 57 | # okhttp 58 | 59 | -keepattributes Signature 60 | -keepattributes *Annotation* 61 | -keep class okhttp3.** { *; } 62 | -keep interface okhttp3.** { *; } 63 | -dontwarn okhttp3.** 64 | 65 | # okio 66 | 67 | -keep class sun.misc.Unsafe { *; } 68 | -dontwarn java.nio.file.* 69 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 70 | -dontwarn okio.** 71 | -------------------------------------------------------------------------------- /app/demo/PullViewDemo.js: -------------------------------------------------------------------------------- 1 | import React, {PureComponent} from 'react'; 2 | import {View, Text, Dimensions, StyleSheet, ActivityIndicator} from 'react-native'; 3 | import {PullView} from 'react-native-rk-pull-to-refresh' 4 | 5 | const width = Dimensions.get('window').width 6 | const topIndicatorHeight = 50 7 | 8 | export default class PullViewDemo extends PureComponent { 9 | 10 | render() { 11 | return ( 12 | this.pull = c} 14 | style={{flex: 1, width: width}} 15 | topIndicatorRender={this.topIndicatorRender} 16 | topIndicatorHeight={topIndicatorHeight} 17 | onPullStateChangeHeight={this.onPullStateChangeHeight} 18 | onPushing={this.props.onPushing} 19 | onPullRelease={this._onPullRelease}> 20 | 21 | 这是内容 22 | 23 | 24 | ) 25 | } 26 | 27 | onPullStateChangeHeight = (pullState, moveHeight) => { 28 | if (pullState == 'pulling') { 29 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.show}); 30 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.hide}); 31 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.hide}); 32 | } else if (pullState == 'pullok') { 33 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.hide}); 34 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.show}); 35 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.hide}); 36 | } else if (pullState == 'pullrelease') { 37 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.hide}); 38 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.hide}); 39 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.show}); 40 | } 41 | } 42 | 43 | 44 | topIndicatorRender = () => { 45 | return ( 46 | 47 | 48 | 49 | 50 | this.txtPulling = c} style={styles.hide}>pulling... 51 | 52 | this.txtPullok = c} style={styles.hide}>pullok... 53 | 54 | this.txtPullrelease = c} style={styles.hide}>pullrelease... 55 | 56 | 57 | ); 58 | } 59 | 60 | 61 | _onPullRelease = () => { 62 | setTimeout(() => { 63 | this.pull && this.pull.finishRefresh() 64 | }, 2000) 65 | } 66 | 67 | componentDidMount() { 68 | this.pull && this.pull.startRefresh() 69 | } 70 | } 71 | 72 | const styles = StyleSheet.create({ 73 | hide: { 74 | position: 'absolute', 75 | left: 10000, 76 | backgroundColor: 'transparent' 77 | }, 78 | show: { 79 | position: 'relative', 80 | left: 0, 81 | backgroundColor: 'transparent' 82 | } 83 | }); -------------------------------------------------------------------------------- /ios/PullToRefreshDemo/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 | -------------------------------------------------------------------------------- /app/demo/ScrollableTabBar.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 作者:请叫我百米冲刺 on 2018/1/5 上午10:16 3 | * 邮箱:mail@hezhilin.cc 4 | */ 5 | 'use strict'; 6 | import React, {PureComponent} from 'react'; 7 | import PropTypes from 'prop-types'; 8 | import {StyleSheet, View, TouchableOpacity, Text, Animated} from 'react-native'; 9 | 10 | export default class TabLayout extends PureComponent { 11 | 12 | constructor(props) { 13 | super(props); 14 | this.state = { 15 | scrollValue: new Animated.Value(this.props.activeTab) 16 | } 17 | } 18 | 19 | static propTypes = { 20 | goToPage: PropTypes.func, 21 | activeTab: PropTypes.number, 22 | tabs: PropTypes.array, 23 | backgroundColor: PropTypes.string, 24 | activeTextColor: PropTypes.string, 25 | inactiveTextColor: PropTypes.string, 26 | textStyle: PropTypes.object, 27 | tabStyle: PropTypes.object, 28 | renderTab: PropTypes.func, 29 | underlineStyle: PropTypes.object, 30 | } 31 | 32 | static defaultProps = { 33 | activeTextColor: 'navy', 34 | inactiveTextColor: 'black', 35 | backgroundColor: null, 36 | } 37 | 38 | renderTab(name, page, isTabActive, onPressHandler) { 39 | const {activeTextColor, inactiveTextColor, textStyle,} = this.props; 40 | const textColor = isTabActive ? activeTextColor : inactiveTextColor; 41 | const fontWeight = isTabActive ? 'bold' : 'normal'; 42 | 43 | return ( 44 | onPressHandler(page)}> 52 | 53 | 54 | {name} 55 | 56 | 57 | 58 | ) 59 | } 60 | 61 | render() { 62 | const containerWidth = this.props.containerWidth; 63 | const numberOfTabs = this.props.tabs.length; 64 | const tabUnderlineStyle = { 65 | position: 'absolute', 66 | width: containerWidth / numberOfTabs, 67 | height: 4, 68 | backgroundColor: 'navy', 69 | bottom: 0, 70 | }; 71 | const left = this.state.scrollValue.interpolate({ 72 | inputRange: [0, 1], outputRange: [0, containerWidth / numberOfTabs], 73 | }); 74 | return ( 75 | 76 | {this.props.tabs.map((name, page) => { 77 | const isTabActive = this.props.activeTab === page; 78 | return this.renderTab(name, page, isTabActive, this.props.goToPage); 79 | })} 80 | 81 | 82 | ); 83 | } 84 | 85 | changeScrollValue(value) { 86 | this.state.scrollValue.setValue(value) 87 | } 88 | } 89 | 90 | const styles = StyleSheet.create({ 91 | tab: { 92 | flex: 1, 93 | alignItems: 'center', 94 | justifyContent: 'center', 95 | paddingBottom: 10, 96 | }, 97 | flexOne: { 98 | flex: 1, 99 | }, 100 | tabs: { 101 | height: 50, 102 | flexDirection: 'row', 103 | justifyContent: 'space-around', 104 | borderWidth: 1, 105 | borderTopWidth: 0, 106 | borderLeftWidth: 0, 107 | borderRightWidth: 0, 108 | borderColor: '#ccc', 109 | }, 110 | }); 111 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo.xcodeproj/xcshareddata/xcschemes/PullToRefreshDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo.xcodeproj/xcshareddata/xcschemes/PullToRefreshDemo-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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README-ZH.md: -------------------------------------------------------------------------------- 1 | 2 | # react-native-rk-pull-to-refresh(ios/android) 3 | 一个在React Native上使用的下拉刷新组件,同时支持android和ios并且拥有相同的Api。当然你可以自定义你自己的下拉刷新样式。它可以支持绝大多数的React Native中的组件实现下拉刷新功能。它里面已经实现了View,Scrollview,Listview和Flatlist的下拉刷新 4 | ## 效果展示 5 | ![ios](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/ios.gif)

6 | ![android](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/android.gif) 7 | ## 安装 8 | npm install react-native-rk-pull-to-refresh --save
9 | react-native link react-native-rk-pull-to-refresh 10 | ## 如何使用 11 | 它内部包含了PullView,PullScrollView,PullListView和PullFlatList,如果你想使用PullFlatList的话,那么你要保持你的React Native版本在0.43及以上。 12 | ### PullListView默认样式的使用 13 | ``` 14 | import React, {PureComponent} from 'react'; 15 | import {ListView, View, Text, Dimensions} from 'react-native'; 16 | import {PullListView} from 'react-native-rk-pull-to-refresh' 17 | 18 | const width = Dimensions.get('window').width 19 | 20 | export default class PullListViewDemo extends PureComponent { 21 | 22 | constructor(props) { 23 | super(props); 24 | this.dataSource = 25 | new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}).cloneWithRows(this.getDataSource()) 26 | } 27 | 28 | getDataSource = () => { 29 | let array = new Array(); 30 | for (let i = 0; i < 50; i++) { 31 | array.push(`ListViewItem:${i + 1}`); 32 | } 33 | return array; 34 | } 35 | 36 | render() { 37 | return ( 38 | this.pull = c} 40 | isContentScroll={true} 41 | style={{flex: 1, width: width}} 42 | onPushing={this.props.onPushing} 43 | onPullRelease={this._onPullRelease} 44 | dataSource={this.dataSource} 45 | renderRow={this._renderRow}/> 46 | ) 47 | } 48 | 49 | _onPullRelease = () => { 50 | setTimeout(() => { 51 | this.pull && this.pull.finishRefresh() 52 | }, 2000) 53 | } 54 | 55 | _renderRow = (rowData) => { 56 | return ( 57 | 58 | {rowData} 59 | ); 60 | } 61 | 62 | componentDidMount() { 63 | this.pull && this.pull.startRefresh() 64 | } 65 | } 66 | ``` 67 | ### PullView自定义样式的使用 68 | ``` 69 | import React, {PureComponent} from 'react'; 70 | import {View, Text, Dimensions, StyleSheet, ActivityIndicator} from 'react-native'; 71 | import {PullView} from 'react-native-rk-pull-to-refresh' 72 | 73 | const width = Dimensions.get('window').width 74 | const topIndicatorHeight = 50 75 | 76 | export default class PullViewDemo extends PureComponent { 77 | 78 | render() { 79 | return ( 80 | this.pull = c} 82 | style={{flex: 1, width: width}} 83 | topIndicatorRender={this.topIndicatorRender} 84 | topIndicatorHeight={topIndicatorHeight} 85 | onPullStateChangeHeight={this.onPullStateChangeHeight} 86 | onPushing={this.props.onPushing} 87 | onPullRelease={this._onPullRelease}> 88 | 89 | 这是内容 90 | 91 | 92 | ) 93 | } 94 | 95 | onPullStateChangeHeight = (pullState, moveHeight) => { 96 | if (pullState == 'pulling') { 97 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.show}); 98 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.hide}); 99 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.hide}); 100 | } else if (pullState == 'pullok') { 101 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.hide}); 102 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.show}); 103 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.hide}); 104 | } else if (pullState == 'pullrelease') { 105 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.hide}); 106 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.hide}); 107 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.show}); 108 | } 109 | } 110 | 111 | 112 | topIndicatorRender = () => { 113 | return ( 114 | 115 | 116 | 117 | 118 | this.txtPulling = c} style={styles.hide}>pulling... 119 | 120 | this.txtPullok = c} style={styles.hide}>pullok... 121 | 122 | this.txtPullrelease = c} style={styles.hide}>pullrelease... 123 | 124 | 125 | ); 126 | } 127 | 128 | 129 | _onPullRelease = () => { 130 | setTimeout(() => { 131 | this.pull && this.pull.finishRefresh() 132 | }, 2000) 133 | } 134 | 135 | componentDidMount() { 136 | this.pull && this.pull.startRefresh() 137 | } 138 | } 139 | 140 | const styles = StyleSheet.create({ 141 | hide: { 142 | position: 'absolute', 143 | left: 10000, 144 | backgroundColor: 'transparent' 145 | }, 146 | show: { 147 | position: 'relative', 148 | left: 0, 149 | backgroundColor: 'transparent' 150 | } 151 | }); 152 | ``` 153 | ## 完整例子 154 | 克隆或者下载这个PullToRefreshDemo 155 | ## 属性 156 | Porp|Type|Optional|Default|Description 157 | ---- | ---- | ------- | ------- | ------------ 158 | refreshable | bool | yes | true |是否需要下拉刷新功能 159 | isContentScroll | bool | yes |false|在下拉的时候内容时候要一起跟着滚动 160 | onPullRelease | func |yes | | 刷新的回调 161 | topIndicatorRender |func |yes | |下拉刷新头部的样式,当它为空的时候就使用默认的 162 | topIndicatorHeight |number |yes | |下拉刷新头部的高度,当topIndicatorRender不为空的时候要设置正确的topIndicatorHeight 163 | onPullStateChangeHeight |func|yes| |下拉时候的回调,主要是刷新的状态的下拉的距离 164 | onPushing|func|yes| |下拉时候的回调,告诉外界此时是否在下拉刷新 165 | ## 方法 166 | startRefresh():手动调用下拉刷新功能
167 | finishRefresh():结束下拉刷新 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | apply from: "../../node_modules/react-native/react.gradle" 76 | 77 | /** 78 | * Set this to true to create two separate APKs instead of one: 79 | * - An APK that only works on ARM devices 80 | * - An APK that only works on x86 devices 81 | * The advantage is the size of the APK is reduced by about 4MB. 82 | * Upload all the APKs to the Play Store and people will download 83 | * the correct one based on the CPU architecture of their device. 84 | */ 85 | def enableSeparateBuildPerCPUArchitecture = false 86 | 87 | /** 88 | * Run Proguard to shrink the Java bytecode in release builds. 89 | */ 90 | def enableProguardInReleaseBuilds = false 91 | 92 | android { 93 | compileSdkVersion 28 94 | buildToolsVersion "28.0.2" 95 | 96 | defaultConfig { 97 | applicationId "com.pulltorefreshdemo" 98 | minSdkVersion 16 99 | targetSdkVersion 27 100 | versionCode 1 101 | versionName "1.0" 102 | ndk { 103 | abiFilters "armeabi-v7a", "x86" 104 | } 105 | } 106 | splits { 107 | abi { 108 | reset() 109 | enable enableSeparateBuildPerCPUArchitecture 110 | universalApk false // If true, also generate a universal APK 111 | include "armeabi-v7a", "x86" 112 | } 113 | } 114 | signingConfigs { 115 | release { 116 | keyAlias 'weather' 117 | keyPassword "123456" 118 | storeFile file('weather.jks') 119 | storePassword "123456" 120 | } 121 | } 122 | buildTypes { 123 | release { 124 | //release导出版本的时候采用的configs 125 | signingConfig signingConfigs.release 126 | minifyEnabled enableProguardInReleaseBuilds 127 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 128 | } 129 | } 130 | // applicationVariants are e.g. debug, release 131 | applicationVariants.all { variant -> 132 | variant.outputs.each { output -> 133 | // For each separate APK per architecture, set a unique version code as described here: 134 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 135 | def versionCodes = ["armeabi-v7a": 1, "x86": 2] 136 | def abi = output.getFilter(OutputFile.ABI) 137 | if (abi != null) { // null for the universal-debug, universal-release variants 138 | output.versionCodeOverride = 139 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 140 | } 141 | } 142 | } 143 | } 144 | 145 | dependencies { 146 | implementation fileTree(dir: "libs", include: ["*.jar"]) 147 | implementation "com.facebook.react:react-native:+" // From node_modules 148 | implementation project(':react-native-rk-pull-to-refresh') 149 | } 150 | 151 | // Run this once to be able to run the application with BUCK 152 | // puts all compile dependencies into folder libs for BUCK to use 153 | task copyDownloadableDepsToLibs(type: Copy) { 154 | from configurations.compile 155 | into 'libs' 156 | } 157 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-rk-pull-to-refresh(ios/android) 2 | [中文说明](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/README-ZH.md)

3 | A pull to refresh component for react-native, same api on both android and ios.Also you can design you owner pull style for this component.You can use it for most of the component in react-native such as View,Scrollview,Listview and Flatlist. 4 | ## Preview 5 | ![ios](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/ios.gif)

6 | ![android](https://github.com/hzl123456/react-native-rk-pull-to-refresh/blob/master/image/android.gif) 7 | ## Installation 8 | npm install react-native-rk-pull-to-refresh --save
9 | react-native link react-native-rk-pull-to-refresh 10 | ## How to use 11 | It contains PullView,PullScrollView,PullListView and PullFlatList.If you want to use PullFlatList,you should use this component whith React Native 0.43 and newer. 12 | ### Use it for Listview with default style 13 | ``` 14 | import React, {PureComponent} from 'react'; 15 | import {ListView, View, Text, Dimensions} from 'react-native'; 16 | import {PullListView} from 'react-native-rk-pull-to-refresh' 17 | 18 | const width = Dimensions.get('window').width 19 | 20 | export default class PullListViewDemo extends PureComponent { 21 | 22 | constructor(props) { 23 | super(props); 24 | this.dataSource = 25 | new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}).cloneWithRows(this.getDataSource()) 26 | } 27 | 28 | getDataSource = () => { 29 | let array = new Array(); 30 | for (let i = 0; i < 50; i++) { 31 | array.push(`ListViewItem:${i + 1}`); 32 | } 33 | return array; 34 | } 35 | 36 | render() { 37 | return ( 38 | this.pull = c} 40 | isContentScroll={true} 41 | style={{flex: 1, width: width}} 42 | onPushing={this.props.onPushing} 43 | onPullRelease={this._onPullRelease} 44 | dataSource={this.dataSource} 45 | renderRow={this._renderRow}/> 46 | ) 47 | } 48 | 49 | _onPullRelease = () => { 50 | setTimeout(() => { 51 | this.pull && this.pull.finishRefresh() 52 | }, 2000) 53 | } 54 | 55 | _renderRow = (rowData) => { 56 | return ( 57 | 58 | {rowData} 59 | ); 60 | } 61 | 62 | componentDidMount() { 63 | this.pull && this.pull.startRefresh() 64 | } 65 | } 66 | ``` 67 | ### Use it for View with you owner style 68 | ``` 69 | import React, {PureComponent} from 'react'; 70 | import {View, Text, Dimensions, StyleSheet, ActivityIndicator} from 'react-native'; 71 | import {PullView} from 'react-native-rk-pull-to-refresh' 72 | 73 | const width = Dimensions.get('window').width 74 | const topIndicatorHeight = 50 75 | 76 | export default class PullViewDemo extends PureComponent { 77 | 78 | render() { 79 | return ( 80 | this.pull = c} 82 | style={{flex: 1, width: width}} 83 | topIndicatorRender={this.topIndicatorRender} 84 | topIndicatorHeight={topIndicatorHeight} 85 | onPullStateChangeHeight={this.onPullStateChangeHeight} 86 | onPushing={this.props.onPushing} 87 | onPullRelease={this._onPullRelease}> 88 | 89 | 这是内容 90 | 91 | 92 | ) 93 | } 94 | 95 | onPullStateChangeHeight = (pullState, moveHeight) => { 96 | if (pullState == 'pulling') { 97 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.show}); 98 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.hide}); 99 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.hide}); 100 | } else if (pullState == 'pullok') { 101 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.hide}); 102 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.show}); 103 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.hide}); 104 | } else if (pullState == 'pullrelease') { 105 | this.txtPulling && this.txtPulling.setNativeProps({style: styles.hide}); 106 | this.txtPullok && this.txtPullok.setNativeProps({style: styles.hide}); 107 | this.txtPullrelease && this.txtPullrelease.setNativeProps({style: styles.show}); 108 | } 109 | } 110 | 111 | 112 | topIndicatorRender = () => { 113 | return ( 114 | 115 | 116 | 117 | 118 | this.txtPulling = c} style={styles.hide}>pulling... 119 | 120 | this.txtPullok = c} style={styles.hide}>pullok... 121 | 122 | this.txtPullrelease = c} style={styles.hide}>pullrelease... 123 | 124 | 125 | ); 126 | } 127 | 128 | 129 | _onPullRelease = () => { 130 | setTimeout(() => { 131 | this.pull && this.pull.finishRefresh() 132 | }, 2000) 133 | } 134 | 135 | componentDidMount() { 136 | this.pull && this.pull.startRefresh() 137 | } 138 | } 139 | 140 | const styles = StyleSheet.create({ 141 | hide: { 142 | position: 'absolute', 143 | left: 10000, 144 | backgroundColor: 'transparent' 145 | }, 146 | show: { 147 | position: 'relative', 148 | left: 0, 149 | backgroundColor: 'transparent' 150 | } 151 | }); 152 | ``` 153 | ## Full Demo 154 | clone or download PullToRefreshDemo 155 | ## Props 156 | Porp|Type|Optional|Default|Description 157 | ---- | ---- | ------- | ------- | ------------ 158 | refreshable | bool | yes | true |can pull to refresh or not 159 | isContentScroll | bool | yes |false|content scroll when pulling 160 | onPullRelease | func |yes | | when refreshing, this function will be called 161 | topIndicatorRender |func |yes | |top pulling render for this component,when the value is undefined,this component use default top pulling render 162 | topIndicatorHeight |number |yes | |top pulling render header,when topIndicatorRender is not undefined,you must set the correct topIndicatorHeight 163 | onPullStateChangeHeight |func|yes| |when pulling, this function will be called 164 | onPushing|func|yes| |when pulling, this function will be called 165 | ## Method 166 | startRefresh():force begin pull down refresh
167 | finishRefresh():end pull down refresh 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /ios/PullToRefreshDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* PullToRefreshDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* PullToRefreshDemoTests.m */; }; 16 | 085751E91EF0C8A3001B856C /* libART.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 085751C71EF0C899001B856C /* libART.a */; }; 17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 27 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 28 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 29 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 30 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 31 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 32 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 33 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 34 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 35 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 36 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 37 | 2DCD954D1E0B4F2C00145EB5 /* PullToRefreshDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* PullToRefreshDemoTests.m */; }; 38 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 39 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 40 | /* End PBXBuildFile section */ 41 | 42 | /* Begin PBXContainerItemProxy section */ 43 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 48 | remoteInfo = RCTActionSheet; 49 | }; 50 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 55 | remoteInfo = RCTGeolocation; 56 | }; 57 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 62 | remoteInfo = RCTImage; 63 | }; 64 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 67 | proxyType = 2; 68 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 69 | remoteInfo = RCTNetwork; 70 | }; 71 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 76 | remoteInfo = RCTVibration; 77 | }; 78 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 81 | proxyType = 1; 82 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 83 | remoteInfo = PullToRefreshDemo; 84 | }; 85 | 085751C61EF0C899001B856C /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 085751C11EF0C899001B856C /* ART.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 0CF68AC11AF0540F00FF9E5C; 90 | remoteInfo = ART; 91 | }; 92 | 08A4ECF820A95ED4002F4181 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 085751C11EF0C899001B856C /* ART.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 323A12871E5F266B004975B8; 97 | remoteInfo = "ART-tvOS"; 98 | }; 99 | 08A4ED0D20A95ED4002F4181 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 104 | remoteInfo = fishhook; 105 | }; 106 | 08A4ED0F20A95ED4002F4181 /* PBXContainerItemProxy */ = { 107 | isa = PBXContainerItemProxy; 108 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 109 | proxyType = 2; 110 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 111 | remoteInfo = "fishhook-tvOS"; 112 | }; 113 | 08A4ED2120A95ED4002F4181 /* PBXContainerItemProxy */ = { 114 | isa = PBXContainerItemProxy; 115 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 116 | proxyType = 2; 117 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 118 | remoteInfo = jsinspector; 119 | }; 120 | 08A4ED2320A95ED4002F4181 /* PBXContainerItemProxy */ = { 121 | isa = PBXContainerItemProxy; 122 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 123 | proxyType = 2; 124 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 125 | remoteInfo = "jsinspector-tvOS"; 126 | }; 127 | 08A4ED2520A95ED4002F4181 /* PBXContainerItemProxy */ = { 128 | isa = PBXContainerItemProxy; 129 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 130 | proxyType = 2; 131 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 132 | remoteInfo = "third-party"; 133 | }; 134 | 08A4ED2720A95ED4002F4181 /* PBXContainerItemProxy */ = { 135 | isa = PBXContainerItemProxy; 136 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 137 | proxyType = 2; 138 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 139 | remoteInfo = "third-party-tvOS"; 140 | }; 141 | 08A4ED2920A95ED4002F4181 /* PBXContainerItemProxy */ = { 142 | isa = PBXContainerItemProxy; 143 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 144 | proxyType = 2; 145 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 146 | remoteInfo = "double-conversion"; 147 | }; 148 | 08A4ED2B20A95ED4002F4181 /* PBXContainerItemProxy */ = { 149 | isa = PBXContainerItemProxy; 150 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 151 | proxyType = 2; 152 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 153 | remoteInfo = "double-conversion-tvOS"; 154 | }; 155 | 08A4ED2D20A95ED4002F4181 /* PBXContainerItemProxy */ = { 156 | isa = PBXContainerItemProxy; 157 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 158 | proxyType = 2; 159 | remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; 160 | remoteInfo = privatedata; 161 | }; 162 | 08A4ED2F20A95ED4002F4181 /* PBXContainerItemProxy */ = { 163 | isa = PBXContainerItemProxy; 164 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 165 | proxyType = 2; 166 | remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; 167 | remoteInfo = "privatedata-tvOS"; 168 | }; 169 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 170 | isa = PBXContainerItemProxy; 171 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 172 | proxyType = 2; 173 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 174 | remoteInfo = RCTSettings; 175 | }; 176 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 177 | isa = PBXContainerItemProxy; 178 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 179 | proxyType = 2; 180 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 181 | remoteInfo = RCTWebSocket; 182 | }; 183 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 184 | isa = PBXContainerItemProxy; 185 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 186 | proxyType = 2; 187 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 188 | remoteInfo = React; 189 | }; 190 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 191 | isa = PBXContainerItemProxy; 192 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 193 | proxyType = 1; 194 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 195 | remoteInfo = "PullToRefreshDemo-tvOS"; 196 | }; 197 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 198 | isa = PBXContainerItemProxy; 199 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 200 | proxyType = 2; 201 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 202 | remoteInfo = "RCTImage-tvOS"; 203 | }; 204 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 205 | isa = PBXContainerItemProxy; 206 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 207 | proxyType = 2; 208 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 209 | remoteInfo = "RCTLinking-tvOS"; 210 | }; 211 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 212 | isa = PBXContainerItemProxy; 213 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 214 | proxyType = 2; 215 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 216 | remoteInfo = "RCTNetwork-tvOS"; 217 | }; 218 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 219 | isa = PBXContainerItemProxy; 220 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 221 | proxyType = 2; 222 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 223 | remoteInfo = "RCTSettings-tvOS"; 224 | }; 225 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 226 | isa = PBXContainerItemProxy; 227 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 228 | proxyType = 2; 229 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 230 | remoteInfo = "RCTText-tvOS"; 231 | }; 232 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 233 | isa = PBXContainerItemProxy; 234 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 235 | proxyType = 2; 236 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 237 | remoteInfo = "RCTWebSocket-tvOS"; 238 | }; 239 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 240 | isa = PBXContainerItemProxy; 241 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 242 | proxyType = 2; 243 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 244 | remoteInfo = "React-tvOS"; 245 | }; 246 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 247 | isa = PBXContainerItemProxy; 248 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 249 | proxyType = 2; 250 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 251 | remoteInfo = yoga; 252 | }; 253 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 254 | isa = PBXContainerItemProxy; 255 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 256 | proxyType = 2; 257 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 258 | remoteInfo = "yoga-tvOS"; 259 | }; 260 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 261 | isa = PBXContainerItemProxy; 262 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 263 | proxyType = 2; 264 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 265 | remoteInfo = cxxreact; 266 | }; 267 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 268 | isa = PBXContainerItemProxy; 269 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 270 | proxyType = 2; 271 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 272 | remoteInfo = "cxxreact-tvOS"; 273 | }; 274 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 275 | isa = PBXContainerItemProxy; 276 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 277 | proxyType = 2; 278 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 279 | remoteInfo = jschelpers; 280 | }; 281 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 282 | isa = PBXContainerItemProxy; 283 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 284 | proxyType = 2; 285 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 286 | remoteInfo = "jschelpers-tvOS"; 287 | }; 288 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 289 | isa = PBXContainerItemProxy; 290 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 291 | proxyType = 2; 292 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 293 | remoteInfo = RCTAnimation; 294 | }; 295 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 296 | isa = PBXContainerItemProxy; 297 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 298 | proxyType = 2; 299 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 300 | remoteInfo = "RCTAnimation-tvOS"; 301 | }; 302 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 303 | isa = PBXContainerItemProxy; 304 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 305 | proxyType = 2; 306 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 307 | remoteInfo = RCTLinking; 308 | }; 309 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 310 | isa = PBXContainerItemProxy; 311 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 312 | proxyType = 2; 313 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 314 | remoteInfo = RCTText; 315 | }; 316 | /* End PBXContainerItemProxy section */ 317 | 318 | /* Begin PBXFileReference section */ 319 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 320 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 321 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 322 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 323 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 324 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 325 | 00E356EE1AD99517003FC87E /* PullToRefreshDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PullToRefreshDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 326 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 327 | 00E356F21AD99517003FC87E /* PullToRefreshDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PullToRefreshDemoTests.m; sourceTree = ""; }; 328 | 085751C11EF0C899001B856C /* ART.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ART.xcodeproj; path = "../node_modules/react-native/Libraries/ART/ART.xcodeproj"; sourceTree = ""; }; 329 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 330 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 331 | 13B07F961A680F5B00A75B9A /* PullToRefreshDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PullToRefreshDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 332 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = PullToRefreshDemo/AppDelegate.h; sourceTree = ""; }; 333 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = PullToRefreshDemo/AppDelegate.m; sourceTree = ""; }; 334 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 335 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = PullToRefreshDemo/Images.xcassets; sourceTree = ""; }; 336 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = PullToRefreshDemo/Info.plist; sourceTree = ""; }; 337 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = PullToRefreshDemo/main.m; sourceTree = ""; }; 338 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 339 | 2D02E47B1E0B4A5D006451C7 /* PullToRefreshDemo-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "PullToRefreshDemo-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 340 | 2D02E4901E0B4A5D006451C7 /* PullToRefreshDemo-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "PullToRefreshDemo-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 341 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 342 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 343 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 344 | /* End PBXFileReference section */ 345 | 346 | /* Begin PBXFrameworksBuildPhase section */ 347 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 348 | isa = PBXFrameworksBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 356 | isa = PBXFrameworksBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | 085751E91EF0C8A3001B856C /* libART.a in Frameworks */, 360 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 361 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 362 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 363 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 364 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 365 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 366 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 367 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 368 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 369 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 370 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 375 | isa = PBXFrameworksBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 379 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 380 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 381 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 382 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 383 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 384 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 385 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | }; 389 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 390 | isa = PBXFrameworksBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | ); 394 | runOnlyForDeploymentPostprocessing = 0; 395 | }; 396 | /* End PBXFrameworksBuildPhase section */ 397 | 398 | /* Begin PBXGroup section */ 399 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 400 | isa = PBXGroup; 401 | children = ( 402 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 403 | ); 404 | name = Products; 405 | sourceTree = ""; 406 | }; 407 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 408 | isa = PBXGroup; 409 | children = ( 410 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 411 | ); 412 | name = Products; 413 | sourceTree = ""; 414 | }; 415 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 416 | isa = PBXGroup; 417 | children = ( 418 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 419 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 420 | ); 421 | name = Products; 422 | sourceTree = ""; 423 | }; 424 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 425 | isa = PBXGroup; 426 | children = ( 427 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 428 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 429 | ); 430 | name = Products; 431 | sourceTree = ""; 432 | }; 433 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 434 | isa = PBXGroup; 435 | children = ( 436 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 437 | ); 438 | name = Products; 439 | sourceTree = ""; 440 | }; 441 | 00E356EF1AD99517003FC87E /* PullToRefreshDemoTests */ = { 442 | isa = PBXGroup; 443 | children = ( 444 | 00E356F21AD99517003FC87E /* PullToRefreshDemoTests.m */, 445 | 00E356F01AD99517003FC87E /* Supporting Files */, 446 | ); 447 | path = PullToRefreshDemoTests; 448 | sourceTree = ""; 449 | }; 450 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 451 | isa = PBXGroup; 452 | children = ( 453 | 00E356F11AD99517003FC87E /* Info.plist */, 454 | ); 455 | name = "Supporting Files"; 456 | sourceTree = ""; 457 | }; 458 | 085751C21EF0C899001B856C /* Products */ = { 459 | isa = PBXGroup; 460 | children = ( 461 | 085751C71EF0C899001B856C /* libART.a */, 462 | 08A4ECF920A95ED4002F4181 /* libART-tvOS.a */, 463 | ); 464 | name = Products; 465 | sourceTree = ""; 466 | }; 467 | 139105B71AF99BAD00B5F7CC /* Products */ = { 468 | isa = PBXGroup; 469 | children = ( 470 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 471 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 472 | ); 473 | name = Products; 474 | sourceTree = ""; 475 | }; 476 | 139FDEE71B06529A00C62182 /* Products */ = { 477 | isa = PBXGroup; 478 | children = ( 479 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 480 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 481 | 08A4ED0E20A95ED4002F4181 /* libfishhook.a */, 482 | 08A4ED1020A95ED4002F4181 /* libfishhook-tvOS.a */, 483 | ); 484 | name = Products; 485 | sourceTree = ""; 486 | }; 487 | 13B07FAE1A68108700A75B9A /* PullToRefreshDemo */ = { 488 | isa = PBXGroup; 489 | children = ( 490 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 491 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 492 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 493 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 494 | 13B07FB61A68108700A75B9A /* Info.plist */, 495 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 496 | 13B07FB71A68108700A75B9A /* main.m */, 497 | ); 498 | name = PullToRefreshDemo; 499 | sourceTree = ""; 500 | }; 501 | 146834001AC3E56700842450 /* Products */ = { 502 | isa = PBXGroup; 503 | children = ( 504 | 146834041AC3E56700842450 /* libReact.a */, 505 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 506 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 507 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 508 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 509 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 510 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 511 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 512 | 08A4ED2220A95ED4002F4181 /* libjsinspector.a */, 513 | 08A4ED2420A95ED4002F4181 /* libjsinspector-tvOS.a */, 514 | 08A4ED2620A95ED4002F4181 /* libthird-party.a */, 515 | 08A4ED2820A95ED4002F4181 /* libthird-party.a */, 516 | 08A4ED2A20A95ED4002F4181 /* libdouble-conversion.a */, 517 | 08A4ED2C20A95ED4002F4181 /* libdouble-conversion.a */, 518 | 08A4ED2E20A95ED4002F4181 /* libprivatedata.a */, 519 | 08A4ED3020A95ED4002F4181 /* libprivatedata-tvOS.a */, 520 | ); 521 | name = Products; 522 | sourceTree = ""; 523 | }; 524 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 525 | isa = PBXGroup; 526 | children = ( 527 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 528 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 529 | ); 530 | name = Products; 531 | sourceTree = ""; 532 | }; 533 | 78C398B11ACF4ADC00677621 /* Products */ = { 534 | isa = PBXGroup; 535 | children = ( 536 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 537 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 538 | ); 539 | name = Products; 540 | sourceTree = ""; 541 | }; 542 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 543 | isa = PBXGroup; 544 | children = ( 545 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 546 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 547 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 548 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 549 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 550 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 551 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 552 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 553 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 554 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 555 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 556 | ); 557 | name = Libraries; 558 | sourceTree = ""; 559 | }; 560 | 832341B11AAA6A8300B99B32 /* Products */ = { 561 | isa = PBXGroup; 562 | children = ( 563 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 564 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 565 | ); 566 | name = Products; 567 | sourceTree = ""; 568 | }; 569 | 83CBB9F61A601CBA00E9B192 = { 570 | isa = PBXGroup; 571 | children = ( 572 | 085751C11EF0C899001B856C /* ART.xcodeproj */, 573 | 13B07FAE1A68108700A75B9A /* PullToRefreshDemo */, 574 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 575 | 00E356EF1AD99517003FC87E /* PullToRefreshDemoTests */, 576 | 83CBBA001A601CBA00E9B192 /* Products */, 577 | ); 578 | indentWidth = 2; 579 | sourceTree = ""; 580 | tabWidth = 2; 581 | }; 582 | 83CBBA001A601CBA00E9B192 /* Products */ = { 583 | isa = PBXGroup; 584 | children = ( 585 | 13B07F961A680F5B00A75B9A /* PullToRefreshDemo.app */, 586 | 00E356EE1AD99517003FC87E /* PullToRefreshDemoTests.xctest */, 587 | 2D02E47B1E0B4A5D006451C7 /* PullToRefreshDemo-tvOS.app */, 588 | 2D02E4901E0B4A5D006451C7 /* PullToRefreshDemo-tvOSTests.xctest */, 589 | ); 590 | name = Products; 591 | sourceTree = ""; 592 | }; 593 | /* End PBXGroup section */ 594 | 595 | /* Begin PBXNativeTarget section */ 596 | 00E356ED1AD99517003FC87E /* PullToRefreshDemoTests */ = { 597 | isa = PBXNativeTarget; 598 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "PullToRefreshDemoTests" */; 599 | buildPhases = ( 600 | 00E356EA1AD99517003FC87E /* Sources */, 601 | 00E356EB1AD99517003FC87E /* Frameworks */, 602 | 00E356EC1AD99517003FC87E /* Resources */, 603 | ); 604 | buildRules = ( 605 | ); 606 | dependencies = ( 607 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 608 | ); 609 | name = PullToRefreshDemoTests; 610 | productName = PullToRefreshDemoTests; 611 | productReference = 00E356EE1AD99517003FC87E /* PullToRefreshDemoTests.xctest */; 612 | productType = "com.apple.product-type.bundle.unit-test"; 613 | }; 614 | 13B07F861A680F5B00A75B9A /* PullToRefreshDemo */ = { 615 | isa = PBXNativeTarget; 616 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "PullToRefreshDemo" */; 617 | buildPhases = ( 618 | 13B07F871A680F5B00A75B9A /* Sources */, 619 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 620 | 13B07F8E1A680F5B00A75B9A /* Resources */, 621 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 622 | ); 623 | buildRules = ( 624 | ); 625 | dependencies = ( 626 | ); 627 | name = PullToRefreshDemo; 628 | productName = "Hello World"; 629 | productReference = 13B07F961A680F5B00A75B9A /* PullToRefreshDemo.app */; 630 | productType = "com.apple.product-type.application"; 631 | }; 632 | 2D02E47A1E0B4A5D006451C7 /* PullToRefreshDemo-tvOS */ = { 633 | isa = PBXNativeTarget; 634 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "PullToRefreshDemo-tvOS" */; 635 | buildPhases = ( 636 | 2D02E4771E0B4A5D006451C7 /* Sources */, 637 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 638 | 2D02E4791E0B4A5D006451C7 /* Resources */, 639 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 640 | ); 641 | buildRules = ( 642 | ); 643 | dependencies = ( 644 | ); 645 | name = "PullToRefreshDemo-tvOS"; 646 | productName = "PullToRefreshDemo-tvOS"; 647 | productReference = 2D02E47B1E0B4A5D006451C7 /* PullToRefreshDemo-tvOS.app */; 648 | productType = "com.apple.product-type.application"; 649 | }; 650 | 2D02E48F1E0B4A5D006451C7 /* PullToRefreshDemo-tvOSTests */ = { 651 | isa = PBXNativeTarget; 652 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "PullToRefreshDemo-tvOSTests" */; 653 | buildPhases = ( 654 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 655 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 656 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 657 | ); 658 | buildRules = ( 659 | ); 660 | dependencies = ( 661 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 662 | ); 663 | name = "PullToRefreshDemo-tvOSTests"; 664 | productName = "PullToRefreshDemo-tvOSTests"; 665 | productReference = 2D02E4901E0B4A5D006451C7 /* PullToRefreshDemo-tvOSTests.xctest */; 666 | productType = "com.apple.product-type.bundle.unit-test"; 667 | }; 668 | /* End PBXNativeTarget section */ 669 | 670 | /* Begin PBXProject section */ 671 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 672 | isa = PBXProject; 673 | attributes = { 674 | LastUpgradeCheck = 0610; 675 | ORGANIZATIONNAME = Facebook; 676 | TargetAttributes = { 677 | 00E356ED1AD99517003FC87E = { 678 | CreatedOnToolsVersion = 6.2; 679 | TestTargetID = 13B07F861A680F5B00A75B9A; 680 | }; 681 | 2D02E47A1E0B4A5D006451C7 = { 682 | CreatedOnToolsVersion = 8.2.1; 683 | ProvisioningStyle = Automatic; 684 | }; 685 | 2D02E48F1E0B4A5D006451C7 = { 686 | CreatedOnToolsVersion = 8.2.1; 687 | ProvisioningStyle = Automatic; 688 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 689 | }; 690 | }; 691 | }; 692 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "PullToRefreshDemo" */; 693 | compatibilityVersion = "Xcode 3.2"; 694 | developmentRegion = English; 695 | hasScannedForEncodings = 0; 696 | knownRegions = ( 697 | en, 698 | Base, 699 | ); 700 | mainGroup = 83CBB9F61A601CBA00E9B192; 701 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 702 | projectDirPath = ""; 703 | projectReferences = ( 704 | { 705 | ProductGroup = 085751C21EF0C899001B856C /* Products */; 706 | ProjectRef = 085751C11EF0C899001B856C /* ART.xcodeproj */; 707 | }, 708 | { 709 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 710 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 711 | }, 712 | { 713 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 714 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 715 | }, 716 | { 717 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 718 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 719 | }, 720 | { 721 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 722 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 723 | }, 724 | { 725 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 726 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 727 | }, 728 | { 729 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 730 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 731 | }, 732 | { 733 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 734 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 735 | }, 736 | { 737 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 738 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 739 | }, 740 | { 741 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 742 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 743 | }, 744 | { 745 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 746 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 747 | }, 748 | { 749 | ProductGroup = 146834001AC3E56700842450 /* Products */; 750 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 751 | }, 752 | ); 753 | projectRoot = ""; 754 | targets = ( 755 | 13B07F861A680F5B00A75B9A /* PullToRefreshDemo */, 756 | 00E356ED1AD99517003FC87E /* PullToRefreshDemoTests */, 757 | 2D02E47A1E0B4A5D006451C7 /* PullToRefreshDemo-tvOS */, 758 | 2D02E48F1E0B4A5D006451C7 /* PullToRefreshDemo-tvOSTests */, 759 | ); 760 | }; 761 | /* End PBXProject section */ 762 | 763 | /* Begin PBXReferenceProxy section */ 764 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 765 | isa = PBXReferenceProxy; 766 | fileType = archive.ar; 767 | path = libRCTActionSheet.a; 768 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 769 | sourceTree = BUILT_PRODUCTS_DIR; 770 | }; 771 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 772 | isa = PBXReferenceProxy; 773 | fileType = archive.ar; 774 | path = libRCTGeolocation.a; 775 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 776 | sourceTree = BUILT_PRODUCTS_DIR; 777 | }; 778 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 779 | isa = PBXReferenceProxy; 780 | fileType = archive.ar; 781 | path = libRCTImage.a; 782 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 783 | sourceTree = BUILT_PRODUCTS_DIR; 784 | }; 785 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 786 | isa = PBXReferenceProxy; 787 | fileType = archive.ar; 788 | path = libRCTNetwork.a; 789 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 790 | sourceTree = BUILT_PRODUCTS_DIR; 791 | }; 792 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 793 | isa = PBXReferenceProxy; 794 | fileType = archive.ar; 795 | path = libRCTVibration.a; 796 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 797 | sourceTree = BUILT_PRODUCTS_DIR; 798 | }; 799 | 085751C71EF0C899001B856C /* libART.a */ = { 800 | isa = PBXReferenceProxy; 801 | fileType = archive.ar; 802 | path = libART.a; 803 | remoteRef = 085751C61EF0C899001B856C /* PBXContainerItemProxy */; 804 | sourceTree = BUILT_PRODUCTS_DIR; 805 | }; 806 | 08A4ECF920A95ED4002F4181 /* libART-tvOS.a */ = { 807 | isa = PBXReferenceProxy; 808 | fileType = archive.ar; 809 | path = "libART-tvOS.a"; 810 | remoteRef = 08A4ECF820A95ED4002F4181 /* PBXContainerItemProxy */; 811 | sourceTree = BUILT_PRODUCTS_DIR; 812 | }; 813 | 08A4ED0E20A95ED4002F4181 /* libfishhook.a */ = { 814 | isa = PBXReferenceProxy; 815 | fileType = archive.ar; 816 | path = libfishhook.a; 817 | remoteRef = 08A4ED0D20A95ED4002F4181 /* PBXContainerItemProxy */; 818 | sourceTree = BUILT_PRODUCTS_DIR; 819 | }; 820 | 08A4ED1020A95ED4002F4181 /* libfishhook-tvOS.a */ = { 821 | isa = PBXReferenceProxy; 822 | fileType = archive.ar; 823 | path = "libfishhook-tvOS.a"; 824 | remoteRef = 08A4ED0F20A95ED4002F4181 /* PBXContainerItemProxy */; 825 | sourceTree = BUILT_PRODUCTS_DIR; 826 | }; 827 | 08A4ED2220A95ED4002F4181 /* libjsinspector.a */ = { 828 | isa = PBXReferenceProxy; 829 | fileType = archive.ar; 830 | path = libjsinspector.a; 831 | remoteRef = 08A4ED2120A95ED4002F4181 /* PBXContainerItemProxy */; 832 | sourceTree = BUILT_PRODUCTS_DIR; 833 | }; 834 | 08A4ED2420A95ED4002F4181 /* libjsinspector-tvOS.a */ = { 835 | isa = PBXReferenceProxy; 836 | fileType = archive.ar; 837 | path = "libjsinspector-tvOS.a"; 838 | remoteRef = 08A4ED2320A95ED4002F4181 /* PBXContainerItemProxy */; 839 | sourceTree = BUILT_PRODUCTS_DIR; 840 | }; 841 | 08A4ED2620A95ED4002F4181 /* libthird-party.a */ = { 842 | isa = PBXReferenceProxy; 843 | fileType = archive.ar; 844 | path = "libthird-party.a"; 845 | remoteRef = 08A4ED2520A95ED4002F4181 /* PBXContainerItemProxy */; 846 | sourceTree = BUILT_PRODUCTS_DIR; 847 | }; 848 | 08A4ED2820A95ED4002F4181 /* libthird-party.a */ = { 849 | isa = PBXReferenceProxy; 850 | fileType = archive.ar; 851 | path = "libthird-party.a"; 852 | remoteRef = 08A4ED2720A95ED4002F4181 /* PBXContainerItemProxy */; 853 | sourceTree = BUILT_PRODUCTS_DIR; 854 | }; 855 | 08A4ED2A20A95ED4002F4181 /* libdouble-conversion.a */ = { 856 | isa = PBXReferenceProxy; 857 | fileType = archive.ar; 858 | path = "libdouble-conversion.a"; 859 | remoteRef = 08A4ED2920A95ED4002F4181 /* PBXContainerItemProxy */; 860 | sourceTree = BUILT_PRODUCTS_DIR; 861 | }; 862 | 08A4ED2C20A95ED4002F4181 /* libdouble-conversion.a */ = { 863 | isa = PBXReferenceProxy; 864 | fileType = archive.ar; 865 | path = "libdouble-conversion.a"; 866 | remoteRef = 08A4ED2B20A95ED4002F4181 /* PBXContainerItemProxy */; 867 | sourceTree = BUILT_PRODUCTS_DIR; 868 | }; 869 | 08A4ED2E20A95ED4002F4181 /* libprivatedata.a */ = { 870 | isa = PBXReferenceProxy; 871 | fileType = archive.ar; 872 | path = libprivatedata.a; 873 | remoteRef = 08A4ED2D20A95ED4002F4181 /* PBXContainerItemProxy */; 874 | sourceTree = BUILT_PRODUCTS_DIR; 875 | }; 876 | 08A4ED3020A95ED4002F4181 /* libprivatedata-tvOS.a */ = { 877 | isa = PBXReferenceProxy; 878 | fileType = archive.ar; 879 | path = "libprivatedata-tvOS.a"; 880 | remoteRef = 08A4ED2F20A95ED4002F4181 /* PBXContainerItemProxy */; 881 | sourceTree = BUILT_PRODUCTS_DIR; 882 | }; 883 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 884 | isa = PBXReferenceProxy; 885 | fileType = archive.ar; 886 | path = libRCTSettings.a; 887 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 888 | sourceTree = BUILT_PRODUCTS_DIR; 889 | }; 890 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 891 | isa = PBXReferenceProxy; 892 | fileType = archive.ar; 893 | path = libRCTWebSocket.a; 894 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 895 | sourceTree = BUILT_PRODUCTS_DIR; 896 | }; 897 | 146834041AC3E56700842450 /* libReact.a */ = { 898 | isa = PBXReferenceProxy; 899 | fileType = archive.ar; 900 | path = libReact.a; 901 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 902 | sourceTree = BUILT_PRODUCTS_DIR; 903 | }; 904 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 905 | isa = PBXReferenceProxy; 906 | fileType = archive.ar; 907 | path = "libRCTImage-tvOS.a"; 908 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 909 | sourceTree = BUILT_PRODUCTS_DIR; 910 | }; 911 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 912 | isa = PBXReferenceProxy; 913 | fileType = archive.ar; 914 | path = "libRCTLinking-tvOS.a"; 915 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 916 | sourceTree = BUILT_PRODUCTS_DIR; 917 | }; 918 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 919 | isa = PBXReferenceProxy; 920 | fileType = archive.ar; 921 | path = "libRCTNetwork-tvOS.a"; 922 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 923 | sourceTree = BUILT_PRODUCTS_DIR; 924 | }; 925 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 926 | isa = PBXReferenceProxy; 927 | fileType = archive.ar; 928 | path = "libRCTSettings-tvOS.a"; 929 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 930 | sourceTree = BUILT_PRODUCTS_DIR; 931 | }; 932 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 933 | isa = PBXReferenceProxy; 934 | fileType = archive.ar; 935 | path = "libRCTText-tvOS.a"; 936 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 937 | sourceTree = BUILT_PRODUCTS_DIR; 938 | }; 939 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 940 | isa = PBXReferenceProxy; 941 | fileType = archive.ar; 942 | path = "libRCTWebSocket-tvOS.a"; 943 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 944 | sourceTree = BUILT_PRODUCTS_DIR; 945 | }; 946 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 947 | isa = PBXReferenceProxy; 948 | fileType = archive.ar; 949 | path = libReact.a; 950 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 951 | sourceTree = BUILT_PRODUCTS_DIR; 952 | }; 953 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 954 | isa = PBXReferenceProxy; 955 | fileType = archive.ar; 956 | path = libyoga.a; 957 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 958 | sourceTree = BUILT_PRODUCTS_DIR; 959 | }; 960 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 961 | isa = PBXReferenceProxy; 962 | fileType = archive.ar; 963 | path = libyoga.a; 964 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 965 | sourceTree = BUILT_PRODUCTS_DIR; 966 | }; 967 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 968 | isa = PBXReferenceProxy; 969 | fileType = archive.ar; 970 | path = libcxxreact.a; 971 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 972 | sourceTree = BUILT_PRODUCTS_DIR; 973 | }; 974 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 975 | isa = PBXReferenceProxy; 976 | fileType = archive.ar; 977 | path = libcxxreact.a; 978 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 979 | sourceTree = BUILT_PRODUCTS_DIR; 980 | }; 981 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 982 | isa = PBXReferenceProxy; 983 | fileType = archive.ar; 984 | path = libjschelpers.a; 985 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 986 | sourceTree = BUILT_PRODUCTS_DIR; 987 | }; 988 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 989 | isa = PBXReferenceProxy; 990 | fileType = archive.ar; 991 | path = libjschelpers.a; 992 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 993 | sourceTree = BUILT_PRODUCTS_DIR; 994 | }; 995 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 996 | isa = PBXReferenceProxy; 997 | fileType = archive.ar; 998 | path = libRCTAnimation.a; 999 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1000 | sourceTree = BUILT_PRODUCTS_DIR; 1001 | }; 1002 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1003 | isa = PBXReferenceProxy; 1004 | fileType = archive.ar; 1005 | path = libRCTAnimation.a; 1006 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1007 | sourceTree = BUILT_PRODUCTS_DIR; 1008 | }; 1009 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1010 | isa = PBXReferenceProxy; 1011 | fileType = archive.ar; 1012 | path = libRCTLinking.a; 1013 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1014 | sourceTree = BUILT_PRODUCTS_DIR; 1015 | }; 1016 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1017 | isa = PBXReferenceProxy; 1018 | fileType = archive.ar; 1019 | path = libRCTText.a; 1020 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1021 | sourceTree = BUILT_PRODUCTS_DIR; 1022 | }; 1023 | /* End PBXReferenceProxy section */ 1024 | 1025 | /* Begin PBXResourcesBuildPhase section */ 1026 | 00E356EC1AD99517003FC87E /* Resources */ = { 1027 | isa = PBXResourcesBuildPhase; 1028 | buildActionMask = 2147483647; 1029 | files = ( 1030 | ); 1031 | runOnlyForDeploymentPostprocessing = 0; 1032 | }; 1033 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1034 | isa = PBXResourcesBuildPhase; 1035 | buildActionMask = 2147483647; 1036 | files = ( 1037 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1038 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1039 | ); 1040 | runOnlyForDeploymentPostprocessing = 0; 1041 | }; 1042 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1043 | isa = PBXResourcesBuildPhase; 1044 | buildActionMask = 2147483647; 1045 | files = ( 1046 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1047 | ); 1048 | runOnlyForDeploymentPostprocessing = 0; 1049 | }; 1050 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1051 | isa = PBXResourcesBuildPhase; 1052 | buildActionMask = 2147483647; 1053 | files = ( 1054 | ); 1055 | runOnlyForDeploymentPostprocessing = 0; 1056 | }; 1057 | /* End PBXResourcesBuildPhase section */ 1058 | 1059 | /* Begin PBXShellScriptBuildPhase section */ 1060 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1061 | isa = PBXShellScriptBuildPhase; 1062 | buildActionMask = 2147483647; 1063 | files = ( 1064 | ); 1065 | inputPaths = ( 1066 | ); 1067 | name = "Bundle React Native code and images"; 1068 | outputPaths = ( 1069 | ); 1070 | runOnlyForDeploymentPostprocessing = 0; 1071 | shellPath = /bin/sh; 1072 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1073 | }; 1074 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1075 | isa = PBXShellScriptBuildPhase; 1076 | buildActionMask = 2147483647; 1077 | files = ( 1078 | ); 1079 | inputPaths = ( 1080 | ); 1081 | name = "Bundle React Native Code And Images"; 1082 | outputPaths = ( 1083 | ); 1084 | runOnlyForDeploymentPostprocessing = 0; 1085 | shellPath = /bin/sh; 1086 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 1087 | }; 1088 | /* End PBXShellScriptBuildPhase section */ 1089 | 1090 | /* Begin PBXSourcesBuildPhase section */ 1091 | 00E356EA1AD99517003FC87E /* Sources */ = { 1092 | isa = PBXSourcesBuildPhase; 1093 | buildActionMask = 2147483647; 1094 | files = ( 1095 | 00E356F31AD99517003FC87E /* PullToRefreshDemoTests.m in Sources */, 1096 | ); 1097 | runOnlyForDeploymentPostprocessing = 0; 1098 | }; 1099 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1100 | isa = PBXSourcesBuildPhase; 1101 | buildActionMask = 2147483647; 1102 | files = ( 1103 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1104 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1105 | ); 1106 | runOnlyForDeploymentPostprocessing = 0; 1107 | }; 1108 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1109 | isa = PBXSourcesBuildPhase; 1110 | buildActionMask = 2147483647; 1111 | files = ( 1112 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1113 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1114 | ); 1115 | runOnlyForDeploymentPostprocessing = 0; 1116 | }; 1117 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1118 | isa = PBXSourcesBuildPhase; 1119 | buildActionMask = 2147483647; 1120 | files = ( 1121 | 2DCD954D1E0B4F2C00145EB5 /* PullToRefreshDemoTests.m in Sources */, 1122 | ); 1123 | runOnlyForDeploymentPostprocessing = 0; 1124 | }; 1125 | /* End PBXSourcesBuildPhase section */ 1126 | 1127 | /* Begin PBXTargetDependency section */ 1128 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1129 | isa = PBXTargetDependency; 1130 | target = 13B07F861A680F5B00A75B9A /* PullToRefreshDemo */; 1131 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1132 | }; 1133 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1134 | isa = PBXTargetDependency; 1135 | target = 2D02E47A1E0B4A5D006451C7 /* PullToRefreshDemo-tvOS */; 1136 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1137 | }; 1138 | /* End PBXTargetDependency section */ 1139 | 1140 | /* Begin PBXVariantGroup section */ 1141 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1142 | isa = PBXVariantGroup; 1143 | children = ( 1144 | 13B07FB21A68108700A75B9A /* Base */, 1145 | ); 1146 | name = LaunchScreen.xib; 1147 | path = PullToRefreshDemo; 1148 | sourceTree = ""; 1149 | }; 1150 | /* End PBXVariantGroup section */ 1151 | 1152 | /* Begin XCBuildConfiguration section */ 1153 | 00E356F61AD99517003FC87E /* Debug */ = { 1154 | isa = XCBuildConfiguration; 1155 | buildSettings = { 1156 | BUNDLE_LOADER = "$(TEST_HOST)"; 1157 | GCC_PREPROCESSOR_DEFINITIONS = ( 1158 | "DEBUG=1", 1159 | "$(inherited)", 1160 | ); 1161 | INFOPLIST_FILE = PullToRefreshDemoTests/Info.plist; 1162 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1163 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1164 | OTHER_LDFLAGS = ( 1165 | "-ObjC", 1166 | "-lc++", 1167 | ); 1168 | PRODUCT_NAME = "$(TARGET_NAME)"; 1169 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefreshDemo.app/PullToRefreshDemo"; 1170 | }; 1171 | name = Debug; 1172 | }; 1173 | 00E356F71AD99517003FC87E /* Release */ = { 1174 | isa = XCBuildConfiguration; 1175 | buildSettings = { 1176 | BUNDLE_LOADER = "$(TEST_HOST)"; 1177 | COPY_PHASE_STRIP = NO; 1178 | INFOPLIST_FILE = PullToRefreshDemoTests/Info.plist; 1179 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1180 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1181 | OTHER_LDFLAGS = ( 1182 | "-ObjC", 1183 | "-lc++", 1184 | ); 1185 | PRODUCT_NAME = "$(TARGET_NAME)"; 1186 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefreshDemo.app/PullToRefreshDemo"; 1187 | }; 1188 | name = Release; 1189 | }; 1190 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1191 | isa = XCBuildConfiguration; 1192 | buildSettings = { 1193 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1194 | CURRENT_PROJECT_VERSION = 1; 1195 | DEAD_CODE_STRIPPING = NO; 1196 | HEADER_SEARCH_PATHS = ""; 1197 | INFOPLIST_FILE = PullToRefreshDemo/Info.plist; 1198 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1199 | LIBRARY_SEARCH_PATHS = ""; 1200 | OTHER_LDFLAGS = ( 1201 | "$(inherited)", 1202 | "-ObjC", 1203 | "-lc++", 1204 | ); 1205 | PRODUCT_NAME = PullToRefreshDemo; 1206 | VERSIONING_SYSTEM = "apple-generic"; 1207 | }; 1208 | name = Debug; 1209 | }; 1210 | 13B07F951A680F5B00A75B9A /* Release */ = { 1211 | isa = XCBuildConfiguration; 1212 | buildSettings = { 1213 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1214 | CURRENT_PROJECT_VERSION = 1; 1215 | HEADER_SEARCH_PATHS = ""; 1216 | INFOPLIST_FILE = PullToRefreshDemo/Info.plist; 1217 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1218 | LIBRARY_SEARCH_PATHS = ""; 1219 | OTHER_LDFLAGS = ( 1220 | "$(inherited)", 1221 | "-ObjC", 1222 | "-lc++", 1223 | ); 1224 | PRODUCT_NAME = PullToRefreshDemo; 1225 | VERSIONING_SYSTEM = "apple-generic"; 1226 | }; 1227 | name = Release; 1228 | }; 1229 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1230 | isa = XCBuildConfiguration; 1231 | buildSettings = { 1232 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1233 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1234 | CLANG_ANALYZER_NONNULL = YES; 1235 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1236 | CLANG_WARN_INFINITE_RECURSION = YES; 1237 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1238 | DEBUG_INFORMATION_FORMAT = dwarf; 1239 | ENABLE_TESTABILITY = YES; 1240 | GCC_NO_COMMON_BLOCKS = YES; 1241 | INFOPLIST_FILE = "PullToRefreshDemo-tvOS/Info.plist"; 1242 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1243 | OTHER_LDFLAGS = ( 1244 | "-ObjC", 1245 | "-lc++", 1246 | ); 1247 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.PullToRefreshDemo-tvOS"; 1248 | PRODUCT_NAME = "$(TARGET_NAME)"; 1249 | SDKROOT = appletvos; 1250 | TARGETED_DEVICE_FAMILY = 3; 1251 | TVOS_DEPLOYMENT_TARGET = 9.2; 1252 | }; 1253 | name = Debug; 1254 | }; 1255 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1256 | isa = XCBuildConfiguration; 1257 | buildSettings = { 1258 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1259 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1260 | CLANG_ANALYZER_NONNULL = YES; 1261 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1262 | CLANG_WARN_INFINITE_RECURSION = YES; 1263 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1264 | COPY_PHASE_STRIP = NO; 1265 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1266 | GCC_NO_COMMON_BLOCKS = YES; 1267 | INFOPLIST_FILE = "PullToRefreshDemo-tvOS/Info.plist"; 1268 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1269 | OTHER_LDFLAGS = ( 1270 | "-ObjC", 1271 | "-lc++", 1272 | ); 1273 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.PullToRefreshDemo-tvOS"; 1274 | PRODUCT_NAME = "$(TARGET_NAME)"; 1275 | SDKROOT = appletvos; 1276 | TARGETED_DEVICE_FAMILY = 3; 1277 | TVOS_DEPLOYMENT_TARGET = 9.2; 1278 | }; 1279 | name = Release; 1280 | }; 1281 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1282 | isa = XCBuildConfiguration; 1283 | buildSettings = { 1284 | BUNDLE_LOADER = "$(TEST_HOST)"; 1285 | CLANG_ANALYZER_NONNULL = YES; 1286 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1287 | CLANG_WARN_INFINITE_RECURSION = YES; 1288 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1289 | DEBUG_INFORMATION_FORMAT = dwarf; 1290 | ENABLE_TESTABILITY = YES; 1291 | GCC_NO_COMMON_BLOCKS = YES; 1292 | INFOPLIST_FILE = "PullToRefreshDemo-tvOSTests/Info.plist"; 1293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1294 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.PullToRefreshDemo-tvOSTests"; 1295 | PRODUCT_NAME = "$(TARGET_NAME)"; 1296 | SDKROOT = appletvos; 1297 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefreshDemo-tvOS.app/PullToRefreshDemo-tvOS"; 1298 | TVOS_DEPLOYMENT_TARGET = 10.1; 1299 | }; 1300 | name = Debug; 1301 | }; 1302 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1303 | isa = XCBuildConfiguration; 1304 | buildSettings = { 1305 | BUNDLE_LOADER = "$(TEST_HOST)"; 1306 | CLANG_ANALYZER_NONNULL = YES; 1307 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1308 | CLANG_WARN_INFINITE_RECURSION = YES; 1309 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1310 | COPY_PHASE_STRIP = NO; 1311 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1312 | GCC_NO_COMMON_BLOCKS = YES; 1313 | INFOPLIST_FILE = "PullToRefreshDemo-tvOSTests/Info.plist"; 1314 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1315 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.PullToRefreshDemo-tvOSTests"; 1316 | PRODUCT_NAME = "$(TARGET_NAME)"; 1317 | SDKROOT = appletvos; 1318 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PullToRefreshDemo-tvOS.app/PullToRefreshDemo-tvOS"; 1319 | TVOS_DEPLOYMENT_TARGET = 10.1; 1320 | }; 1321 | name = Release; 1322 | }; 1323 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1324 | isa = XCBuildConfiguration; 1325 | buildSettings = { 1326 | ALWAYS_SEARCH_USER_PATHS = NO; 1327 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1328 | CLANG_CXX_LIBRARY = "libc++"; 1329 | CLANG_ENABLE_MODULES = YES; 1330 | CLANG_ENABLE_OBJC_ARC = YES; 1331 | CLANG_WARN_BOOL_CONVERSION = YES; 1332 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1333 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1334 | CLANG_WARN_EMPTY_BODY = YES; 1335 | CLANG_WARN_ENUM_CONVERSION = YES; 1336 | CLANG_WARN_INT_CONVERSION = YES; 1337 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1338 | CLANG_WARN_UNREACHABLE_CODE = YES; 1339 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1340 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1341 | COPY_PHASE_STRIP = NO; 1342 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1343 | GCC_C_LANGUAGE_STANDARD = gnu99; 1344 | GCC_DYNAMIC_NO_PIC = NO; 1345 | GCC_OPTIMIZATION_LEVEL = 0; 1346 | GCC_PREPROCESSOR_DEFINITIONS = ( 1347 | "DEBUG=1", 1348 | "$(inherited)", 1349 | ); 1350 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1355 | GCC_WARN_UNUSED_FUNCTION = YES; 1356 | GCC_WARN_UNUSED_VARIABLE = YES; 1357 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1358 | MTL_ENABLE_DEBUG_INFO = YES; 1359 | ONLY_ACTIVE_ARCH = YES; 1360 | SDKROOT = iphoneos; 1361 | }; 1362 | name = Debug; 1363 | }; 1364 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1365 | isa = XCBuildConfiguration; 1366 | buildSettings = { 1367 | ALWAYS_SEARCH_USER_PATHS = NO; 1368 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1369 | CLANG_CXX_LIBRARY = "libc++"; 1370 | CLANG_ENABLE_MODULES = YES; 1371 | CLANG_ENABLE_OBJC_ARC = YES; 1372 | CLANG_WARN_BOOL_CONVERSION = YES; 1373 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1375 | CLANG_WARN_EMPTY_BODY = YES; 1376 | CLANG_WARN_ENUM_CONVERSION = YES; 1377 | CLANG_WARN_INT_CONVERSION = YES; 1378 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1379 | CLANG_WARN_UNREACHABLE_CODE = YES; 1380 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1381 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1382 | COPY_PHASE_STRIP = YES; 1383 | ENABLE_NS_ASSERTIONS = NO; 1384 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1385 | GCC_C_LANGUAGE_STANDARD = gnu99; 1386 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1387 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1388 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1389 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1390 | GCC_WARN_UNUSED_FUNCTION = YES; 1391 | GCC_WARN_UNUSED_VARIABLE = YES; 1392 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1393 | MTL_ENABLE_DEBUG_INFO = NO; 1394 | SDKROOT = iphoneos; 1395 | VALIDATE_PRODUCT = YES; 1396 | }; 1397 | name = Release; 1398 | }; 1399 | /* End XCBuildConfiguration section */ 1400 | 1401 | /* Begin XCConfigurationList section */ 1402 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "PullToRefreshDemoTests" */ = { 1403 | isa = XCConfigurationList; 1404 | buildConfigurations = ( 1405 | 00E356F61AD99517003FC87E /* Debug */, 1406 | 00E356F71AD99517003FC87E /* Release */, 1407 | ); 1408 | defaultConfigurationIsVisible = 0; 1409 | defaultConfigurationName = Release; 1410 | }; 1411 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "PullToRefreshDemo" */ = { 1412 | isa = XCConfigurationList; 1413 | buildConfigurations = ( 1414 | 13B07F941A680F5B00A75B9A /* Debug */, 1415 | 13B07F951A680F5B00A75B9A /* Release */, 1416 | ); 1417 | defaultConfigurationIsVisible = 0; 1418 | defaultConfigurationName = Release; 1419 | }; 1420 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "PullToRefreshDemo-tvOS" */ = { 1421 | isa = XCConfigurationList; 1422 | buildConfigurations = ( 1423 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1424 | 2D02E4981E0B4A5E006451C7 /* Release */, 1425 | ); 1426 | defaultConfigurationIsVisible = 0; 1427 | defaultConfigurationName = Release; 1428 | }; 1429 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "PullToRefreshDemo-tvOSTests" */ = { 1430 | isa = XCConfigurationList; 1431 | buildConfigurations = ( 1432 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1433 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1434 | ); 1435 | defaultConfigurationIsVisible = 0; 1436 | defaultConfigurationName = Release; 1437 | }; 1438 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "PullToRefreshDemo" */ = { 1439 | isa = XCConfigurationList; 1440 | buildConfigurations = ( 1441 | 83CBBA201A601CBA00E9B192 /* Debug */, 1442 | 83CBBA211A601CBA00E9B192 /* Release */, 1443 | ); 1444 | defaultConfigurationIsVisible = 0; 1445 | defaultConfigurationName = Release; 1446 | }; 1447 | /* End XCConfigurationList section */ 1448 | }; 1449 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1450 | } 1451 | --------------------------------------------------------------------------------