├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── MyPlayground.playground ├── Contents.swift ├── contents.xcplayground └── playground.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── README.md ├── __tests__ └── App-test.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── cnode │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── MyPlayground.playground │ ├── Contents.swift │ ├── contents.xcplayground │ ├── playground.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── timeline.xctimeline ├── bundle │ └── assets │ │ └── src │ │ └── assets │ │ ├── back.png │ │ ├── home.png │ │ ├── info.png │ │ ├── me.png │ │ ├── mess.png │ │ ├── message.png │ │ ├── publish.png │ │ ├── read.png │ │ ├── tabbar_merchant.png │ │ └── time.png ├── cnode-tvOS │ └── Info.plist ├── cnode-tvOSTests │ └── Info.plist ├── cnode.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── cnode-tvOS.xcscheme │ │ └── cnode.xcscheme ├── cnode │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── LaunchImage.launchimage │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── cnodeTests │ ├── Info.plist │ └── cnodeTests.m ├── metro.config.js ├── package.json ├── package └── app-release.apk ├── rn-cli.config.js ├── screenshot ├── 5月-31-2019 15-19-57.gif ├── 5月-31-2019 16-12-11.gif └── icon-above-font.png ├── src ├── assets │ ├── back.png │ ├── home.png │ ├── info.png │ ├── me.png │ ├── mess.png │ ├── message.png │ ├── publish.png │ ├── read.png │ ├── tabbar_merchant.png │ └── time.png ├── components │ └── Nav │ │ └── index.js ├── config │ └── api.js ├── d.ts ├── store │ └── index.js ├── utils │ └── index.js └── views │ ├── Detail │ └── index.js │ ├── Home │ └── index.js │ ├── Info │ └── index.js │ ├── Me │ └── index.js │ ├── Message │ └── index.js │ └── Publish │ └── index.js ├── tsconfig.json ├── types └── react-native-side-menu.d.ts └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | 28 | [options] 29 | emoji=true 30 | 31 | esproposal.optional_chaining=enable 32 | esproposal.nullish_coalescing=enable 33 | 34 | module.system=haste 35 | module.system.haste.use_name_reducers=true 36 | # get basename 37 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 38 | # strip .js or .js.flow suffix 39 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 40 | # strip .ios suffix 41 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 42 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 43 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 44 | module.system.haste.paths.blacklist=.*/__tests__/.* 45 | module.system.haste.paths.blacklist=.*/__mocks__/.* 46 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 47 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 48 | 49 | munge_underscores=true 50 | 51 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 52 | 53 | module.file_ext=.js 54 | module.file_ext=.jsx 55 | module.file_ext=.json 56 | module.file_ext=.native.js 57 | 58 | suppress_type=$FlowIssue 59 | suppress_type=$FlowFixMe 60 | suppress_type=$FlowFixMeProps 61 | suppress_type=$FlowFixMeState 62 | 63 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 65 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 67 | 68 | [version] 69 | ^0.92.0 70 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # android 59 | *.keystore 60 | *.properties -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow 7 | */ 8 | 9 | import React, {Component} from 'react'; 10 | import {Platform, StyleSheet, Text, View, Image, StatusBar } from 'react-native'; 11 | import { createStackNavigator, NavigationActions, StackViewTransitionConfigs, createBottomTabNavigator, createAppContainer, TabBarBottom } from 'react-navigation' 12 | import { getSession } from './src/utils' 13 | import Home from './src/views/Home' 14 | import Detail from './src/views/Detail' 15 | import Info from './src/views/Info' 16 | import Me from './src/views/Me' 17 | import Message from './src/views/Message' 18 | import Publish from './src/views/Publish' 19 | 20 | import { Provider } from 'react-redux' 21 | import { createStore } from 'redux' 22 | import Index from './src/store' 23 | // import codePush from 'react-native-code-push' 24 | // AsyncStorage.setItem('userinfo', 'I like to save it.') 25 | // const storeUserinfo = AsyncStorage.getItem('userinfo') 26 | // let islogin 27 | // console.log(this); 28 | // getSession('loginname') 29 | // const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 56; 30 | 31 | const store = createStore(Index) 32 | store.subscribe(() => { 33 | //监听state变化 34 | // console.log(store.getState()); 35 | // console.log(Tab); 36 | Tab(store) 37 | // AppContainer = createAppContainer(AppNavigator(store)); 38 | }); 39 | // let a = getSession('loginname') 40 | // console.log(a._55, a); 41 | // console.log(store.getState()); 42 | 43 | // console.log(AsyncStorage.getItem('userinfo')); 44 | class App extends Component { 45 | // componentDidMount () { 46 | // codePush.sync({ 47 | // updateDialog: { 48 | // appendReleaseDescription: true, 49 | // descriptionPrefix: '', 50 | // mandatoryUpdateMessage: '', 51 | // mandatoryContinueButtonLabel: '立即更新', 52 | // optionalIgnoreButtonLabel: '稍后', 53 | // optionalInstallButtonLabel: '后台更新', 54 | // optionalUpdateMessage: '', 55 | // title: '更新提示' 56 | // }, 57 | // installMode: codePush.InstallMode.IMMEDIATE, 58 | // mandatoryInstallMode: codePush.InstallMode.IMMEDIATE, 59 | // deploymentKey: '4a4ca83f-18e2-4262-be4c-b8d8e548049e' 60 | // }) 61 | // } 62 | render () { 63 | // console.log(this.state.login); 64 | 65 | // console.log(store.getState()); 66 | // const AppContainer = createAppContainer(AppNavigator(store)); 67 | return ( 68 | 69 | { 72 | StatusBar.setBarStyle('dark-content') 73 | } 74 | } 75 | /> 76 | 77 | ) 78 | } 79 | } 80 | function Tab(params) { 81 | // console.log(params); 82 | this.params = params 83 | return createBottomTabNavigator( 84 | { 85 | Home: { 86 | screen: createStackNavigator({ home: Home }), 87 | navigationOptions: ({ navigation }) => ({ 88 | // tabBarVisible: false, 89 | // header: null, 90 | tabBarLabel: '发布', 91 | tabBarOnPress: ({defaultHandler, navigation}) => { 92 | // console.log(defaultHandler); 93 | // console.log(1111); 94 | // navigation.navigate('Home') 95 | // console.log(navigation); 96 | // console.log(navigation.state.routes[0]); 97 | 98 | navigation.state.routes[0].params.queryData();//查询数据 99 | defaultHandler() 100 | }, 101 | tabBarIcon: ({ focused, tintColor }) => ( 102 | // normalImage='https://www.easyicon.net/api/resizeApi.php?id=1225464&size=16' 103 | // normalImage={require('./src/assets/tabbar_merchant.png')} 104 | // selectedImage={require('./src/assets/tabbar_merchant.png')} 105 | 106 | ) 107 | }), 108 | }, 109 | Publish: { 110 | screen: createStackNavigator({ publish: Publish }), 111 | navigationOptions: ({ navigation }) => ({ 112 | tabBarLabel: '发布', 113 | tabBarOnPress: ({defaultHandler, navigation}) => { 114 | // console.log(defaultHandler); 115 | jundeLogin(defaultHandler, navigation) 116 | 117 | }, 118 | tabBarIcon: ({ focused, tintColor }) => ( 119 | 120 | 121 | ) 122 | }), 123 | }, 124 | 125 | Message: { 126 | screen: createStackNavigator({ message: Message }), 127 | navigationOptions: ({ navigation }) => ({ 128 | tabBarLabel: '消息', 129 | tabBarOnPress: ({defaultHandler, navigation}) => { 130 | // console.log(defaultHandler); 131 | jundeLogin(defaultHandler, navigation) 132 | 133 | }, 134 | tabBarIcon: ({ focused, tintColor }) => ( 135 | 136 | 137 | ) 138 | }), 139 | }, 140 | Mine: { 141 | screen: createStackNavigator({ Mine: Me }), 142 | navigationOptions: ({ navigation }) => ({ 143 | tabBarLabel: '我的', 144 | tabBarIcon: ({ focused, tintColor }) => ( 145 | 146 | 147 | ) 148 | }), 149 | }, 150 | Info: { 151 | screen: createStackNavigator({ Info: Info }), 152 | // paths: 'people/:name', 153 | navigationOptions: ({ navigation }) => ({ 154 | title: '关于', 155 | tabBarVisible: false, 156 | // tabBarOnPress: ({defaultHandler, navigation}) => { 157 | // // console.log(defaultHandler); 158 | // jundeLogin(defaultHandler, navigation) 159 | 160 | // }, 161 | tabBarIcon: ({ focused, tintColor }) => ( 162 | 163 | 164 | ) 165 | }), 166 | }, 167 | }, 168 | { 169 | tabBarComponent: TabBarBottom, 170 | tabBarPosition: 'bottom', 171 | lazy: true, 172 | animationEnabled: false, 173 | swipeEnabled: false, 174 | tabBarOptions: { 175 | activeTintColor: 'red', 176 | inactiveTintColor: 'green', 177 | style: { backgroundColor: '#ffffff' }, 178 | }, 179 | }) 180 | } 181 | const IOS_MODAL_ROUTES = ['home', 'Info'] 182 | const dynamicModalTransition = (transitionProps, prevTransitionProps) => { 183 | const isModal = IOS_MODAL_ROUTES.some( 184 | screenName => 185 | screenName === transitionProps.scene.route.routeName || 186 | (prevTransitionProps && screenName === prevTransitionProps.scene.route.routeName) 187 | ) 188 | return StackViewTransitionConfigs.defaultTransitionConfig( 189 | transitionProps, 190 | prevTransitionProps, 191 | isModal 192 | ); 193 | }; 194 | 195 | function jundeLogin (defaultHandler, navigation) { 196 | let login = this.params.getState().login 197 | if (!login || login === '') { 198 | navigation.navigate('Mine') 199 | } else { 200 | defaultHandler() 201 | } 202 | } 203 | // Tabs.navigationOptions = { 204 | // header: null, 205 | // }; 206 | function AppNavigator(store) { 207 | let Tabs = Tab(store) 208 | console.log(Tabs); 209 | 210 | Tabs.navigationOptions = { 211 | header: null, 212 | // header: { visible: false }, 213 | // headerStyle: { 214 | // backgroundColor: 'yellow', 215 | // }, 216 | // headerTitleStyle:{ 217 | // alignSelf:'center', 218 | // textAlign: 'center', 219 | // flex:1, 220 | // }, 221 | // headerTitleContainerStyle:{ 222 | // left: TITLE_OFFSET, 223 | // right: TITLE_OFFSET, 224 | // } 225 | }; 226 | let login 227 | if (store) { 228 | login = store.getState().login 229 | 230 | } 231 | 232 | // console.log(store.getState().login); 233 | return createStackNavigator( 234 | { 235 | Tab: { 236 | screen: Tabs 237 | }, 238 | Detail: { 239 | screen: Detail 240 | } 241 | }, 242 | { 243 | // transitionConfig: dynamicModalTransition, 244 | defaultNavigationOptions: { 245 | headerBackTitle: null, 246 | // header: null, 247 | // headerStyle: { 248 | // backgroundColor: '#f4511e', 249 | // }, 250 | headerTintColor: '#333333', 251 | showIcon: false, 252 | }, 253 | } 254 | ) 255 | } 256 | 257 | 258 | let AppContainer = createAppContainer(AppNavigator()) 259 | // const AppContainer = createAppContainer(AppNavigator()); 260 | export default App -------------------------------------------------------------------------------- /MyPlayground.playground/Contents.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | 3 | var str = "Hello, playground" 4 | -------------------------------------------------------------------------------- /MyPlayground.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MyPlayground.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MyPlayground.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | 5 |

6 |

7 | 8 | 9 | 10 | 11 |

12 |

react-native-cnode

13 | 14 | ### 项目简介 15 | > react-native-cnode是由react-native搭建的项目, 由于之前做过vue版本的cnode, 对于cnnode的api也比较了解, api方面就采用了cnode。 16 | 17 | ### npm包介绍 18 | ``` 19 | * react-native-refresh-list-view 上拉加载与下拉加载 20 | * react-redux 数据存储 21 | * react-native-render-html 解析html 22 | * axios request 23 | * moment time format 24 | * react-navigation tabBottom jump 25 | ``` 26 | 27 | ### 使用 28 | ```js 29 | 不管你是用windows还是mac都是要配置环境的, 如果没有配置环境, 项目是无法启动的, 推荐按照官网配置环境和npm包。 30 | 项目克隆: git clone https://github.com/wangdabaoqq/react-native-cnode.git 31 | 安装依赖: yarn || npm install 32 | android: react-native run-android 33 | ios: react-native run-ios 34 | ``` 35 | ### apk打包 36 | ``` 37 | 关于打包apk还是要配置安卓的环境. 38 | 我这里已经有打包完成的。地址我会放在最后。 39 | ``` 40 | ### ios打包 41 | ``` 42 | ios的打包相对比较麻烦些, 我还没有进行打包, 43 | 打包完成后, 我也会把打包完成的, 放在最后。 44 | 当然也要配置环境。 45 | ``` 46 | ### 地址 47 | [环境配置](https://reactnative.cn/docs/getting-started/) 48 | [安卓打包教程](https://reactnative.cn/docs/signed-apk-android/) 49 | 50 | [android-apk地址](./package/app-release.apk) 51 | ### 热更新 52 | * 目前没有涉及服务器, 热更新的功能没有做。 53 | * 但我去了解了下, 我应该会去采用code-push的方式去更新。 54 | * 当我做热更新的时候我会再来这里补充。 55 | 56 | ### 展示 57 | ios: 58 | android: -------------------------------------------------------------------------------- /__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.cnode", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.cnode", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion rootProject.ext.compileSdkVersion 98 | 99 | compileOptions { 100 | sourceCompatibility JavaVersion.VERSION_1_8 101 | targetCompatibility JavaVersion.VERSION_1_8 102 | } 103 | 104 | defaultConfig { 105 | applicationId "com.cnode" 106 | minSdkVersion rootProject.ext.minSdkVersion 107 | targetSdkVersion rootProject.ext.targetSdkVersion 108 | versionCode 1 109 | versionName "1.0" 110 | } 111 | signingConfigs { 112 | release { 113 | if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) { 114 | storeFile file(MYAPP_RELEASE_STORE_FILE) 115 | storePassword MYAPP_RELEASE_STORE_PASSWORD 116 | keyAlias MYAPP_RELEASE_KEY_ALIAS 117 | keyPassword MYAPP_RELEASE_KEY_PASSWORD 118 | } 119 | } 120 | } 121 | splits { 122 | abi { 123 | reset() 124 | enable enableSeparateBuildPerCPUArchitecture 125 | universalApk false // If true, also generate a universal APK 126 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 127 | } 128 | } 129 | buildTypes { 130 | release { 131 | minifyEnabled enableProguardInReleaseBuilds 132 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 133 | signingConfig signingConfigs.release 134 | } 135 | } 136 | // applicationVariants are e.g. debug, release 137 | applicationVariants.all { variant -> 138 | variant.outputs.each { output -> 139 | // For each separate APK per architecture, set a unique version code as described here: 140 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 141 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4] 142 | def abi = output.getFilter(OutputFile.ABI) 143 | if (abi != null) { // null for the universal-debug, universal-release variants 144 | output.versionCodeOverride = 145 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 146 | } 147 | } 148 | } 149 | } 150 | 151 | dependencies { 152 | implementation project(':react-native-webview') 153 | implementation project(':@react-native-community_async-storage') 154 | implementation project(':react-native-gesture-handler') 155 | implementation fileTree(dir: "libs", include: ["*.jar"]) 156 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 157 | implementation "com.facebook.react:react-native:+" // From node_modules 158 | } 159 | 160 | // Run this once to be able to run the application with BUCK 161 | // puts all compile dependencies into folder libs for BUCK to use 162 | task copyDownloadableDepsToLibs(type: Copy) { 163 | from configurations.compile 164 | into 'libs' 165 | } 166 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/cnode/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.cnode; 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 "cnode"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/cnode/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.cnode; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.reactnativecommunity.webview.RNCWebViewPackage; 7 | import com.reactnativecommunity.asyncstorage.AsyncStoragePackage; 8 | import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; 9 | import com.facebook.react.ReactNativeHost; 10 | import com.facebook.react.ReactPackage; 11 | import com.facebook.react.shell.MainReactPackage; 12 | import com.facebook.soloader.SoLoader; 13 | 14 | import java.util.Arrays; 15 | import java.util.List; 16 | 17 | public class MainApplication extends Application implements ReactApplication { 18 | 19 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 20 | @Override 21 | public boolean getUseDeveloperSupport() { 22 | return BuildConfig.DEBUG; 23 | } 24 | 25 | @Override 26 | protected List getPackages() { 27 | return Arrays.asList( 28 | new MainReactPackage(), 29 | new RNCWebViewPackage(), 30 | new AsyncStoragePackage(), 31 | new RNGestureHandlerPackage() 32 | ); 33 | } 34 | 35 | @Override 36 | protected String getJSMainModuleName() { 37 | return "index"; 38 | } 39 | }; 40 | 41 | @Override 42 | public ReactNativeHost getReactNativeHost() { 43 | return mReactNativeHost; 44 | } 45 | 46 | @Override 47 | public void onCreate() { 48 | super.onCreate(); 49 | SoLoader.init(this, /* native exopackage */ false); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | cnode 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:3.3.1' 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'cnode' 2 | include ':react-native-webview' 3 | project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android') 4 | include ':@react-native-community_async-storage' 5 | project(':@react-native-community_async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/async-storage/android') 6 | include ':react-native-gesture-handler' 7 | project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') 8 | 9 | include ':app' 10 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cnode", 3 | "displayName": "cnode" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | "plugins": [ 4 | ["import", { libraryName: "@ant-design/react-native" }] // 与 Web 平台的区别是不需要设置 style 5 | ] 6 | }; 7 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/MyPlayground.playground/Contents.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | var str = "Hello, playground" 4 | -------------------------------------------------------------------------------- /ios/MyPlayground.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ios/MyPlayground.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/MyPlayground.playground/playground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/MyPlayground.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/back.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/home.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/info.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/me.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/me.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/mess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/mess.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/message.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/publish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/publish.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/read.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/read.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/tabbar_merchant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/tabbar_merchant.png -------------------------------------------------------------------------------- /ios/bundle/assets/src/assets/time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/ios/bundle/assets/src/assets/time.png -------------------------------------------------------------------------------- /ios/cnode-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ios/cnode-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/cnode.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 /* cnodeTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* cnodeTests.m */; }; 16 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.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 | 1FEB46E0121F470996F70B07 /* libRNGestureHandler.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E7CCB8C49F7D42D28A24A622 /* libRNGestureHandler.a */; }; 27 | 2B9D443650914636ABB57100 /* libRNGestureHandler-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 147B5297FABB40E392987A98 /* libRNGestureHandler-tvOS.a */; }; 28 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 29 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 30 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 31 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 32 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 33 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 34 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 35 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 36 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 37 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 38 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 39 | 2DCD954D1E0B4F2C00145EB5 /* cnodeTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* cnodeTests.m */; }; 40 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 41 | 4B787931F16149AB88D76FD7 /* libRNCAsyncStorage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DBD2CEC315E846B5A29BAA35 /* libRNCAsyncStorage.a */; }; 42 | 6548DEBC162C43C4B479D83B /* libRNCWebView.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BC58C63B444E4DF9A1D0BE93 /* libRNCWebView.a */; }; 43 | 83131C36229FCF1B00457CA8 /* bundle in Resources */ = {isa = PBXBuildFile; fileRef = 83131C0C229FCF1B00457CA8 /* bundle */; }; 44 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 45 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 46 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; }; 47 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; }; 48 | /* End PBXBuildFile section */ 49 | 50 | /* Begin PBXBuildRule section */ 51 | 83E8AE82229FE4F9009C07FD /* PBXBuildRule */ = { 52 | isa = PBXBuildRule; 53 | compilerSpec = com.apple.compilers.proxy.script; 54 | fileType = sourcecode.metal; 55 | isEditable = 1; 56 | outputFiles = ( 57 | ); 58 | script = "# metal\n"; 59 | }; 60 | /* End PBXBuildRule section */ 61 | 62 | /* Begin PBXContainerItemProxy section */ 63 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 64 | isa = PBXContainerItemProxy; 65 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 66 | proxyType = 2; 67 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 68 | remoteInfo = RCTActionSheet; 69 | }; 70 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 71 | isa = PBXContainerItemProxy; 72 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 73 | proxyType = 2; 74 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 75 | remoteInfo = RCTGeolocation; 76 | }; 77 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 78 | isa = PBXContainerItemProxy; 79 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 80 | proxyType = 2; 81 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 82 | remoteInfo = RCTImage; 83 | }; 84 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 85 | isa = PBXContainerItemProxy; 86 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 87 | proxyType = 2; 88 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 89 | remoteInfo = RCTNetwork; 90 | }; 91 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 92 | isa = PBXContainerItemProxy; 93 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 94 | proxyType = 2; 95 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 96 | remoteInfo = RCTVibration; 97 | }; 98 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 99 | isa = PBXContainerItemProxy; 100 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 101 | proxyType = 1; 102 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 103 | remoteInfo = cnode; 104 | }; 105 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 106 | isa = PBXContainerItemProxy; 107 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 108 | proxyType = 2; 109 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 110 | remoteInfo = RCTSettings; 111 | }; 112 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 113 | isa = PBXContainerItemProxy; 114 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 115 | proxyType = 2; 116 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 117 | remoteInfo = RCTWebSocket; 118 | }; 119 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 120 | isa = PBXContainerItemProxy; 121 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 122 | proxyType = 2; 123 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 124 | remoteInfo = React; 125 | }; 126 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 127 | isa = PBXContainerItemProxy; 128 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 129 | proxyType = 1; 130 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 131 | remoteInfo = "cnode-tvOS"; 132 | }; 133 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 134 | isa = PBXContainerItemProxy; 135 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 136 | proxyType = 2; 137 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 138 | remoteInfo = "RCTBlob-tvOS"; 139 | }; 140 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 141 | isa = PBXContainerItemProxy; 142 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 143 | proxyType = 2; 144 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 145 | remoteInfo = fishhook; 146 | }; 147 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 148 | isa = PBXContainerItemProxy; 149 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 150 | proxyType = 2; 151 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 152 | remoteInfo = "fishhook-tvOS"; 153 | }; 154 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = { 155 | isa = PBXContainerItemProxy; 156 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 157 | proxyType = 2; 158 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 159 | remoteInfo = jsinspector; 160 | }; 161 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = { 162 | isa = PBXContainerItemProxy; 163 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 164 | proxyType = 2; 165 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 166 | remoteInfo = "jsinspector-tvOS"; 167 | }; 168 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = { 169 | isa = PBXContainerItemProxy; 170 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 171 | proxyType = 2; 172 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 173 | remoteInfo = "third-party"; 174 | }; 175 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = { 176 | isa = PBXContainerItemProxy; 177 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 178 | proxyType = 2; 179 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 180 | remoteInfo = "third-party-tvOS"; 181 | }; 182 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = { 183 | isa = PBXContainerItemProxy; 184 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 185 | proxyType = 2; 186 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 187 | remoteInfo = "double-conversion"; 188 | }; 189 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = { 190 | isa = PBXContainerItemProxy; 191 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 192 | proxyType = 2; 193 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 194 | remoteInfo = "double-conversion-tvOS"; 195 | }; 196 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 197 | isa = PBXContainerItemProxy; 198 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 199 | proxyType = 2; 200 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 201 | remoteInfo = "RCTImage-tvOS"; 202 | }; 203 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 204 | isa = PBXContainerItemProxy; 205 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 206 | proxyType = 2; 207 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 208 | remoteInfo = "RCTLinking-tvOS"; 209 | }; 210 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 211 | isa = PBXContainerItemProxy; 212 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 213 | proxyType = 2; 214 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 215 | remoteInfo = "RCTNetwork-tvOS"; 216 | }; 217 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 218 | isa = PBXContainerItemProxy; 219 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 220 | proxyType = 2; 221 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 222 | remoteInfo = "RCTSettings-tvOS"; 223 | }; 224 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 225 | isa = PBXContainerItemProxy; 226 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 227 | proxyType = 2; 228 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 229 | remoteInfo = "RCTText-tvOS"; 230 | }; 231 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 232 | isa = PBXContainerItemProxy; 233 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 234 | proxyType = 2; 235 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 236 | remoteInfo = "RCTWebSocket-tvOS"; 237 | }; 238 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 239 | isa = PBXContainerItemProxy; 240 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 241 | proxyType = 2; 242 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 243 | remoteInfo = "React-tvOS"; 244 | }; 245 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 246 | isa = PBXContainerItemProxy; 247 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 248 | proxyType = 2; 249 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 250 | remoteInfo = yoga; 251 | }; 252 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 253 | isa = PBXContainerItemProxy; 254 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 255 | proxyType = 2; 256 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 257 | remoteInfo = "yoga-tvOS"; 258 | }; 259 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 260 | isa = PBXContainerItemProxy; 261 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 262 | proxyType = 2; 263 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 264 | remoteInfo = cxxreact; 265 | }; 266 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 267 | isa = PBXContainerItemProxy; 268 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 269 | proxyType = 2; 270 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 271 | remoteInfo = "cxxreact-tvOS"; 272 | }; 273 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 274 | isa = PBXContainerItemProxy; 275 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 276 | proxyType = 2; 277 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 278 | remoteInfo = RCTAnimation; 279 | }; 280 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 281 | isa = PBXContainerItemProxy; 282 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 283 | proxyType = 2; 284 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 285 | remoteInfo = "RCTAnimation-tvOS"; 286 | }; 287 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 288 | isa = PBXContainerItemProxy; 289 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 290 | proxyType = 2; 291 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 292 | remoteInfo = RCTLinking; 293 | }; 294 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 295 | isa = PBXContainerItemProxy; 296 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 297 | proxyType = 2; 298 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 299 | remoteInfo = RCTText; 300 | }; 301 | 835100F3229FCB6F00D285A6 /* PBXContainerItemProxy */ = { 302 | isa = PBXContainerItemProxy; 303 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 304 | proxyType = 2; 305 | remoteGlobalIDString = EDEBC6D6214B3E7000DD5AC8; 306 | remoteInfo = jsi; 307 | }; 308 | 835100F5229FCB6F00D285A6 /* PBXContainerItemProxy */ = { 309 | isa = PBXContainerItemProxy; 310 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 311 | proxyType = 2; 312 | remoteGlobalIDString = EDEBC73B214B45A300DD5AC8; 313 | remoteInfo = jsiexecutor; 314 | }; 315 | 835100F7229FCB6F00D285A6 /* PBXContainerItemProxy */ = { 316 | isa = PBXContainerItemProxy; 317 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 318 | proxyType = 2; 319 | remoteGlobalIDString = ED296FB6214C9A0900B7C4FE; 320 | remoteInfo = "jsi-tvOS"; 321 | }; 322 | 835100F9229FCB6F00D285A6 /* PBXContainerItemProxy */ = { 323 | isa = PBXContainerItemProxy; 324 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 325 | proxyType = 2; 326 | remoteGlobalIDString = ED296FEE214C9CF800B7C4FE; 327 | remoteInfo = "jsiexecutor-tvOS"; 328 | }; 329 | 83510102229FCB7100D285A6 /* PBXContainerItemProxy */ = { 330 | isa = PBXContainerItemProxy; 331 | containerPortal = 6F994D615335488A9A176C02 /* RNCAsyncStorage.xcodeproj */; 332 | proxyType = 2; 333 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 334 | remoteInfo = RNCAsyncStorage; 335 | }; 336 | 83510105229FCB7100D285A6 /* PBXContainerItemProxy */ = { 337 | isa = PBXContainerItemProxy; 338 | containerPortal = AB0D853D2F5C47D88B5E768D /* RNCWebView.xcodeproj */; 339 | proxyType = 2; 340 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 341 | remoteInfo = RNCWebView; 342 | }; 343 | 83510109229FCB7100D285A6 /* PBXContainerItemProxy */ = { 344 | isa = PBXContainerItemProxy; 345 | containerPortal = 5E59F1BA8750480A82F4FB5D /* RNGestureHandler.xcodeproj */; 346 | proxyType = 2; 347 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 348 | remoteInfo = RNGestureHandler; 349 | }; 350 | 8351010B229FCB7100D285A6 /* PBXContainerItemProxy */ = { 351 | isa = PBXContainerItemProxy; 352 | containerPortal = 5E59F1BA8750480A82F4FB5D /* RNGestureHandler.xcodeproj */; 353 | proxyType = 2; 354 | remoteGlobalIDString = B5C32A36220C603B000FFB8D; 355 | remoteInfo = "RNGestureHandler-tvOS"; 356 | }; 357 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 358 | isa = PBXContainerItemProxy; 359 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 360 | proxyType = 2; 361 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 362 | remoteInfo = RCTBlob; 363 | }; 364 | /* End PBXContainerItemProxy section */ 365 | 366 | /* Begin PBXFileReference section */ 367 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 368 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 369 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 370 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 371 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 372 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 373 | 00E356EE1AD99517003FC87E /* cnodeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = cnodeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 374 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 375 | 00E356F21AD99517003FC87E /* cnodeTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = cnodeTests.m; sourceTree = ""; }; 376 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 377 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 378 | 13B07F961A680F5B00A75B9A /* cnode.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = cnode.app; sourceTree = BUILT_PRODUCTS_DIR; }; 379 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = cnode/AppDelegate.h; sourceTree = ""; }; 380 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = cnode/AppDelegate.m; sourceTree = ""; }; 381 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 382 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = cnode/Images.xcassets; sourceTree = ""; }; 383 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = cnode/Info.plist; sourceTree = ""; }; 384 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = cnode/main.m; sourceTree = ""; }; 385 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 386 | 147B5297FABB40E392987A98 /* libRNGestureHandler-tvOS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = "libRNGestureHandler-tvOS.a"; sourceTree = ""; }; 387 | 2D02E47B1E0B4A5D006451C7 /* cnode-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "cnode-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 388 | 2D02E4901E0B4A5D006451C7 /* cnode-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "cnode-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 389 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 390 | 5E59F1BA8750480A82F4FB5D /* RNGestureHandler.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNGestureHandler.xcodeproj; path = "../node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj"; sourceTree = ""; }; 391 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 392 | 6F994D615335488A9A176C02 /* RNCAsyncStorage.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNCAsyncStorage.xcodeproj; path = "../node_modules/@react-native-community/async-storage/ios/RNCAsyncStorage.xcodeproj"; sourceTree = ""; }; 393 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 394 | 83131C0C229FCF1B00457CA8 /* bundle */ = {isa = PBXFileReference; lastKnownFileType = folder; path = bundle; sourceTree = ""; }; 395 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 396 | AB0D853D2F5C47D88B5E768D /* RNCWebView.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNCWebView.xcodeproj; path = "../node_modules/react-native-webview/ios/RNCWebView.xcodeproj"; sourceTree = ""; }; 397 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 398 | BC58C63B444E4DF9A1D0BE93 /* libRNCWebView.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNCWebView.a; sourceTree = ""; }; 399 | DBD2CEC315E846B5A29BAA35 /* libRNCAsyncStorage.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNCAsyncStorage.a; sourceTree = ""; }; 400 | E7CCB8C49F7D42D28A24A622 /* libRNGestureHandler.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNGestureHandler.a; sourceTree = ""; }; 401 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 402 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 403 | /* End PBXFileReference section */ 404 | 405 | /* Begin PBXFrameworksBuildPhase section */ 406 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 407 | isa = PBXFrameworksBuildPhase; 408 | buildActionMask = 2147483647; 409 | files = ( 410 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 411 | ); 412 | runOnlyForDeploymentPostprocessing = 0; 413 | }; 414 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 415 | isa = PBXFrameworksBuildPhase; 416 | buildActionMask = 2147483647; 417 | files = ( 418 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */, 419 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 420 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 421 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 422 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 423 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 424 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 425 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 426 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 427 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 428 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 429 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 430 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 431 | 1FEB46E0121F470996F70B07 /* libRNGestureHandler.a in Frameworks */, 432 | 4B787931F16149AB88D76FD7 /* libRNCAsyncStorage.a in Frameworks */, 433 | 6548DEBC162C43C4B479D83B /* libRNCWebView.a in Frameworks */, 434 | ); 435 | runOnlyForDeploymentPostprocessing = 0; 436 | }; 437 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 438 | isa = PBXFrameworksBuildPhase; 439 | buildActionMask = 2147483647; 440 | files = ( 441 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */, 442 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 443 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 444 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 445 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 446 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 447 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 448 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 449 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 450 | 2B9D443650914636ABB57100 /* libRNGestureHandler-tvOS.a in Frameworks */, 451 | ); 452 | runOnlyForDeploymentPostprocessing = 0; 453 | }; 454 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 455 | isa = PBXFrameworksBuildPhase; 456 | buildActionMask = 2147483647; 457 | files = ( 458 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */, 459 | ); 460 | runOnlyForDeploymentPostprocessing = 0; 461 | }; 462 | /* End PBXFrameworksBuildPhase section */ 463 | 464 | /* Begin PBXGroup section */ 465 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 466 | isa = PBXGroup; 467 | children = ( 468 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 469 | ); 470 | name = Products; 471 | sourceTree = ""; 472 | }; 473 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 474 | isa = PBXGroup; 475 | children = ( 476 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 477 | ); 478 | name = Products; 479 | sourceTree = ""; 480 | }; 481 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 482 | isa = PBXGroup; 483 | children = ( 484 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 485 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 486 | ); 487 | name = Products; 488 | sourceTree = ""; 489 | }; 490 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 491 | isa = PBXGroup; 492 | children = ( 493 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 494 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 495 | ); 496 | name = Products; 497 | sourceTree = ""; 498 | }; 499 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 500 | isa = PBXGroup; 501 | children = ( 502 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 503 | ); 504 | name = Products; 505 | sourceTree = ""; 506 | }; 507 | 00E356EF1AD99517003FC87E /* cnodeTests */ = { 508 | isa = PBXGroup; 509 | children = ( 510 | 00E356F21AD99517003FC87E /* cnodeTests.m */, 511 | 00E356F01AD99517003FC87E /* Supporting Files */, 512 | ); 513 | path = cnodeTests; 514 | sourceTree = ""; 515 | }; 516 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 517 | isa = PBXGroup; 518 | children = ( 519 | 00E356F11AD99517003FC87E /* Info.plist */, 520 | ); 521 | name = "Supporting Files"; 522 | sourceTree = ""; 523 | }; 524 | 139105B71AF99BAD00B5F7CC /* Products */ = { 525 | isa = PBXGroup; 526 | children = ( 527 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 528 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 529 | ); 530 | name = Products; 531 | sourceTree = ""; 532 | }; 533 | 139FDEE71B06529A00C62182 /* Products */ = { 534 | isa = PBXGroup; 535 | children = ( 536 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 537 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 538 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 539 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 540 | ); 541 | name = Products; 542 | sourceTree = ""; 543 | }; 544 | 13B07FAE1A68108700A75B9A /* cnode */ = { 545 | isa = PBXGroup; 546 | children = ( 547 | 83131C0C229FCF1B00457CA8 /* bundle */, 548 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 549 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 550 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 551 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 552 | 13B07FB61A68108700A75B9A /* Info.plist */, 553 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 554 | 13B07FB71A68108700A75B9A /* main.m */, 555 | ); 556 | name = cnode; 557 | sourceTree = ""; 558 | }; 559 | 146834001AC3E56700842450 /* Products */ = { 560 | isa = PBXGroup; 561 | children = ( 562 | 146834041AC3E56700842450 /* libReact.a */, 563 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 564 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 565 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 566 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 567 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 568 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */, 569 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */, 570 | 2DF0FFE32056DD460020B375 /* libthird-party.a */, 571 | 2DF0FFE52056DD460020B375 /* libthird-party.a */, 572 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */, 573 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */, 574 | 835100F4229FCB6F00D285A6 /* libjsi.a */, 575 | 835100F6229FCB6F00D285A6 /* libjsiexecutor.a */, 576 | 835100F8229FCB6F00D285A6 /* libjsi-tvOS.a */, 577 | 835100FA229FCB6F00D285A6 /* libjsiexecutor-tvOS.a */, 578 | ); 579 | name = Products; 580 | sourceTree = ""; 581 | }; 582 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 583 | isa = PBXGroup; 584 | children = ( 585 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 586 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 587 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 588 | ); 589 | name = Frameworks; 590 | sourceTree = ""; 591 | }; 592 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 593 | isa = PBXGroup; 594 | children = ( 595 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 596 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 597 | ); 598 | name = Products; 599 | sourceTree = ""; 600 | }; 601 | 78C398B11ACF4ADC00677621 /* Products */ = { 602 | isa = PBXGroup; 603 | children = ( 604 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 605 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 606 | ); 607 | name = Products; 608 | sourceTree = ""; 609 | }; 610 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 611 | isa = PBXGroup; 612 | children = ( 613 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 614 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 615 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 616 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 617 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 618 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 619 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 620 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 621 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 622 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 623 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 624 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 625 | 5E59F1BA8750480A82F4FB5D /* RNGestureHandler.xcodeproj */, 626 | 6F994D615335488A9A176C02 /* RNCAsyncStorage.xcodeproj */, 627 | AB0D853D2F5C47D88B5E768D /* RNCWebView.xcodeproj */, 628 | ); 629 | name = Libraries; 630 | sourceTree = ""; 631 | }; 632 | 832341B11AAA6A8300B99B32 /* Products */ = { 633 | isa = PBXGroup; 634 | children = ( 635 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 636 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 637 | ); 638 | name = Products; 639 | sourceTree = ""; 640 | }; 641 | 835100CB229FCB6E00D285A6 /* Recovered References */ = { 642 | isa = PBXGroup; 643 | children = ( 644 | E7CCB8C49F7D42D28A24A622 /* libRNGestureHandler.a */, 645 | DBD2CEC315E846B5A29BAA35 /* libRNCAsyncStorage.a */, 646 | BC58C63B444E4DF9A1D0BE93 /* libRNCWebView.a */, 647 | 147B5297FABB40E392987A98 /* libRNGestureHandler-tvOS.a */, 648 | ); 649 | name = "Recovered References"; 650 | sourceTree = ""; 651 | }; 652 | 835100FB229FCB7000D285A6 /* Products */ = { 653 | isa = PBXGroup; 654 | children = ( 655 | 83510106229FCB7100D285A6 /* libRNCWebView.a */, 656 | ); 657 | name = Products; 658 | sourceTree = ""; 659 | }; 660 | 835100FD229FCB7000D285A6 /* Products */ = { 661 | isa = PBXGroup; 662 | children = ( 663 | 8351010A229FCB7100D285A6 /* libRNGestureHandler.a */, 664 | 8351010C229FCB7100D285A6 /* libRNGestureHandler-tvOS.a */, 665 | ); 666 | name = Products; 667 | sourceTree = ""; 668 | }; 669 | 835100FF229FCB7000D285A6 /* Products */ = { 670 | isa = PBXGroup; 671 | children = ( 672 | 83510103229FCB7100D285A6 /* libRNCAsyncStorage.a */, 673 | ); 674 | name = Products; 675 | sourceTree = ""; 676 | }; 677 | 83CBB9F61A601CBA00E9B192 = { 678 | isa = PBXGroup; 679 | children = ( 680 | 13B07FAE1A68108700A75B9A /* cnode */, 681 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 682 | 00E356EF1AD99517003FC87E /* cnodeTests */, 683 | 83CBBA001A601CBA00E9B192 /* Products */, 684 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 685 | 835100CB229FCB6E00D285A6 /* Recovered References */, 686 | ); 687 | indentWidth = 2; 688 | sourceTree = ""; 689 | tabWidth = 2; 690 | usesTabs = 0; 691 | }; 692 | 83CBBA001A601CBA00E9B192 /* Products */ = { 693 | isa = PBXGroup; 694 | children = ( 695 | 13B07F961A680F5B00A75B9A /* cnode.app */, 696 | 00E356EE1AD99517003FC87E /* cnodeTests.xctest */, 697 | 2D02E47B1E0B4A5D006451C7 /* cnode-tvOS.app */, 698 | 2D02E4901E0B4A5D006451C7 /* cnode-tvOSTests.xctest */, 699 | ); 700 | name = Products; 701 | sourceTree = ""; 702 | }; 703 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 704 | isa = PBXGroup; 705 | children = ( 706 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 707 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 708 | ); 709 | name = Products; 710 | sourceTree = ""; 711 | }; 712 | /* End PBXGroup section */ 713 | 714 | /* Begin PBXNativeTarget section */ 715 | 00E356ED1AD99517003FC87E /* cnodeTests */ = { 716 | isa = PBXNativeTarget; 717 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "cnodeTests" */; 718 | buildPhases = ( 719 | 00E356EA1AD99517003FC87E /* Sources */, 720 | 00E356EB1AD99517003FC87E /* Frameworks */, 721 | 00E356EC1AD99517003FC87E /* Resources */, 722 | ); 723 | buildRules = ( 724 | ); 725 | dependencies = ( 726 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 727 | ); 728 | name = cnodeTests; 729 | productName = cnodeTests; 730 | productReference = 00E356EE1AD99517003FC87E /* cnodeTests.xctest */; 731 | productType = "com.apple.product-type.bundle.unit-test"; 732 | }; 733 | 13B07F861A680F5B00A75B9A /* cnode */ = { 734 | isa = PBXNativeTarget; 735 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "cnode" */; 736 | buildPhases = ( 737 | 13B07F871A680F5B00A75B9A /* Sources */, 738 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 739 | 13B07F8E1A680F5B00A75B9A /* Resources */, 740 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 741 | ); 742 | buildRules = ( 743 | 83E8AE82229FE4F9009C07FD /* PBXBuildRule */, 744 | ); 745 | dependencies = ( 746 | ); 747 | name = cnode; 748 | productName = "Hello World"; 749 | productReference = 13B07F961A680F5B00A75B9A /* cnode.app */; 750 | productType = "com.apple.product-type.application"; 751 | }; 752 | 2D02E47A1E0B4A5D006451C7 /* cnode-tvOS */ = { 753 | isa = PBXNativeTarget; 754 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "cnode-tvOS" */; 755 | buildPhases = ( 756 | 2D02E4771E0B4A5D006451C7 /* Sources */, 757 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 758 | 2D02E4791E0B4A5D006451C7 /* Resources */, 759 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 760 | ); 761 | buildRules = ( 762 | ); 763 | dependencies = ( 764 | ); 765 | name = "cnode-tvOS"; 766 | productName = "cnode-tvOS"; 767 | productReference = 2D02E47B1E0B4A5D006451C7 /* cnode-tvOS.app */; 768 | productType = "com.apple.product-type.application"; 769 | }; 770 | 2D02E48F1E0B4A5D006451C7 /* cnode-tvOSTests */ = { 771 | isa = PBXNativeTarget; 772 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "cnode-tvOSTests" */; 773 | buildPhases = ( 774 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 775 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 776 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 777 | ); 778 | buildRules = ( 779 | ); 780 | dependencies = ( 781 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 782 | ); 783 | name = "cnode-tvOSTests"; 784 | productName = "cnode-tvOSTests"; 785 | productReference = 2D02E4901E0B4A5D006451C7 /* cnode-tvOSTests.xctest */; 786 | productType = "com.apple.product-type.bundle.unit-test"; 787 | }; 788 | /* End PBXNativeTarget section */ 789 | 790 | /* Begin PBXProject section */ 791 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 792 | isa = PBXProject; 793 | attributes = { 794 | LastUpgradeCheck = 940; 795 | ORGANIZATIONNAME = Facebook; 796 | TargetAttributes = { 797 | 00E356ED1AD99517003FC87E = { 798 | CreatedOnToolsVersion = 6.2; 799 | DevelopmentTeam = DXL46T9L5S; 800 | TestTargetID = 13B07F861A680F5B00A75B9A; 801 | }; 802 | 13B07F861A680F5B00A75B9A = { 803 | DevelopmentTeam = DXL46T9L5S; 804 | ProvisioningStyle = Automatic; 805 | }; 806 | 2D02E47A1E0B4A5D006451C7 = { 807 | CreatedOnToolsVersion = 8.2.1; 808 | ProvisioningStyle = Automatic; 809 | }; 810 | 2D02E48F1E0B4A5D006451C7 = { 811 | CreatedOnToolsVersion = 8.2.1; 812 | ProvisioningStyle = Automatic; 813 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 814 | }; 815 | }; 816 | }; 817 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "cnode" */; 818 | compatibilityVersion = "Xcode 3.2"; 819 | developmentRegion = English; 820 | hasScannedForEncodings = 0; 821 | knownRegions = ( 822 | en, 823 | Base, 824 | ); 825 | mainGroup = 83CBB9F61A601CBA00E9B192; 826 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 827 | projectDirPath = ""; 828 | projectReferences = ( 829 | { 830 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 831 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 832 | }, 833 | { 834 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 835 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 836 | }, 837 | { 838 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 839 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 840 | }, 841 | { 842 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 843 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 844 | }, 845 | { 846 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 847 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 848 | }, 849 | { 850 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 851 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 852 | }, 853 | { 854 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 855 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 856 | }, 857 | { 858 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 859 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 860 | }, 861 | { 862 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 863 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 864 | }, 865 | { 866 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 867 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 868 | }, 869 | { 870 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 871 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 872 | }, 873 | { 874 | ProductGroup = 146834001AC3E56700842450 /* Products */; 875 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 876 | }, 877 | { 878 | ProductGroup = 835100FF229FCB7000D285A6 /* Products */; 879 | ProjectRef = 6F994D615335488A9A176C02 /* RNCAsyncStorage.xcodeproj */; 880 | }, 881 | { 882 | ProductGroup = 835100FB229FCB7000D285A6 /* Products */; 883 | ProjectRef = AB0D853D2F5C47D88B5E768D /* RNCWebView.xcodeproj */; 884 | }, 885 | { 886 | ProductGroup = 835100FD229FCB7000D285A6 /* Products */; 887 | ProjectRef = 5E59F1BA8750480A82F4FB5D /* RNGestureHandler.xcodeproj */; 888 | }, 889 | ); 890 | projectRoot = ""; 891 | targets = ( 892 | 13B07F861A680F5B00A75B9A /* cnode */, 893 | 00E356ED1AD99517003FC87E /* cnodeTests */, 894 | 2D02E47A1E0B4A5D006451C7 /* cnode-tvOS */, 895 | 2D02E48F1E0B4A5D006451C7 /* cnode-tvOSTests */, 896 | ); 897 | }; 898 | /* End PBXProject section */ 899 | 900 | /* Begin PBXReferenceProxy section */ 901 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 902 | isa = PBXReferenceProxy; 903 | fileType = archive.ar; 904 | path = libRCTActionSheet.a; 905 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 906 | sourceTree = BUILT_PRODUCTS_DIR; 907 | }; 908 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 909 | isa = PBXReferenceProxy; 910 | fileType = archive.ar; 911 | path = libRCTGeolocation.a; 912 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 913 | sourceTree = BUILT_PRODUCTS_DIR; 914 | }; 915 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 916 | isa = PBXReferenceProxy; 917 | fileType = archive.ar; 918 | path = libRCTImage.a; 919 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 920 | sourceTree = BUILT_PRODUCTS_DIR; 921 | }; 922 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 923 | isa = PBXReferenceProxy; 924 | fileType = archive.ar; 925 | path = libRCTNetwork.a; 926 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 927 | sourceTree = BUILT_PRODUCTS_DIR; 928 | }; 929 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 930 | isa = PBXReferenceProxy; 931 | fileType = archive.ar; 932 | path = libRCTVibration.a; 933 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 934 | sourceTree = BUILT_PRODUCTS_DIR; 935 | }; 936 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 937 | isa = PBXReferenceProxy; 938 | fileType = archive.ar; 939 | path = libRCTSettings.a; 940 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 941 | sourceTree = BUILT_PRODUCTS_DIR; 942 | }; 943 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 944 | isa = PBXReferenceProxy; 945 | fileType = archive.ar; 946 | path = libRCTWebSocket.a; 947 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 948 | sourceTree = BUILT_PRODUCTS_DIR; 949 | }; 950 | 146834041AC3E56700842450 /* libReact.a */ = { 951 | isa = PBXReferenceProxy; 952 | fileType = archive.ar; 953 | path = libReact.a; 954 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 955 | sourceTree = BUILT_PRODUCTS_DIR; 956 | }; 957 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 958 | isa = PBXReferenceProxy; 959 | fileType = archive.ar; 960 | path = "libRCTBlob-tvOS.a"; 961 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 962 | sourceTree = BUILT_PRODUCTS_DIR; 963 | }; 964 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 965 | isa = PBXReferenceProxy; 966 | fileType = archive.ar; 967 | path = libfishhook.a; 968 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 969 | sourceTree = BUILT_PRODUCTS_DIR; 970 | }; 971 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 972 | isa = PBXReferenceProxy; 973 | fileType = archive.ar; 974 | path = "libfishhook-tvOS.a"; 975 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 976 | sourceTree = BUILT_PRODUCTS_DIR; 977 | }; 978 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = { 979 | isa = PBXReferenceProxy; 980 | fileType = archive.ar; 981 | path = libjsinspector.a; 982 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */; 983 | sourceTree = BUILT_PRODUCTS_DIR; 984 | }; 985 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = { 986 | isa = PBXReferenceProxy; 987 | fileType = archive.ar; 988 | path = "libjsinspector-tvOS.a"; 989 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */; 990 | sourceTree = BUILT_PRODUCTS_DIR; 991 | }; 992 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = { 993 | isa = PBXReferenceProxy; 994 | fileType = archive.ar; 995 | path = "libthird-party.a"; 996 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */; 997 | sourceTree = BUILT_PRODUCTS_DIR; 998 | }; 999 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = { 1000 | isa = PBXReferenceProxy; 1001 | fileType = archive.ar; 1002 | path = "libthird-party.a"; 1003 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */; 1004 | sourceTree = BUILT_PRODUCTS_DIR; 1005 | }; 1006 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = { 1007 | isa = PBXReferenceProxy; 1008 | fileType = archive.ar; 1009 | path = "libdouble-conversion.a"; 1010 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */; 1011 | sourceTree = BUILT_PRODUCTS_DIR; 1012 | }; 1013 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = { 1014 | isa = PBXReferenceProxy; 1015 | fileType = archive.ar; 1016 | path = "libdouble-conversion.a"; 1017 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */; 1018 | sourceTree = BUILT_PRODUCTS_DIR; 1019 | }; 1020 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 1021 | isa = PBXReferenceProxy; 1022 | fileType = archive.ar; 1023 | path = "libRCTImage-tvOS.a"; 1024 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 1025 | sourceTree = BUILT_PRODUCTS_DIR; 1026 | }; 1027 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 1028 | isa = PBXReferenceProxy; 1029 | fileType = archive.ar; 1030 | path = "libRCTLinking-tvOS.a"; 1031 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 1032 | sourceTree = BUILT_PRODUCTS_DIR; 1033 | }; 1034 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 1035 | isa = PBXReferenceProxy; 1036 | fileType = archive.ar; 1037 | path = "libRCTNetwork-tvOS.a"; 1038 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 1039 | sourceTree = BUILT_PRODUCTS_DIR; 1040 | }; 1041 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 1042 | isa = PBXReferenceProxy; 1043 | fileType = archive.ar; 1044 | path = "libRCTSettings-tvOS.a"; 1045 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 1046 | sourceTree = BUILT_PRODUCTS_DIR; 1047 | }; 1048 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 1049 | isa = PBXReferenceProxy; 1050 | fileType = archive.ar; 1051 | path = "libRCTText-tvOS.a"; 1052 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 1053 | sourceTree = BUILT_PRODUCTS_DIR; 1054 | }; 1055 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 1056 | isa = PBXReferenceProxy; 1057 | fileType = archive.ar; 1058 | path = "libRCTWebSocket-tvOS.a"; 1059 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 1060 | sourceTree = BUILT_PRODUCTS_DIR; 1061 | }; 1062 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 1063 | isa = PBXReferenceProxy; 1064 | fileType = archive.ar; 1065 | path = libReact.a; 1066 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 1067 | sourceTree = BUILT_PRODUCTS_DIR; 1068 | }; 1069 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 1070 | isa = PBXReferenceProxy; 1071 | fileType = archive.ar; 1072 | path = libyoga.a; 1073 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 1074 | sourceTree = BUILT_PRODUCTS_DIR; 1075 | }; 1076 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 1077 | isa = PBXReferenceProxy; 1078 | fileType = archive.ar; 1079 | path = libyoga.a; 1080 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 1081 | sourceTree = BUILT_PRODUCTS_DIR; 1082 | }; 1083 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 1084 | isa = PBXReferenceProxy; 1085 | fileType = archive.ar; 1086 | path = libcxxreact.a; 1087 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 1088 | sourceTree = BUILT_PRODUCTS_DIR; 1089 | }; 1090 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 1091 | isa = PBXReferenceProxy; 1092 | fileType = archive.ar; 1093 | path = libcxxreact.a; 1094 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 1095 | sourceTree = BUILT_PRODUCTS_DIR; 1096 | }; 1097 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1098 | isa = PBXReferenceProxy; 1099 | fileType = archive.ar; 1100 | path = libRCTAnimation.a; 1101 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1102 | sourceTree = BUILT_PRODUCTS_DIR; 1103 | }; 1104 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1105 | isa = PBXReferenceProxy; 1106 | fileType = archive.ar; 1107 | path = libRCTAnimation.a; 1108 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1109 | sourceTree = BUILT_PRODUCTS_DIR; 1110 | }; 1111 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1112 | isa = PBXReferenceProxy; 1113 | fileType = archive.ar; 1114 | path = libRCTLinking.a; 1115 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1116 | sourceTree = BUILT_PRODUCTS_DIR; 1117 | }; 1118 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1119 | isa = PBXReferenceProxy; 1120 | fileType = archive.ar; 1121 | path = libRCTText.a; 1122 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1123 | sourceTree = BUILT_PRODUCTS_DIR; 1124 | }; 1125 | 835100F4229FCB6F00D285A6 /* libjsi.a */ = { 1126 | isa = PBXReferenceProxy; 1127 | fileType = archive.ar; 1128 | path = libjsi.a; 1129 | remoteRef = 835100F3229FCB6F00D285A6 /* PBXContainerItemProxy */; 1130 | sourceTree = BUILT_PRODUCTS_DIR; 1131 | }; 1132 | 835100F6229FCB6F00D285A6 /* libjsiexecutor.a */ = { 1133 | isa = PBXReferenceProxy; 1134 | fileType = archive.ar; 1135 | path = libjsiexecutor.a; 1136 | remoteRef = 835100F5229FCB6F00D285A6 /* PBXContainerItemProxy */; 1137 | sourceTree = BUILT_PRODUCTS_DIR; 1138 | }; 1139 | 835100F8229FCB6F00D285A6 /* libjsi-tvOS.a */ = { 1140 | isa = PBXReferenceProxy; 1141 | fileType = archive.ar; 1142 | path = "libjsi-tvOS.a"; 1143 | remoteRef = 835100F7229FCB6F00D285A6 /* PBXContainerItemProxy */; 1144 | sourceTree = BUILT_PRODUCTS_DIR; 1145 | }; 1146 | 835100FA229FCB6F00D285A6 /* libjsiexecutor-tvOS.a */ = { 1147 | isa = PBXReferenceProxy; 1148 | fileType = archive.ar; 1149 | path = "libjsiexecutor-tvOS.a"; 1150 | remoteRef = 835100F9229FCB6F00D285A6 /* PBXContainerItemProxy */; 1151 | sourceTree = BUILT_PRODUCTS_DIR; 1152 | }; 1153 | 83510103229FCB7100D285A6 /* libRNCAsyncStorage.a */ = { 1154 | isa = PBXReferenceProxy; 1155 | fileType = archive.ar; 1156 | path = libRNCAsyncStorage.a; 1157 | remoteRef = 83510102229FCB7100D285A6 /* PBXContainerItemProxy */; 1158 | sourceTree = BUILT_PRODUCTS_DIR; 1159 | }; 1160 | 83510106229FCB7100D285A6 /* libRNCWebView.a */ = { 1161 | isa = PBXReferenceProxy; 1162 | fileType = archive.ar; 1163 | path = libRNCWebView.a; 1164 | remoteRef = 83510105229FCB7100D285A6 /* PBXContainerItemProxy */; 1165 | sourceTree = BUILT_PRODUCTS_DIR; 1166 | }; 1167 | 8351010A229FCB7100D285A6 /* libRNGestureHandler.a */ = { 1168 | isa = PBXReferenceProxy; 1169 | fileType = archive.ar; 1170 | path = libRNGestureHandler.a; 1171 | remoteRef = 83510109229FCB7100D285A6 /* PBXContainerItemProxy */; 1172 | sourceTree = BUILT_PRODUCTS_DIR; 1173 | }; 1174 | 8351010C229FCB7100D285A6 /* libRNGestureHandler-tvOS.a */ = { 1175 | isa = PBXReferenceProxy; 1176 | fileType = archive.ar; 1177 | path = "libRNGestureHandler-tvOS.a"; 1178 | remoteRef = 8351010B229FCB7100D285A6 /* PBXContainerItemProxy */; 1179 | sourceTree = BUILT_PRODUCTS_DIR; 1180 | }; 1181 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1182 | isa = PBXReferenceProxy; 1183 | fileType = archive.ar; 1184 | path = libRCTBlob.a; 1185 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1186 | sourceTree = BUILT_PRODUCTS_DIR; 1187 | }; 1188 | /* End PBXReferenceProxy section */ 1189 | 1190 | /* Begin PBXResourcesBuildPhase section */ 1191 | 00E356EC1AD99517003FC87E /* Resources */ = { 1192 | isa = PBXResourcesBuildPhase; 1193 | buildActionMask = 2147483647; 1194 | files = ( 1195 | ); 1196 | runOnlyForDeploymentPostprocessing = 0; 1197 | }; 1198 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1199 | isa = PBXResourcesBuildPhase; 1200 | buildActionMask = 2147483647; 1201 | files = ( 1202 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1203 | 83131C36229FCF1B00457CA8 /* bundle in Resources */, 1204 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1205 | ); 1206 | runOnlyForDeploymentPostprocessing = 0; 1207 | }; 1208 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1209 | isa = PBXResourcesBuildPhase; 1210 | buildActionMask = 2147483647; 1211 | files = ( 1212 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1213 | ); 1214 | runOnlyForDeploymentPostprocessing = 0; 1215 | }; 1216 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1217 | isa = PBXResourcesBuildPhase; 1218 | buildActionMask = 2147483647; 1219 | files = ( 1220 | ); 1221 | runOnlyForDeploymentPostprocessing = 0; 1222 | }; 1223 | /* End PBXResourcesBuildPhase section */ 1224 | 1225 | /* Begin PBXShellScriptBuildPhase section */ 1226 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1227 | isa = PBXShellScriptBuildPhase; 1228 | buildActionMask = 2147483647; 1229 | files = ( 1230 | ); 1231 | inputPaths = ( 1232 | ); 1233 | name = "Bundle React Native code and images"; 1234 | outputPaths = ( 1235 | ); 1236 | runOnlyForDeploymentPostprocessing = 0; 1237 | shellPath = /bin/sh; 1238 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1239 | }; 1240 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1241 | isa = PBXShellScriptBuildPhase; 1242 | buildActionMask = 2147483647; 1243 | files = ( 1244 | ); 1245 | inputPaths = ( 1246 | ); 1247 | name = "Bundle React Native Code And Images"; 1248 | outputPaths = ( 1249 | ); 1250 | runOnlyForDeploymentPostprocessing = 0; 1251 | shellPath = /bin/sh; 1252 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1253 | }; 1254 | /* End PBXShellScriptBuildPhase section */ 1255 | 1256 | /* Begin PBXSourcesBuildPhase section */ 1257 | 00E356EA1AD99517003FC87E /* Sources */ = { 1258 | isa = PBXSourcesBuildPhase; 1259 | buildActionMask = 2147483647; 1260 | files = ( 1261 | 00E356F31AD99517003FC87E /* cnodeTests.m in Sources */, 1262 | ); 1263 | runOnlyForDeploymentPostprocessing = 0; 1264 | }; 1265 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1266 | isa = PBXSourcesBuildPhase; 1267 | buildActionMask = 2147483647; 1268 | files = ( 1269 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1270 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1271 | ); 1272 | runOnlyForDeploymentPostprocessing = 0; 1273 | }; 1274 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1275 | isa = PBXSourcesBuildPhase; 1276 | buildActionMask = 2147483647; 1277 | files = ( 1278 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1279 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1280 | ); 1281 | runOnlyForDeploymentPostprocessing = 0; 1282 | }; 1283 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1284 | isa = PBXSourcesBuildPhase; 1285 | buildActionMask = 2147483647; 1286 | files = ( 1287 | 2DCD954D1E0B4F2C00145EB5 /* cnodeTests.m in Sources */, 1288 | ); 1289 | runOnlyForDeploymentPostprocessing = 0; 1290 | }; 1291 | /* End PBXSourcesBuildPhase section */ 1292 | 1293 | /* Begin PBXTargetDependency section */ 1294 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1295 | isa = PBXTargetDependency; 1296 | target = 13B07F861A680F5B00A75B9A /* cnode */; 1297 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1298 | }; 1299 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1300 | isa = PBXTargetDependency; 1301 | target = 2D02E47A1E0B4A5D006451C7 /* cnode-tvOS */; 1302 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1303 | }; 1304 | /* End PBXTargetDependency section */ 1305 | 1306 | /* Begin PBXVariantGroup section */ 1307 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1308 | isa = PBXVariantGroup; 1309 | children = ( 1310 | 13B07FB21A68108700A75B9A /* Base */, 1311 | ); 1312 | name = LaunchScreen.xib; 1313 | path = cnode; 1314 | sourceTree = ""; 1315 | }; 1316 | /* End PBXVariantGroup section */ 1317 | 1318 | /* Begin XCBuildConfiguration section */ 1319 | 00E356F61AD99517003FC87E /* Debug */ = { 1320 | isa = XCBuildConfiguration; 1321 | buildSettings = { 1322 | BUNDLE_LOADER = "$(TEST_HOST)"; 1323 | DEVELOPMENT_TEAM = DXL46T9L5S; 1324 | GCC_PREPROCESSOR_DEFINITIONS = ( 1325 | "DEBUG=1", 1326 | "$(inherited)", 1327 | ); 1328 | HEADER_SEARCH_PATHS = ( 1329 | "$(inherited)", 1330 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1331 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1332 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1333 | ); 1334 | INFOPLIST_FILE = cnodeTests/Info.plist; 1335 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1336 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1337 | LIBRARY_SEARCH_PATHS = ( 1338 | "$(inherited)", 1339 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1340 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1341 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1342 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1343 | ); 1344 | OTHER_LDFLAGS = ( 1345 | "-ObjC", 1346 | "-lc++", 1347 | ); 1348 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1349 | PRODUCT_NAME = "$(TARGET_NAME)"; 1350 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cnode.app/cnode"; 1351 | }; 1352 | name = Debug; 1353 | }; 1354 | 00E356F71AD99517003FC87E /* Release */ = { 1355 | isa = XCBuildConfiguration; 1356 | buildSettings = { 1357 | BUNDLE_LOADER = "$(TEST_HOST)"; 1358 | COPY_PHASE_STRIP = NO; 1359 | DEVELOPMENT_TEAM = DXL46T9L5S; 1360 | HEADER_SEARCH_PATHS = ( 1361 | "$(inherited)", 1362 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1363 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1364 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1365 | ); 1366 | INFOPLIST_FILE = cnodeTests/Info.plist; 1367 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1368 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1369 | LIBRARY_SEARCH_PATHS = ( 1370 | "$(inherited)", 1371 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1372 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1373 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1374 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1375 | ); 1376 | OTHER_LDFLAGS = ( 1377 | "-ObjC", 1378 | "-lc++", 1379 | ); 1380 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1381 | PRODUCT_NAME = "$(TARGET_NAME)"; 1382 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cnode.app/cnode"; 1383 | }; 1384 | name = Release; 1385 | }; 1386 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1387 | isa = XCBuildConfiguration; 1388 | buildSettings = { 1389 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1390 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1391 | CODE_SIGN_IDENTITY = "iPhone Developer"; 1392 | CODE_SIGN_STYLE = Automatic; 1393 | CURRENT_PROJECT_VERSION = 1; 1394 | DEAD_CODE_STRIPPING = NO; 1395 | DEVELOPMENT_TEAM = DXL46T9L5S; 1396 | HEADER_SEARCH_PATHS = ( 1397 | "$(inherited)", 1398 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1399 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1400 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1401 | ); 1402 | INFOPLIST_FILE = cnode/Info.plist; 1403 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 1404 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1405 | OTHER_LDFLAGS = ( 1406 | "$(inherited)", 1407 | "-ObjC", 1408 | "-lc++", 1409 | ); 1410 | PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.cnode10; 1411 | PRODUCT_NAME = cnode; 1412 | PROVISIONING_PROFILE_SPECIFIER = ""; 1413 | VERSIONING_SYSTEM = "apple-generic"; 1414 | }; 1415 | name = Debug; 1416 | }; 1417 | 13B07F951A680F5B00A75B9A /* Release */ = { 1418 | isa = XCBuildConfiguration; 1419 | buildSettings = { 1420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1421 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1422 | CODE_SIGN_IDENTITY = "iPhone Developer"; 1423 | CODE_SIGN_STYLE = Automatic; 1424 | CURRENT_PROJECT_VERSION = 1; 1425 | DEVELOPMENT_TEAM = DXL46T9L5S; 1426 | HEADER_SEARCH_PATHS = ( 1427 | "$(inherited)", 1428 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1429 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1430 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1431 | ); 1432 | INFOPLIST_FILE = cnode/Info.plist; 1433 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 1434 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1435 | OTHER_LDFLAGS = ( 1436 | "$(inherited)", 1437 | "-ObjC", 1438 | "-lc++", 1439 | ); 1440 | PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.example.cnode10; 1441 | PRODUCT_NAME = cnode; 1442 | PROVISIONING_PROFILE_SPECIFIER = ""; 1443 | VERSIONING_SYSTEM = "apple-generic"; 1444 | }; 1445 | name = Release; 1446 | }; 1447 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1448 | isa = XCBuildConfiguration; 1449 | buildSettings = { 1450 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1451 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1452 | CLANG_ANALYZER_NONNULL = YES; 1453 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1454 | CLANG_WARN_INFINITE_RECURSION = YES; 1455 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1456 | DEBUG_INFORMATION_FORMAT = dwarf; 1457 | ENABLE_TESTABILITY = YES; 1458 | GCC_NO_COMMON_BLOCKS = YES; 1459 | HEADER_SEARCH_PATHS = ( 1460 | "$(inherited)", 1461 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1462 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1463 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1464 | ); 1465 | INFOPLIST_FILE = "cnode-tvOS/Info.plist"; 1466 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1467 | LIBRARY_SEARCH_PATHS = ( 1468 | "$(inherited)", 1469 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1470 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1471 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1472 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1473 | ); 1474 | OTHER_LDFLAGS = ( 1475 | "-ObjC", 1476 | "-lc++", 1477 | ); 1478 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.cnode-tvOS"; 1479 | PRODUCT_NAME = "$(TARGET_NAME)"; 1480 | SDKROOT = appletvos; 1481 | TARGETED_DEVICE_FAMILY = 3; 1482 | TVOS_DEPLOYMENT_TARGET = 9.2; 1483 | }; 1484 | name = Debug; 1485 | }; 1486 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1487 | isa = XCBuildConfiguration; 1488 | buildSettings = { 1489 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1490 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1491 | CLANG_ANALYZER_NONNULL = YES; 1492 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1493 | CLANG_WARN_INFINITE_RECURSION = YES; 1494 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1495 | COPY_PHASE_STRIP = NO; 1496 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1497 | GCC_NO_COMMON_BLOCKS = YES; 1498 | HEADER_SEARCH_PATHS = ( 1499 | "$(inherited)", 1500 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1501 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1502 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1503 | ); 1504 | INFOPLIST_FILE = "cnode-tvOS/Info.plist"; 1505 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1506 | LIBRARY_SEARCH_PATHS = ( 1507 | "$(inherited)", 1508 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1509 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1510 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1511 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1512 | ); 1513 | OTHER_LDFLAGS = ( 1514 | "-ObjC", 1515 | "-lc++", 1516 | ); 1517 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.cnode-tvOS"; 1518 | PRODUCT_NAME = "$(TARGET_NAME)"; 1519 | SDKROOT = appletvos; 1520 | TARGETED_DEVICE_FAMILY = 3; 1521 | TVOS_DEPLOYMENT_TARGET = 9.2; 1522 | }; 1523 | name = Release; 1524 | }; 1525 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1526 | isa = XCBuildConfiguration; 1527 | buildSettings = { 1528 | BUNDLE_LOADER = "$(TEST_HOST)"; 1529 | CLANG_ANALYZER_NONNULL = YES; 1530 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1531 | CLANG_WARN_INFINITE_RECURSION = YES; 1532 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1533 | DEBUG_INFORMATION_FORMAT = dwarf; 1534 | ENABLE_TESTABILITY = YES; 1535 | GCC_NO_COMMON_BLOCKS = YES; 1536 | HEADER_SEARCH_PATHS = ( 1537 | "$(inherited)", 1538 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1539 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1540 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1541 | ); 1542 | INFOPLIST_FILE = "cnode-tvOSTests/Info.plist"; 1543 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1544 | LIBRARY_SEARCH_PATHS = ( 1545 | "$(inherited)", 1546 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1547 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1548 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1549 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1550 | ); 1551 | OTHER_LDFLAGS = ( 1552 | "-ObjC", 1553 | "-lc++", 1554 | ); 1555 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.cnode-tvOSTests"; 1556 | PRODUCT_NAME = "$(TARGET_NAME)"; 1557 | SDKROOT = appletvos; 1558 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cnode-tvOS.app/cnode-tvOS"; 1559 | TVOS_DEPLOYMENT_TARGET = 10.1; 1560 | }; 1561 | name = Debug; 1562 | }; 1563 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1564 | isa = XCBuildConfiguration; 1565 | buildSettings = { 1566 | BUNDLE_LOADER = "$(TEST_HOST)"; 1567 | CLANG_ANALYZER_NONNULL = YES; 1568 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1569 | CLANG_WARN_INFINITE_RECURSION = YES; 1570 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1571 | COPY_PHASE_STRIP = NO; 1572 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1573 | GCC_NO_COMMON_BLOCKS = YES; 1574 | HEADER_SEARCH_PATHS = ( 1575 | "$(inherited)", 1576 | "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", 1577 | "$(SRCROOT)/../node_modules/@react-native-community/async-storage/ios", 1578 | "$(SRCROOT)/../node_modules/react-native-webview/ios", 1579 | ); 1580 | INFOPLIST_FILE = "cnode-tvOSTests/Info.plist"; 1581 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1582 | LIBRARY_SEARCH_PATHS = ( 1583 | "$(inherited)", 1584 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1585 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1586 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1587 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 1588 | ); 1589 | OTHER_LDFLAGS = ( 1590 | "-ObjC", 1591 | "-lc++", 1592 | ); 1593 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.cnode-tvOSTests"; 1594 | PRODUCT_NAME = "$(TARGET_NAME)"; 1595 | SDKROOT = appletvos; 1596 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cnode-tvOS.app/cnode-tvOS"; 1597 | TVOS_DEPLOYMENT_TARGET = 10.1; 1598 | }; 1599 | name = Release; 1600 | }; 1601 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1602 | isa = XCBuildConfiguration; 1603 | buildSettings = { 1604 | ALWAYS_SEARCH_USER_PATHS = NO; 1605 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1606 | CLANG_CXX_LIBRARY = "libc++"; 1607 | CLANG_ENABLE_MODULES = YES; 1608 | CLANG_ENABLE_OBJC_ARC = YES; 1609 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1610 | CLANG_WARN_BOOL_CONVERSION = YES; 1611 | CLANG_WARN_COMMA = YES; 1612 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1613 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1614 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1615 | CLANG_WARN_EMPTY_BODY = YES; 1616 | CLANG_WARN_ENUM_CONVERSION = YES; 1617 | CLANG_WARN_INFINITE_RECURSION = YES; 1618 | CLANG_WARN_INT_CONVERSION = YES; 1619 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1620 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1621 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1622 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1623 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1624 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1625 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1626 | CLANG_WARN_UNREACHABLE_CODE = YES; 1627 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1628 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1629 | COPY_PHASE_STRIP = NO; 1630 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1631 | ENABLE_TESTABILITY = YES; 1632 | GCC_C_LANGUAGE_STANDARD = gnu99; 1633 | GCC_DYNAMIC_NO_PIC = NO; 1634 | GCC_NO_COMMON_BLOCKS = YES; 1635 | GCC_OPTIMIZATION_LEVEL = 0; 1636 | GCC_PREPROCESSOR_DEFINITIONS = ( 1637 | "DEBUG=1", 1638 | "$(inherited)", 1639 | ); 1640 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1641 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1642 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1643 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1644 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1645 | GCC_WARN_UNUSED_FUNCTION = YES; 1646 | GCC_WARN_UNUSED_VARIABLE = YES; 1647 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1648 | MTL_ENABLE_DEBUG_INFO = YES; 1649 | ONLY_ACTIVE_ARCH = YES; 1650 | SDKROOT = iphoneos; 1651 | }; 1652 | name = Debug; 1653 | }; 1654 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1655 | isa = XCBuildConfiguration; 1656 | buildSettings = { 1657 | ALWAYS_SEARCH_USER_PATHS = NO; 1658 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1659 | CLANG_CXX_LIBRARY = "libc++"; 1660 | CLANG_ENABLE_MODULES = YES; 1661 | CLANG_ENABLE_OBJC_ARC = YES; 1662 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1663 | CLANG_WARN_BOOL_CONVERSION = YES; 1664 | CLANG_WARN_COMMA = YES; 1665 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1666 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1667 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1668 | CLANG_WARN_EMPTY_BODY = YES; 1669 | CLANG_WARN_ENUM_CONVERSION = YES; 1670 | CLANG_WARN_INFINITE_RECURSION = YES; 1671 | CLANG_WARN_INT_CONVERSION = YES; 1672 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1673 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1674 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1675 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1676 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1677 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1678 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1679 | CLANG_WARN_UNREACHABLE_CODE = YES; 1680 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1681 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1682 | COPY_PHASE_STRIP = YES; 1683 | ENABLE_NS_ASSERTIONS = NO; 1684 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1685 | GCC_C_LANGUAGE_STANDARD = gnu99; 1686 | GCC_NO_COMMON_BLOCKS = YES; 1687 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1688 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1689 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1690 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1691 | GCC_WARN_UNUSED_FUNCTION = YES; 1692 | GCC_WARN_UNUSED_VARIABLE = YES; 1693 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1694 | MTL_ENABLE_DEBUG_INFO = NO; 1695 | SDKROOT = iphoneos; 1696 | VALIDATE_PRODUCT = YES; 1697 | }; 1698 | name = Release; 1699 | }; 1700 | /* End XCBuildConfiguration section */ 1701 | 1702 | /* Begin XCConfigurationList section */ 1703 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "cnodeTests" */ = { 1704 | isa = XCConfigurationList; 1705 | buildConfigurations = ( 1706 | 00E356F61AD99517003FC87E /* Debug */, 1707 | 00E356F71AD99517003FC87E /* Release */, 1708 | ); 1709 | defaultConfigurationIsVisible = 0; 1710 | defaultConfigurationName = Release; 1711 | }; 1712 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "cnode" */ = { 1713 | isa = XCConfigurationList; 1714 | buildConfigurations = ( 1715 | 13B07F941A680F5B00A75B9A /* Debug */, 1716 | 13B07F951A680F5B00A75B9A /* Release */, 1717 | ); 1718 | defaultConfigurationIsVisible = 0; 1719 | defaultConfigurationName = Release; 1720 | }; 1721 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "cnode-tvOS" */ = { 1722 | isa = XCConfigurationList; 1723 | buildConfigurations = ( 1724 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1725 | 2D02E4981E0B4A5E006451C7 /* Release */, 1726 | ); 1727 | defaultConfigurationIsVisible = 0; 1728 | defaultConfigurationName = Release; 1729 | }; 1730 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "cnode-tvOSTests" */ = { 1731 | isa = XCConfigurationList; 1732 | buildConfigurations = ( 1733 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1734 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1735 | ); 1736 | defaultConfigurationIsVisible = 0; 1737 | defaultConfigurationName = Release; 1738 | }; 1739 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "cnode" */ = { 1740 | isa = XCConfigurationList; 1741 | buildConfigurations = ( 1742 | 83CBBA201A601CBA00E9B192 /* Debug */, 1743 | 83CBBA211A601CBA00E9B192 /* Release */, 1744 | ); 1745 | defaultConfigurationIsVisible = 0; 1746 | defaultConfigurationName = Release; 1747 | }; 1748 | /* End XCConfigurationList section */ 1749 | }; 1750 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1751 | } 1752 | -------------------------------------------------------------------------------- /ios/cnode.xcodeproj/xcshareddata/xcschemes/cnode-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ios/cnode.xcodeproj/xcshareddata/xcschemes/cnode.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/cnode/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/cnode/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"cnode" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[NSBundle mainBundle] URLForResource:@"index.ios" withExtension:@"jsbundle"]; 37 | // return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 38 | #else 39 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 40 | #endif 41 | } 42 | @end 43 | -------------------------------------------------------------------------------- /ios/cnode/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/cnode/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /ios/cnode/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/cnode/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "minimum-system-version" : "7.0", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "orientation" : "portrait", 11 | "idiom" : "iphone", 12 | "minimum-system-version" : "7.0", 13 | "subtype" : "retina4", 14 | "scale" : "2x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /ios/cnode/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | cnode 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | NSMainNibFile 43 | LaunchScreen 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIRequiredDeviceCapabilities 47 | 48 | armv7 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationPortrait 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | UIInterfaceOrientationPortraitUpsideDown 56 | 57 | UIViewControllerBasedStatusBarAppearance 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /ios/cnode/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/cnodeTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/cnodeTests/cnodeTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 16 | 17 | @interface cnodeTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation cnodeTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 44 | if (level >= RCTLogLevelError) { 45 | redboxError = message; 46 | } 47 | }); 48 | 49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 52 | 53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 55 | return YES; 56 | } 57 | return NO; 58 | }]; 59 | } 60 | 61 | RCTSetLogFunction(RCTDefaultLogFunction); 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cnode", 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 | "bundle-ios": "node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev false --bundle-output ./ios/bundle/index.ios.jsbundle --assets-dest ./ios/bundle" 9 | }, 10 | "dependencies": { 11 | "@react-native-community/async-storage": "^1.4.1", 12 | "@types/react": "^16.8.18", 13 | "@types/react-native": "^0.57.58", 14 | "axios": "^0.18.0", 15 | "babel-plugin-import": "^1.11.2", 16 | "moment": "^2.24.0", 17 | "react": "16.8.3", 18 | "react-native": "0.59.8", 19 | "react-native-gesture-handler": "^1.2.1", 20 | "react-native-picker-select": "^6.1.0", 21 | "react-native-refresh-list-view": "^1.0.10", 22 | "react-native-render-html": "^4.1.2", 23 | "react-native-side-menu": "^1.1.3", 24 | "react-native-webview": "^5.10.0", 25 | "react-navigation": "^3.11.0", 26 | "react-redux": "^7.0.3", 27 | "redux": "^4.0.1", 28 | "tslib": "^1.9.3" 29 | }, 30 | "devDependencies": { 31 | "@babel/core": "^7.4.4", 32 | "@babel/runtime": "^7.4.4", 33 | "babel-jest": "^24.8.0", 34 | "jest": "^24.8.0", 35 | "metro-react-native-babel-preset": "^0.54.1", 36 | "react-native-typescript-transformer": "^1.2.12", 37 | "react-test-renderer": "16.8.3", 38 | "typescript": "^3.4.5" 39 | }, 40 | "jest": { 41 | "preset": "react-native" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /package/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/package/app-release.apk -------------------------------------------------------------------------------- /rn-cli.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | getTransformModulePath() { 3 | return require.resolve('react-native-typescript-transformer'); 4 | }, 5 | getSourceExts() { 6 | return ['ts', 'tsx']; 7 | }, 8 | }; -------------------------------------------------------------------------------- /screenshot/5月-31-2019 15-19-57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/screenshot/5月-31-2019 15-19-57.gif -------------------------------------------------------------------------------- /screenshot/5月-31-2019 16-12-11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/screenshot/5月-31-2019 16-12-11.gif -------------------------------------------------------------------------------- /screenshot/icon-above-font.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/screenshot/icon-above-font.png -------------------------------------------------------------------------------- /src/assets/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/back.png -------------------------------------------------------------------------------- /src/assets/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/home.png -------------------------------------------------------------------------------- /src/assets/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/info.png -------------------------------------------------------------------------------- /src/assets/me.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/me.png -------------------------------------------------------------------------------- /src/assets/mess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/mess.png -------------------------------------------------------------------------------- /src/assets/message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/message.png -------------------------------------------------------------------------------- /src/assets/publish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/publish.png -------------------------------------------------------------------------------- /src/assets/read.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/read.png -------------------------------------------------------------------------------- /src/assets/tabbar_merchant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/tabbar_merchant.png -------------------------------------------------------------------------------- /src/assets/time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wangdabaoqq/react-native-cnode/7255b608dbb11d5efa742373884c4dcb3d8a7469/src/assets/time.png -------------------------------------------------------------------------------- /src/components/Nav/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | // import { getALl } from '../../config/api' 3 | // import axios from 'axios' 4 | import { 5 | UIManager, StyleSheet, Platform, 6 | Text, View, Animated, findNodeHandle } from 'react-native'; 7 | // const AnimatedTouchableWithoutFeedback = Animated.createAnimatedComponent(TouchableWithoutFeedback); 8 | 9 | export default class Nav extends Component { 10 | constructor () { 11 | super() 12 | this.state = { 13 | // dataList: [], 14 | fadeAnim: new Animated.Value(0), 15 | isactive: 0, 16 | TextWidth: 0, 17 | Left: 0, 18 | start: null 19 | } 20 | } 21 | componentDidMount () { 22 | setTimeout(() => { 23 | this.getComponentWidth().then((data) => { 24 | this.setState({ 25 | TextWidth: data 26 | }) 27 | }) 28 | }, 200) 29 | } 30 | getComponentWidth () { 31 | return new Promise((resolve, reject) => { 32 | const handle = findNodeHandle(this.refs.text1) 33 | UIManager.measure(handle,(x, y, width, height, pageX, pageY)=>{ 34 | // comWidth = width 35 | resolve(width) 36 | }) 37 | }) 38 | // console.log(comWidth); 39 | } 40 | 41 | getData (item, index) { 42 | this.getComponentWidth().then((data) => { 43 | this.setState({ 44 | TextWidth: data, 45 | isactive: index, 46 | Left: index * data 47 | }) 48 | }) 49 | this.props.getData(item, index) 50 | } 51 | render () { 52 | let menuList = [ 53 | { 54 | text: '全部', 55 | value: 'all' 56 | }, 57 | { 58 | text: '精华', 59 | value: 'good' 60 | }, 61 | { 62 | text: '分享', 63 | value: 'share' 64 | }, 65 | { 66 | text: '问答', 67 | value: 'ask' 68 | }, 69 | { 70 | text: '测试', 71 | value: 'dev' 72 | }, 73 | { 74 | text: '招聘', 75 | value: 'job' 76 | } 77 | ] 78 | let { fadeAnim } = this.state; 79 | // const actives = this.state.isactive === index ? styles.active : '' 80 | return ( 81 | // 82 | // 88 | 89 | {/* 92 | this.getData(ele, index)}> 95 | {ele.text} 96 | 97 | ) 98 | // 99 | } 100 | {/* 104 | */} 105 | 106 | 107 | 108 | // 109 | ) 110 | } 111 | } 112 | const styles = StyleSheet.create({ 113 | icon: { 114 | width: 27, 115 | height: 27, 116 | }, 117 | avatar: { 118 | width: 50, 119 | height: 50, 120 | marginRight: 10, 121 | borderRadius: 25, 122 | borderWidth: 2, 123 | borderColor: '#51D3C6' 124 | }, 125 | contain: { 126 | flexDirection: 'row', 127 | marginTop: Platform.OS === 'ios' ? 40 : 0, 128 | backgroundColor: '#009688', 129 | height: 60 130 | // flex: 1, 131 | // flexDirection: 'column', 132 | // justifyContent: 'center', 133 | // alignItems: 'stretch', 134 | // textAlign: 'center' 135 | }, 136 | list: { 137 | flex: 1, 138 | width: 50, 139 | textAlign: 'center', 140 | lineHeight: 60, 141 | // backgroundColor: '#009688', 142 | color: 'hsla(0,0%,100%,.7)', 143 | fontSize: 16 144 | }, 145 | active: { 146 | color: '#fff', 147 | // transform: [{translateX: 100}], 148 | // width: '10%' 149 | // backgroundColor: 'yellow', 150 | // position: 'absolute', 151 | // top: 20, 152 | }, 153 | block: { 154 | position: 'absolute', 155 | // color: '#fff', 156 | backgroundColor: 'red', 157 | bottom: 0, 158 | height: 2 159 | // transform: [{translateX: 0}], 160 | // width: '14%' 161 | } 162 | }) -------------------------------------------------------------------------------- /src/config/api.js: -------------------------------------------------------------------------------- 1 | // export default { 2 | const all = 'https://cnodejs.org/api/v1/topics' 3 | const alldetail = 'https://cnodejs.org/api/v1/topic' 4 | const access = `https://cnodejs.org/api/v1/accesstoken` 5 | const userinfo = `https://cnodejs.org/api/v1/user/` 6 | // } 7 | import axios from 'axios' 8 | 9 | export function getALl (params) { 10 | // console.log(url); 11 | 12 | // } 13 | // console.log(url); 14 | // url = getUrl(params, url) 15 | return axios({ 16 | url: all, 17 | method: 'get', 18 | params 19 | // body: JSON.stringify(params) 20 | }) 21 | } 22 | export function getDetail (id) { 23 | 24 | return axios({ 25 | url: `${alldetail}/${id}`, 26 | method: 'get' 27 | // params 28 | }) 29 | } 30 | 31 | export function getAccess (accesstoken) { 32 | return axios({ 33 | url:access, 34 | method: 'post', 35 | data: { 36 | accesstoken 37 | } 38 | }) 39 | } 40 | export function getUsers (user) { 41 | return axios({ 42 | url: `${userinfo}${user}`, 43 | method: 'get' 44 | }) 45 | } 46 | export function getUrl (params, url) { 47 | if (params) { 48 | let paramsArray = []; 49 | //拼接参数 50 | Object.keys(params).forEach(key => paramsArray.push(key + '=' + params[key])) 51 | if (url.search(/\?/) === -1) { 52 | url += '?' + paramsArray.join('&') 53 | } else { 54 | url += '&' + paramsArray.join('&') 55 | } 56 | } 57 | return url 58 | } -------------------------------------------------------------------------------- /src/d.ts: -------------------------------------------------------------------------------- 1 | declare module 'react-native-side-menu' -------------------------------------------------------------------------------- /src/store/index.js: -------------------------------------------------------------------------------- 1 | // action types 2 | const INIT_COMMENTS = 'INIT_COMMENTS' 3 | const LOAD_DATA = 'LOAD_DATA' 4 | const DELETE_COMMENT = 'DELETE_COMMENT' 5 | const GET_LOGINNAME = 'GET_LOGINNAME' 6 | const REMOVE_LOGIN = 'REMOVE_LOGIN' 7 | const REMOVE_PREV = 'REMOVE_PREV' 8 | 9 | 10 | // reducer 11 | export default function (state, action) { 12 | // console.log(action.dataList, state.da); 13 | 14 | if (!state) { 15 | state = { 16 | dataList: [], 17 | login: '' 18 | } 19 | } 20 | 21 | switch (action.type) { 22 | case LOAD_DATA: 23 | // 初始化评论 24 | return { 25 | ...state, 26 | dataList: [...state.dataList, ...action.dataList] 27 | } 28 | case GET_LOGINNAME: 29 | return { 30 | ...state, 31 | login: action.name 32 | } 33 | case REMOVE_LOGIN: 34 | return { 35 | ...state, 36 | login: action.name 37 | } 38 | case REMOVE_PREV: 39 | return { 40 | ...state, 41 | dataList: [] 42 | } 43 | case DELETE_COMMENT: 44 | // 删除评论 45 | return { 46 | comments: [ 47 | ...state.comments.slice(0, action.commentIndex), 48 | ...state.comments.slice(action.commentIndex + 1) 49 | ] 50 | } 51 | default: 52 | return state 53 | } 54 | } 55 | 56 | // action creators 57 | export const initComments = (comments) => { 58 | return { type: INIT_COMMENTS, comments } 59 | } 60 | 61 | export const loadData = (dataList) => { 62 | console.log(dataList); 63 | 64 | return { type: LOAD_DATA, dataList } 65 | } 66 | 67 | export const deleteComment = (commentIndex) => { 68 | return { type: DELETE_COMMENT, commentIndex } 69 | } 70 | export const getLoginName = (name) => { 71 | 72 | return { type: GET_LOGINNAME, name } 73 | } 74 | export const removeLogin = (name) => { 75 | 76 | return { type: REMOVE_LOGIN, name } 77 | } 78 | export const removePrev = (data) => { 79 | 80 | return { type: REMOVE_PREV, data } 81 | } 82 | -------------------------------------------------------------------------------- /src/utils/index.js: -------------------------------------------------------------------------------- 1 | var moment = require('moment'); 2 | import 'moment/locale/zh-cn' 3 | import AsyncStorage from '@react-native-community/async-storage' 4 | export function fillterTime (time) { 5 | return moment(time).fromNow() 6 | } 7 | 8 | export function setSession (key, value) { 9 | AsyncStorage.setItem(key, value) 10 | } 11 | 12 | export function getSession (key) { 13 | AsyncStorage.getItem(key).then(data => { 14 | console.log(data) 15 | }) 16 | } 17 | export function removeSession (key, fn) { 18 | return AsyncStorage.removeItem(key).then(error => { 19 | fn() 20 | }) 21 | } -------------------------------------------------------------------------------- /src/views/Detail/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import { View, Text, ScrollView, TouchableOpacity, 3 | Dimensions, StyleSheet, InteractionManager, Image } from 'react-native'; 4 | // import HTMLView from 'react-native-htmlview'; 5 | import HTML from 'react-native-render-html'; 6 | import { getDetail } from '../../config/api' 7 | import { fillterTime } from '../../utils' 8 | import { connect } from 'react-redux' 9 | class Detail extends Component { 10 | constructor (props) { 11 | // console.log(props); 12 | super(props) 13 | this.state = { 14 | dataList: [], 15 | isLoaded: false, 16 | // params: { 17 | // id: '', 18 | // accesstoken: '3f24a7d9-bfdb-452c-9a03-5594698797b7' 19 | // }, 20 | tagsStyles: { 21 | a: { 22 | color: '#009688' 23 | }, 24 | p: { 25 | fontSize: 14, 26 | // lineHeight: 20, 27 | // color: 'red', 28 | // margin: 20 29 | // padding: 10 30 | }, 31 | pre: { 32 | flexDirection: 'column', 33 | flex: 1 34 | }, 35 | code: { 36 | // flex: 1, 37 | // flexDirection: 'column' 38 | }, 39 | ul: { 40 | // listStyle: 'none' 41 | }, 42 | pre: { 43 | 44 | } 45 | // ul 46 | }, 47 | renderers: { 48 | h2: (htmlAttribs, children, convertedCSSStyles, passProps) => { 49 | return ( 50 | 51 | {passProps.rawChildren[0].data} 52 | 53 | ) 54 | } 55 | // pre: (htmlAttribs, children, convertedCSSStyles, passProps) => { 56 | // console.log(passProps); 57 | // return ( 58 | // // 59 | // {passProps.rawChildren[0].data} 60 | // // 61 | // ) 62 | // }, 63 | } 64 | } 65 | // this.allDetail(props) 66 | } 67 | static navigationOptions = ({ navigation }) => ({ 68 | headerTitle: navigation.state.params.data.title 69 | }) 70 | // fillterTime = (time) => { 71 | // return moment(time).fromNow() 72 | // } 73 | componentDidMount() { 74 | this.allDetail() 75 | console.log(11111, '测试'); 76 | 77 | InteractionManager.runAfterInteractions(() => { 78 | this.props.navigation.setParams({ title: '加载中' }) 79 | // this.setState({ source: { uri: this.props.navigation.state.params.url } }) 80 | }) 81 | } 82 | isLogin = () => { 83 | let { login, navigation } = this.props 84 | if (login === '') { 85 | navigation.navigate('Mine') 86 | } 87 | // console.log(this.props.lohi); 88 | } 89 | giveTop = () => { 90 | 91 | } 92 | allDetail (props) { 93 | let id = this.props.navigation.state.params.data.id 94 | getDetail(id).then((res) => { 95 | // res.json().then((data) => { 96 | let datas = res.data.data 97 | // console.log(data); 98 | 99 | this.setState({ 100 | dataList: datas, 101 | isLoaded: true 102 | }) 103 | // console.log(this.state.dataList); 104 | }) 105 | // }) 106 | } 107 | render () { 108 | // console.log(this.state.isLoaded); 109 | // if (this.state.isLoaded) { 110 | let data = this.state.dataList 111 | console.log(this.props); 112 | 113 | // console.log(this.state.dataList); 114 | // console.log(data, data.replies); 115 | return ( 116 | data && data.replies ? 117 | 121 | 122 | 123 | {/* { data && data.replies ? */} 124 | 125 | 评论({data.replies.length}) 126 | 127 | {/* : null } */} 128 | { 129 | data.replies.map((ele, index) => 130 | 131 | 132 | 137 | 138 | 139 | {ele.author.loginname} 140 | 141 | 142 | {index + 1}楼 {fillterTime(ele.create_at)} 143 | 144 | 145 | 146 | 147 | 148 | 回复 149 | 150 | 151 | 152 | 🖤 153 | {ele.ups.length} 154 | 155 | 156 | 157 | 158 | 159 | 160 | ) 161 | } 162 | 163 | 164 | : null 165 | // 166 | ) 167 | // } 168 | } 169 | } 170 | 171 | const mapStateToProps = (state) => { 172 | console.log(state); 173 | 174 | return { 175 | dataList: state.dataList, 176 | login: state.login 177 | } 178 | } 179 | export default connect( 180 | mapStateToProps 181 | )(Detail) 182 | const styles = StyleSheet.create({ 183 | h2: { 184 | // backgroundColor: 'red', 185 | borderBottomColor: '#eee', 186 | borderBottomWidth: 1, 187 | height: 40, 188 | lineHeight: 40, 189 | padding: 10, 190 | 191 | // fontSize: 40 192 | // margin: 10 193 | // border 194 | }, 195 | share: { 196 | position: 'absolute', 197 | right: 0, 198 | top: 6, 199 | flexDirection: 'row' 200 | }, 201 | // code: { 202 | // backgroundColor: 'red' 203 | // }, 204 | // p: { 205 | // backgroundColor: 'red' 206 | // } 207 | }) 208 | -------------------------------------------------------------------------------- /src/views/Home/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import {Platform, StyleSheet, Text, View, InteractionManager, Image, TouchableOpacity } from 'react-native'; 3 | import RefreshListView, { RefreshState } from 'react-native-refresh-list-view' 4 | import { Button } from '@ant-design/react-native'; 5 | import { fillterTime } from '../../utils' 6 | import Nav from '../../components/Nav' 7 | // import axios from 'axios' 8 | import { getALl } from '../../config/api' 9 | import { connect } from 'react-redux' 10 | import { loadData, removePrev } from '../../store' 11 | // var moment = require('moment'); 12 | // import 'moment/locale/zh-cn' 13 | class Home extends Component { 14 | constructor () { 15 | super() 16 | this.state = { 17 | dataList: [], 18 | isactivesa: 0, 19 | refreshState: RefreshState.Idle, 20 | params: { 21 | tab: 'all', 22 | page: 1 23 | } 24 | } 25 | } 26 | static navigationOptions = ({ navigation }: any) => ({ 27 | header: null, 28 | // headerStyle: { backgroundColor: 'red' }, 29 | // gestureResponseDistance: { 30 | // vertical: 11 31 | // } 32 | }) 33 | componentWillMount () { 34 | this.props.navigation.setParams({ queryData: () => { this.getAxios(this.state.params); } });//在导航中添加查询数据的方法,设置一个钩子 35 | InteractionManager.runAfterInteractions(() => { 36 | this.getAxios(this.state.params) 37 | }) 38 | 39 | } 40 | getData = (item, index) => { 41 | // console.log(this.state.params.tab); 42 | 43 | if (item.value !== this.state.params.tab) { 44 | // this.setState({ 45 | // dataList: [] 46 | // }) 47 | // console.log(111); 48 | 49 | this.props.removePrev() 50 | 51 | // // this.props.state = [] 52 | } 53 | // console.log(item); 54 | 55 | this.setState({ 56 | params: { 57 | tab: item.value, 58 | page: 1, 59 | mdrender: false 60 | } 61 | }, () => { 62 | console.log(this.state.params); 63 | this.getAxios(this.state.params) 64 | }) 65 | // console.log(this.state.params); 66 | 67 | // this.getAxios(this.state.params) 68 | } 69 | getAxios (query) { 70 | // console.log(query); 71 | 72 | this.setState({ refreshState: RefreshState.FooterRefreshing }) 73 | getALl(query).then((res) => { 74 | 75 | let datas = res.data.data 76 | console.log(datas); 77 | 78 | this.setState({ 79 | // dataList: [...this.state.dataList, ...datas], 80 | params: query, 81 | refreshState: RefreshState.NoMoreData 82 | }) 83 | 84 | this.props.onSubmit(datas) 85 | // }) 86 | }) 87 | } 88 | keyExtractor = (item, index) => { 89 | return index.toString() 90 | } 91 | onFooterRefresh = () => { 92 | this.setState({ refreshState: RefreshState.HeaderRefreshing }) 93 | } 94 | // fillterTime = (time) => { 95 | // return moment(time).fromNow() 96 | // } 97 | onHeaderRefresh = () => { 98 | // console.log(this.state.params); 99 | // console.log(this.state.params.page); 100 | // this.setState({ refreshState: RefreshState.HeaderRefreshing }) 101 | this.setState({ 102 | // refreshState: RefreshState.FooterRefreshing, 103 | params: { 104 | ...this.state.params, 105 | // tab: 'all',x 106 | page: this.state.params.page++ 107 | } 108 | }) 109 | this.getAxios(this.state.params) 110 | } 111 | onPress (data) { 112 | // this.props.na 113 | this.props.navigation.navigate('Detail', { data }) 114 | // console.warn(this.props.navigation.state.params); 115 | 116 | } 117 | renderCell = (info) => { 118 | let data = info.item 119 | 120 | return ( 121 | 122 | { 123 | this.onPress(data) 124 | }}> 125 | 126 | 130 | 131 | {data.author.loginname} 132 | 133 | 134 | {fillterTime(data.create_at)} 135 | 136 | 137 | #分享# 138 | 139 | 140 | 141 | 142 | { 143 | data.top ? (置顶) : null 144 | } 145 | { 146 | data.good ? (精华) : null 147 | } 148 | { 149 | data.tab === 'ask' ? (回答) : null 150 | } 151 | { 152 | data.tab === 'share' ? (分享) : null 153 | } 154 | 155 | 156 | 157 | 158 | {data.title} 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | {data.reply_count} 167 | 168 | 169 | 170 | 171 | {data.reply_count} 172 | 173 | 174 | 175 | {fillterTime(data.last_reply_at)} 176 | 177 | 178 | 179 | 180 | ) 181 | } 182 | render () { 183 | // let { dataList } = this.props.state 184 | // console.log(this.props); 185 | 186 | return ( 187 | 188 | 189 | 203 | 204 | ) 205 | } 206 | } 207 | const mapStateToProps = (state) => { 208 | return { 209 | dataList: state.dataList 210 | } 211 | } 212 | const mapDispatchToProps = (dispatch) => { 213 | return { 214 | onSubmit: (data) => { 215 | dispatch(loadData(data)) 216 | }, 217 | removePrev: (data) => { 218 | dispatch(removePrev(data)) 219 | } 220 | } 221 | } 222 | Home = connect(mapStateToProps, mapDispatchToProps)(Home) 223 | export default Home 224 | const styles = StyleSheet.create({ 225 | icon: { 226 | width: 27, 227 | height: 27, 228 | }, 229 | header: { 230 | flex: 1, 231 | backgroundColor: '#eee', 232 | // paddingBottom: 20, 233 | // flexDirection: 'row', 234 | // alignItems: 'center', 235 | marginTop: 0, 236 | // height: 60 237 | }, 238 | avatar: { 239 | width: 50, 240 | height: 50, 241 | marginRight: 10, 242 | borderRadius: 25, 243 | borderWidth: 2, 244 | borderColor: '#51D3C6' 245 | }, 246 | contain: { 247 | flex: 1, 248 | flexDirection: 'column', 249 | justifyContent: 'center', 250 | alignItems: 'stretch', 251 | padding: 10, 252 | marginBottom: 10, 253 | borderWidth: 1, 254 | borderColor: '#ccc', 255 | // shadowColor: 'green', 256 | backgroundColor: '#fff', 257 | // shadowOffset: { 258 | // width: 200, 259 | // height: 200 260 | // } 261 | // textAlign: 'center' 262 | }, 263 | list: { 264 | // flex: 1, 265 | textAlign: 'center', 266 | lineHeight: 60, 267 | // backgroundColor: '#009688', 268 | color: 'hsla(0,0%,100%,.7)', 269 | fontSize: 16 270 | }, 271 | btn: { 272 | fontSize: 12, 273 | backgroundColor: '#009688', 274 | padding: 2, 275 | color: '#fff', 276 | // width: 30, 277 | height: 20, 278 | lineHeight: 15, 279 | marginRight: 2, 280 | // flexDirection: 'row', 281 | // right: 0 282 | // position: 'absolute', 283 | // right: 0, 284 | // top: 10 285 | // borderRadius: 12, 286 | // borderWidth: 1, 287 | // borderColor: '#009688' 288 | }, 289 | share: { 290 | position: 'absolute', 291 | right: 0, 292 | top: 6, 293 | flexDirection: 'row' 294 | }, 295 | cloumn: { 296 | flex: 1, 297 | flexDirection: 'row', 298 | // borderRightWidth 299 | justifyContent: 'center', 300 | // alignItems: 'stretch', 301 | borderRightWidth: 1, 302 | textAlign: 'center', 303 | borderStyle: 'solid', 304 | // borderBottomWidth: 1, 305 | borderRightColor: '#ccc' 306 | }, 307 | active: { 308 | color: 'red' 309 | } 310 | }) -------------------------------------------------------------------------------- /src/views/Info/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | // import { getALl } from '../../config/api' 3 | // import axios from 'axios' 4 | import {ScrollView, StyleSheet, Text, View, Platform, TouchableOpacity, Linking, Image, Dimensions } from 'react-native'; 5 | let { width } = Dimensions.get("window"); 6 | const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 56; 7 | export default class Info extends Component { 8 | constructor () { 9 | super() 10 | this.state = { 11 | // dataList: [], 12 | isactive: 0 13 | } 14 | } 15 | static navigationOptions = ({ navigation }) => ({ 16 | headerTitle: '关于', 17 | headerTitleStyle: { 18 | alignSelf:'center', 19 | textAlign: 'center', 20 | flex:1, 21 | }, 22 | headerTitleContainerStyle:{ 23 | left: TITLE_OFFSET, 24 | right: TITLE_OFFSET, 25 | }, 26 | // headerRight:React.createElement(View, null, null), 27 | headerLeft: ( 28 | { 31 | navigation.goBack(null) 32 | }}> 33 | 34 | 35 | ) 36 | }) 37 | enterIn = () => { 38 | let url = 'https://github.com/wangdabaoqq/react-native-cnode'; 39 | Linking.openURL(url) 40 | } 41 | render () { 42 | // const actives = this.state.isactive === index ? styles.active : '' 43 | return ( 44 | 45 | 46 | 47 | 项目地址 48 | 49 | 50 | 51 | 55 | 这个项目断断续续写了也蛮长时间的, 起初只是想 56 | 练下手, 对react-native加深下认识。后来就觉得写个项目算了。 57 | 当然这个项目我还没写完, 其中由于cnode的api接口不再支持一些 58 | 功能, 可能功能就没有办法实现, 看什么时候再支持吧。 59 | 抛开api问题, 还有就是个人消息没有做。这一块我会尽快完成。 60 | 其余关于项目的我会在README里面做更详细的介绍。 61 | 反正未完待续吧。嗯就是这样️❤️。。。 62 | 63 | 64 | {/* */} 65 | 66 | react-native-cnode ©2019 Created github 67 | 68 | {/* */} 69 | 70 | 71 | 72 | ) 73 | } 74 | } 75 | 76 | const styles= StyleSheet.create({ 77 | contain: { 78 | flexDirection: 'row', 79 | flex: 1, 80 | // padding: 10, 81 | // margin: 10, 82 | backgroundColor: '#ececec' 83 | }, 84 | scroll: { 85 | margin: 10, 86 | }, 87 | infoText: { 88 | fontSize: 16 89 | }, 90 | info: { 91 | backgroundColor: '#fff', 92 | minHeight: 250, 93 | width: width - 20, 94 | padding: 10, 95 | borderRadius: 6, 96 | // border: 8, 97 | marginTop: 10 98 | }, 99 | read: { 100 | textAlign: 'left', 101 | fontSize: 14, 102 | lineHeight: 25, 103 | // letterSpacing: 2 104 | } 105 | }) -------------------------------------------------------------------------------- /src/views/Me/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import { getAccess, getUsers } from '../../config/api' 3 | // import axios from 'axios' 4 | import { fillterTime, removeSession } from '../../utils' 5 | import { connect } from 'react-redux' 6 | import { getLoginName, removeLogin } from '../../store' 7 | const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 56; 8 | 9 | import AsyncStorage from '@react-native-community/async-storage' 10 | import {Button, StyleSheet, Platform, Text, View, TextInput, Image } from 'react-native'; 11 | class Me extends Component { 12 | constructor () { 13 | super() 14 | this.state = { 15 | // dataList: [], 16 | text: '3f24a7d9-bfdb-452c-9a03-5594698797b7', 17 | isactive: 0, 18 | avatarImage: '', 19 | loginname: '', 20 | data: null 21 | } 22 | } 23 | static navigationOptions = ({ navigation }) => ({ 24 | headerTitle: '登录', 25 | headerTitleStyle: { 26 | alignSelf:'center', 27 | textAlign: 'center', 28 | flex:1, 29 | }, 30 | headerTitleContainerStyle:{ 31 | left: TITLE_OFFSET, 32 | right: TITLE_OFFSET, 33 | }, 34 | // headerTitleStyle: { 35 | // alignSelf:'center', 36 | // textAlign: 'center', 37 | // flex:1, 38 | // } 39 | }) 40 | getInfo () { 41 | getUsers(this.state.loginname).then((res) => { 42 | let datas = res.data.data 43 | this.setState({ 44 | data: datas 45 | }) 46 | this.props.onSubmit(datas.loginname) 47 | }) 48 | } 49 | getUser = () => { 50 | getAccess(this.state.text).then((res) => { 51 | let data = res.data 52 | this.setState({ 53 | avatarImage: data.avatar_url, 54 | loginname: data.loginname 55 | }) 56 | AsyncStorage.setItem('loginname', data.loginname) 57 | 58 | this.getInfo() 59 | }) 60 | // getUsers(this.state.loginname).then((res) => { 61 | // let datas = res.data 62 | // console.log(res); 63 | 64 | // this.setState({ 65 | // data: datas 66 | // }) 67 | // }) 68 | let loginname = AsyncStorage.getItem('loginname').then(data => data) 69 | this.setState({ 70 | loginname 71 | }) 72 | } 73 | logout = () => { 74 | removeSession('loginname', () => { 75 | this.setState({ 76 | loginname: '', 77 | data: null 78 | }) 79 | this.props.removeLogin('') 80 | }) 81 | // let loginname = AsyncStorage.removeItem('loginname').then((error) => { 82 | // // console.log(error); 83 | // this.setState({ 84 | // loginname: '', 85 | // data: null 86 | // }) 87 | // }) 88 | // console.log(loginname); 89 | 90 | } 91 | onChangeText = (val) => { 92 | this.setState({ 93 | text: val 94 | }) 95 | } 96 | render () { 97 | 98 | let { data, loginname } = this.state 99 | // console.log(data, loginname, data.avatar_url); 100 | 101 | // const actives = this.state.isactive === index ? styles.active : '' 102 | return ( 103 | 105 | {data ? 106 | 111 | 112 | 113 | {data.loginname} 114 | 115 | 116 | 创建时间: {fillterTime(data.create_at)} 117 | 118 | 119 | 积分: {data.score} 120 | 121 | 122 | 131 | 退出 132 | 133 | : null 134 | } 135 | { !loginname ? 136 | 145 | 153 | 161 | 162 | 163 | 168 | 169 | 170 | : null 171 | } 172 | 173 | ) 174 | } 175 | } 176 | const mapStateToProps = (state) => { 177 | console.log(state); 178 | 179 | return { 180 | login: state.login, 181 | dataList: state.dataList 182 | } 183 | } 184 | const mapDispatchToProps = (dispatch) => { 185 | return { 186 | onSubmit: (data) => { 187 | dispatch(getLoginName(data)) 188 | }, 189 | removeLogin: (data) => { 190 | dispatch(removeLogin(data)) 191 | } 192 | } 193 | } 194 | export default connect(mapStateToProps, mapDispatchToProps)(Me) -------------------------------------------------------------------------------- /src/views/Message/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | // import { getALl } from '../../config/api' 3 | // import axios from 'axios' 4 | import {Platform, StyleSheet, Text, View, Dimensions, findNodeHandle } from 'react-native'; 5 | export default class Message extends Component { 6 | constructor () { 7 | super() 8 | this.state = { 9 | // dataList: [], 10 | isactive: 0 11 | } 12 | } 13 | render () { 14 | // const actives = this.state.isactive === index ? styles.active : '' 15 | return ( 16 | 17 | 消息 18 | 19 | ) 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /src/views/Publish/index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | // import { getALl } from '../../config/api' 3 | // import axios from 'axios' 4 | import {Platform, StyleSheet, ScrollView, TouchableOpacity, Text, View, TextInput, Image, Button } from 'react-native'; 5 | // let { width } = Dimensions.get("window"); 6 | import RNPickerSelect from 'react-native-picker-select'; 7 | 8 | // console.log(width); 9 | export default class Publish extends Component { 10 | constructor () { 11 | super() 12 | this.state = { 13 | numbers: [ 14 | { 15 | label: '1', 16 | value: 1, 17 | color: 'orange', 18 | }, 19 | { 20 | label: '2', 21 | value: 2, 22 | color: 'green', 23 | }, 24 | ], 25 | favSport0: undefined, 26 | favSport1: undefined, 27 | favSport2: undefined, 28 | favSport3: undefined, 29 | favSport4: 'baseball', 30 | text: '', 31 | favNumber: undefined, 32 | }; 33 | 34 | this.inputRefs = { 35 | firstTextInput: null, 36 | favSport0: null, 37 | favSport1: null, 38 | lastTextInput: null, 39 | }; 40 | } 41 | static navigationOptions = ({ navigation }) => ({ 42 | headerTitle: '发布话题' 43 | }) 44 | onFocus=() => { 45 | const {onFocus} = this.props; 46 | onFocus && onFocus(); 47 | } 48 | render () { 49 | const placeholder = {} 50 | 51 | const sports = [ 52 | { 53 | label: '分享', 54 | value: 'share', 55 | }, 56 | { 57 | label: '问答', 58 | value: 'ask', 59 | }, 60 | { 61 | label: '招聘', 62 | value: 'job', 63 | }, 64 | { 65 | label: '测试', 66 | value: 'dev', 67 | }, 68 | ] 69 | return ( 70 | { Keyboard.dismiss(); }} > 71 | {/* */} 72 | 选择板块 73 | { 78 | this.setState({ 79 | favSport0: value, 80 | }); 81 | }} 82 | style={ pickerSelectStyles} 83 | value={this.state.favSport0} 84 | ref={(el) => { 85 | this.inputRefs.favSport0 = el; 86 | }} 87 | /> 88 | 89 | 标题 90 | this.setState({text})} 99 | value={this.state.text} /> 100 | {/* */} 101 | 102 | 103 | this.setState({text})} 109 | style={{ 110 | height: 200, 111 | paddingHorizontal: 10, 112 | fontSize: 16, 113 | color: '#rgba(0,0,0,.38)', 114 | textAlignVertical: 'top'}} 115 | multiline={true}> 116 | 117 | 118 | 120 | {/* */} 121 |