├── .babelrc ├── .buckconfig ├── .eslintrc ├── .flowconfig ├── .gitignore ├── .vscode ├── launchReactNative.js └── typings │ ├── react-native │ └── react-native.d.ts │ └── react │ ├── react-addons-create-fragment.d.ts │ ├── react-addons-css-transition-group.d.ts │ ├── react-addons-linked-state-mixin.d.ts │ ├── react-addons-perf.d.ts │ ├── react-addons-pure-render-mixin.d.ts │ ├── react-addons-test-utils.d.ts │ ├── react-addons-transition-group.d.ts │ ├── react-addons-update.d.ts │ ├── react-dom.d.ts │ ├── react-global.d.ts │ └── react.d.ts ├── .watchmanconfig ├── README.md ├── __tests__ ├── index.android.js └── index.ios.js ├── android ├── app │ ├── BUCK │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── fonts │ │ │ ├── Andale Mono.ttf │ │ │ ├── Arial Black.ttf │ │ │ ├── Arial.ttf │ │ │ ├── Comic Sans MS.ttf │ │ │ ├── Courier New.ttf │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Georgia.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Microsoft Sans Serif.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── Roboto.ttf │ │ │ ├── Roboto_medium.ttf │ │ │ ├── SF-UI-Text-Regular.otf │ │ │ ├── Skia.ttf │ │ │ ├── Times New Roman.ttf │ │ │ └── Zocial.ttf │ │ ├── java │ │ └── com │ │ │ └── react_native_boilerplate │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── keystores │ ├── BUCK │ └── debug.keystore.properties └── settings.gradle ├── assets └── icon2.png ├── index.android.js ├── index.ios.js ├── ios ├── react_native_boilerplate.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── react_native_boilerplate.xcscheme ├── react_native_boilerplate │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m └── react_native_boilerplateTests │ ├── Info.plist │ └── react_native_boilerplateTests.m ├── package.json ├── src ├── AppNavigator.js ├── Root.js ├── actions │ ├── drawer.js │ └── route.js ├── components │ ├── Home.js │ ├── SideBar.js │ └── loaders │ │ ├── ProgressBar.android.js │ │ ├── ProgressBar.ios.js │ │ ├── Spinner.android.js │ │ └── Spinner.ios.js ├── constants │ └── index.js ├── containers │ ├── App.js │ └── index.js ├── middleware │ └── api.js ├── reducers │ ├── drawer.js │ ├── index.js │ ├── route.js │ └── test.js ├── store │ └── configureStore.js ├── themes │ └── base-theme.js └── utils.js └── tsconfig.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb", 3 | "parser": "babel-eslint", 4 | "rules": { 5 | "comma-dangle": 0, 6 | "global-require": 0, 7 | "no-param-reassign": 0, 8 | "new-cap": 0, 9 | "no-eval": 0 10 | }, 11 | "plugins": [ 12 | "react", 13 | "react-native" 14 | ], 15 | "globals": { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*[.]android.js 5 | 6 | # Ignore templates with `@flow` in header 7 | .*/local-cli/generator.* 8 | 9 | # Ignore malformed json 10 | .*/node_modules/y18n/test/.*\.json 11 | 12 | # Ignore the website subdir 13 | /website/.* 14 | 15 | # Ignore BUCK generated dirs 16 | /\.buckd/ 17 | 18 | # Ignore unexpected extra @providesModule 19 | .*/node_modules/commoner/test/source/widget/share.js 20 | 21 | # Ignore duplicate module providers 22 | # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root 23 | .*/Libraries/react-native/React.js 24 | .*/Libraries/react-native/ReactNative.js 25 | .*/node_modules/jest-runtime/build/__tests__/.* 26 | 27 | [include] 28 | 29 | [libs] 30 | node_modules/react-native/Libraries/react-native/react-native-interface.js 31 | node_modules/react-native/flow 32 | flow/ 33 | 34 | [options] 35 | module.system=haste 36 | 37 | esproposal.class_static_fields=enable 38 | esproposal.class_instance_fields=enable 39 | 40 | experimental.strict_type_args=true 41 | 42 | munge_underscores=true 43 | 44 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 45 | 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' 46 | 47 | suppress_type=$FlowIssue 48 | suppress_type=$FlowFixMe 49 | suppress_type=$FixMe 50 | 51 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 52 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-3]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 53 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 54 | 55 | unsafe.enable_getters_and_setters=true 56 | 57 | [version] 58 | ^0.33.0 59 | -------------------------------------------------------------------------------- /.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/IJ 26 | # 27 | *.iml 28 | .idea 29 | .gradle 30 | local.properties 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | 37 | # BUCK 38 | buck-out/ 39 | \.buckd/ 40 | android/app/libs 41 | android/keystores/debug.keystore 42 | -------------------------------------------------------------------------------- /.vscode/launchReactNative.js: -------------------------------------------------------------------------------- 1 | // This file is automatically generated by vscode-react-native@0.2.0 2 | // Please do not modify it manually. All changes will be lost. 3 | try { 4 | var path = require("path"); 5 | var Launcher = require("/Users/zhengxinqi/.vscode/extensions/vsmobile.vscode-react-native-0.2.0/out/debugger/launcher.js").Launcher; 6 | new Launcher(path.resolve(__dirname, "..")).launch(); 7 | } catch (e) { 8 | throw new Error("Unable to launch application. Try deleting .vscode/launchReactNative.js and restarting vscode."); 9 | } -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-create-fragment.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-create-fragment) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | namespace __Addons { 10 | export function createFragment(object: { [key: string]: ReactNode }): ReactFragment; 11 | } 12 | } 13 | 14 | declare module "react-addons-create-fragment" { 15 | export = __React.__Addons.createFragment; 16 | } 17 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-css-transition-group.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-css-transition-group) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | /// 8 | 9 | declare namespace __React { 10 | interface CSSTransitionGroupTransitionName { 11 | enter: string; 12 | enterActive?: string; 13 | leave: string; 14 | leaveActive?: string; 15 | appear?: string; 16 | appearActive?: string; 17 | } 18 | 19 | interface CSSTransitionGroupProps extends TransitionGroupProps { 20 | transitionName: string | CSSTransitionGroupTransitionName; 21 | transitionAppear?: boolean; 22 | transitionAppearTimeout?: number; 23 | transitionEnter?: boolean; 24 | transitionEnterTimeout?: number; 25 | transitionLeave?: boolean; 26 | transitionLeaveTimeout?: number; 27 | } 28 | 29 | type CSSTransitionGroup = ComponentClass; 30 | 31 | namespace __Addons { 32 | export var CSSTransitionGroup: __React.CSSTransitionGroup; 33 | } 34 | } 35 | 36 | declare module "react-addons-css-transition-group" { 37 | var CSSTransitionGroup: __React.CSSTransitionGroup; 38 | type CSSTransitionGroup = __React.CSSTransitionGroup; 39 | export = CSSTransitionGroup; 40 | } 41 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-linked-state-mixin.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-linked-state-mixin) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | interface ReactLink { 10 | value: T; 11 | requestChange(newValue: T): void; 12 | } 13 | 14 | interface LinkedStateMixin extends Mixin { 15 | linkState(key: string): ReactLink; 16 | } 17 | 18 | interface HTMLAttributes { 19 | checkedLink?: ReactLink; 20 | valueLink?: ReactLink; 21 | } 22 | 23 | namespace __Addons { 24 | export var LinkedStateMixin: LinkedStateMixin; 25 | } 26 | } 27 | 28 | declare module "react-addons-linked-state-mixin" { 29 | var LinkedStateMixin: __React.LinkedStateMixin; 30 | type LinkedStateMixin = __React.LinkedStateMixin; 31 | export = LinkedStateMixin; 32 | } 33 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-perf.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-perf) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | interface ComponentPerfContext { 10 | current: string; 11 | owner: string; 12 | } 13 | 14 | interface NumericPerfContext { 15 | [key: string]: number; 16 | } 17 | 18 | interface Measurements { 19 | exclusive: NumericPerfContext; 20 | inclusive: NumericPerfContext; 21 | render: NumericPerfContext; 22 | counts: NumericPerfContext; 23 | writes: NumericPerfContext; 24 | displayNames: { 25 | [key: string]: ComponentPerfContext; 26 | }; 27 | totalTime: number; 28 | } 29 | 30 | namespace __Addons { 31 | namespace Perf { 32 | export function start(): void; 33 | export function stop(): void; 34 | export function printInclusive(measurements: Measurements[]): void; 35 | export function printExclusive(measurements: Measurements[]): void; 36 | export function printWasted(measurements: Measurements[]): void; 37 | export function printDOM(measurements: Measurements[]): void; 38 | export function getLastMeasurements(): Measurements[]; 39 | } 40 | } 41 | } 42 | 43 | declare module "react-addons-perf" { 44 | import Perf = __React.__Addons.Perf; 45 | export = Perf; 46 | } 47 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-pure-render-mixin.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-pure-render-mixin) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | interface PureRenderMixin extends Mixin {} 10 | 11 | namespace __Addons { 12 | export var PureRenderMixin: PureRenderMixin; 13 | } 14 | } 15 | 16 | declare module "react-addons-pure-render-mixin" { 17 | var PureRenderMixin: __React.PureRenderMixin; 18 | type PureRenderMixin = __React.PureRenderMixin; 19 | export = PureRenderMixin; 20 | } 21 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-test-utils.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-test-utils) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | interface SyntheticEventData { 10 | altKey?: boolean; 11 | button?: number; 12 | buttons?: number; 13 | clientX?: number; 14 | clientY?: number; 15 | changedTouches?: TouchList; 16 | charCode?: boolean; 17 | clipboardData?: DataTransfer; 18 | ctrlKey?: boolean; 19 | deltaMode?: number; 20 | deltaX?: number; 21 | deltaY?: number; 22 | deltaZ?: number; 23 | detail?: number; 24 | getModifierState?(key: string): boolean; 25 | key?: string; 26 | keyCode?: number; 27 | locale?: string; 28 | location?: number; 29 | metaKey?: boolean; 30 | pageX?: number; 31 | pageY?: number; 32 | relatedTarget?: EventTarget; 33 | repeat?: boolean; 34 | screenX?: number; 35 | screenY?: number; 36 | shiftKey?: boolean; 37 | targetTouches?: TouchList; 38 | touches?: TouchList; 39 | view?: AbstractView; 40 | which?: number; 41 | } 42 | 43 | interface EventSimulator { 44 | (element: Element, eventData?: SyntheticEventData): void; 45 | (component: Component, eventData?: SyntheticEventData): void; 46 | } 47 | 48 | interface MockedComponentClass { 49 | new(): any; 50 | } 51 | 52 | class ShallowRenderer { 53 | getRenderOutput>(): E; 54 | getRenderOutput(): ReactElement; 55 | render(element: ReactElement, context?: any): void; 56 | unmount(): void; 57 | } 58 | 59 | namespace __Addons { 60 | namespace TestUtils { 61 | namespace Simulate { 62 | export var blur: EventSimulator; 63 | export var change: EventSimulator; 64 | export var click: EventSimulator; 65 | export var cut: EventSimulator; 66 | export var doubleClick: EventSimulator; 67 | export var drag: EventSimulator; 68 | export var dragEnd: EventSimulator; 69 | export var dragEnter: EventSimulator; 70 | export var dragExit: EventSimulator; 71 | export var dragLeave: EventSimulator; 72 | export var dragOver: EventSimulator; 73 | export var dragStart: EventSimulator; 74 | export var drop: EventSimulator; 75 | export var focus: EventSimulator; 76 | export var input: EventSimulator; 77 | export var keyDown: EventSimulator; 78 | export var keyPress: EventSimulator; 79 | export var keyUp: EventSimulator; 80 | export var mouseDown: EventSimulator; 81 | export var mouseEnter: EventSimulator; 82 | export var mouseLeave: EventSimulator; 83 | export var mouseMove: EventSimulator; 84 | export var mouseOut: EventSimulator; 85 | export var mouseOver: EventSimulator; 86 | export var mouseUp: EventSimulator; 87 | export var paste: EventSimulator; 88 | export var scroll: EventSimulator; 89 | export var submit: EventSimulator; 90 | export var touchCancel: EventSimulator; 91 | export var touchEnd: EventSimulator; 92 | export var touchMove: EventSimulator; 93 | export var touchStart: EventSimulator; 94 | export var wheel: EventSimulator; 95 | } 96 | 97 | export function renderIntoDocument( 98 | element: DOMElement): Element; 99 | export function renderIntoDocument

( 100 | element: ReactElement

): Component; 101 | export function renderIntoDocument>( 102 | element: ReactElement): C; 103 | 104 | export function mockComponent( 105 | mocked: MockedComponentClass, mockTagName?: string): typeof TestUtils; 106 | 107 | export function isElementOfType( 108 | element: ReactElement, type: ReactType): boolean; 109 | export function isDOMComponent(instance: ReactInstance): boolean; 110 | export function isCompositeComponent(instance: ReactInstance): boolean; 111 | export function isCompositeComponentWithType( 112 | instance: ReactInstance, 113 | type: ComponentClass): boolean; 114 | 115 | export function findAllInRenderedTree( 116 | root: Component, 117 | fn: (i: ReactInstance) => boolean): ReactInstance[]; 118 | 119 | export function scryRenderedDOMComponentsWithClass( 120 | root: Component, 121 | className: string): Element[]; 122 | export function findRenderedDOMComponentWithClass( 123 | root: Component, 124 | className: string): Element; 125 | 126 | export function scryRenderedDOMComponentsWithTag( 127 | root: Component, 128 | tagName: string): Element[]; 129 | export function findRenderedDOMComponentWithTag( 130 | root: Component, 131 | tagName: string): Element; 132 | 133 | export function scryRenderedComponentsWithType

( 134 | root: Component, 135 | type: ComponentClass

): Component[]; 136 | export function scryRenderedComponentsWithType>( 137 | root: Component, 138 | type: ComponentClass): C[]; 139 | 140 | export function findRenderedComponentWithType

( 141 | root: Component, 142 | type: ComponentClass

): Component; 143 | export function findRenderedComponentWithType>( 144 | root: Component, 145 | type: ComponentClass): C; 146 | 147 | export function createRenderer(): ShallowRenderer; 148 | } 149 | } 150 | } 151 | 152 | declare module "react-addons-test-utils" { 153 | import TestUtils = __React.__Addons.TestUtils; 154 | export = TestUtils; 155 | } 156 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-transition-group.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-transition-group) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | 10 | interface TransitionGroupProps { 11 | component?: ReactType; 12 | childFactory?: (child: ReactElement) => ReactElement; 13 | } 14 | 15 | type TransitionGroup = ComponentClass; 16 | 17 | namespace __Addons { 18 | export var TransitionGroup: __React.TransitionGroup; 19 | } 20 | } 21 | 22 | declare module "react-addons-transition-group" { 23 | var TransitionGroup: __React.TransitionGroup; 24 | type TransitionGroup = __React.TransitionGroup; 25 | export = TransitionGroup; 26 | } 27 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-addons-update.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-addons-update) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | interface UpdateSpecCommand { 10 | $set?: any; 11 | $merge?: {}; 12 | $apply?(value: any): any; 13 | } 14 | 15 | interface UpdateSpecPath { 16 | [key: string]: UpdateSpec; 17 | } 18 | 19 | type UpdateSpec = UpdateSpecCommand | UpdateSpecPath; 20 | 21 | interface UpdateArraySpec extends UpdateSpecCommand { 22 | $push?: any[]; 23 | $unshift?: any[]; 24 | $splice?: any[][]; 25 | } 26 | 27 | namespace __Addons { 28 | export function update(value: any[], spec: UpdateArraySpec): any[]; 29 | export function update(value: {}, spec: UpdateSpec): any; 30 | } 31 | } 32 | 33 | declare module "react-addons-update" { 34 | export = __React.__Addons.update; 35 | } 36 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-dom.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (react-dom) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | 8 | declare namespace __React { 9 | namespace __DOM { 10 | function findDOMNode(instance: ReactInstance): E; 11 | function findDOMNode(instance: ReactInstance): Element; 12 | 13 | function render

( 14 | element: DOMElement

, 15 | container: Element, 16 | callback?: (element: Element) => any): Element; 17 | function render( 18 | element: ClassicElement

, 19 | container: Element, 20 | callback?: (component: ClassicComponent) => any): ClassicComponent; 21 | function render( 22 | element: ReactElement

, 23 | container: Element, 24 | callback?: (component: Component) => any): Component; 25 | 26 | function unmountComponentAtNode(container: Element): boolean; 27 | 28 | var version: string; 29 | 30 | function unstable_batchedUpdates(callback: (a: A, b: B) => any, a: A, b: B): void; 31 | function unstable_batchedUpdates(callback: (a: A) => any, a: A): void; 32 | function unstable_batchedUpdates(callback: () => any): void; 33 | 34 | function unstable_renderSubtreeIntoContainer

( 35 | parentComponent: Component, 36 | nextElement: DOMElement

, 37 | container: Element, 38 | callback?: (element: Element) => any): Element; 39 | function unstable_renderSubtreeIntoContainer( 40 | parentComponent: Component, 41 | nextElement: ClassicElement

, 42 | container: Element, 43 | callback?: (component: ClassicComponent) => any): ClassicComponent; 44 | function unstable_renderSubtreeIntoContainer( 45 | parentComponent: Component, 46 | nextElement: ReactElement

, 47 | container: Element, 48 | callback?: (component: Component) => any): Component; 49 | } 50 | 51 | namespace __DOMServer { 52 | function renderToString(element: ReactElement): string; 53 | function renderToStaticMarkup(element: ReactElement): string; 54 | var version: string; 55 | } 56 | } 57 | 58 | declare module "react-dom" { 59 | import DOM = __React.__DOM; 60 | export = DOM; 61 | } 62 | 63 | declare module "react-dom/server" { 64 | import DOMServer = __React.__DOMServer; 65 | export = DOMServer; 66 | } 67 | -------------------------------------------------------------------------------- /.vscode/typings/react/react-global.d.ts: -------------------------------------------------------------------------------- 1 | // Type definitions for React v0.14 (namespace) 2 | // Project: http://facebook.github.io/react/ 3 | // Definitions by: Asana , AssureSign , Microsoft 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped 5 | 6 | /// 7 | /// 8 | /// 9 | /// 10 | /// 11 | /// 12 | /// 13 | /// 14 | /// 15 | /// 16 | 17 | import React = __React; 18 | import ReactDOM = __React.__DOM; 19 | 20 | declare namespace __React { 21 | export import addons = __React.__Addons; 22 | } 23 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## React Native Boilerplate 2 | 3 | - add justs and airbnb enzyme as tests 4 | - use NativeBase 5 | - use React Native CodePush 6 | - use redux 7 | - use React Native Calendar Picker 8 | 9 | ## how to use 10 | 11 | - use yo react-native 12 | -------------------------------------------------------------------------------- /__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # To learn about Buck see [Docs](https://buckbuild.com/). 4 | # To run your application with Buck: 5 | # - install Buck 6 | # - `npm start` - to start the packager 7 | # - `cd android` 8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 10 | # - `buck install -r android/app` - compile, install and run application 11 | # 12 | 13 | lib_deps = [] 14 | for jarfile in glob(['libs/*.jar']): 15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile) 16 | lib_deps.append(':' + name) 17 | prebuilt_jar( 18 | name = name, 19 | binary_jar = jarfile, 20 | ) 21 | 22 | for aarfile in glob(['libs/*.aar']): 23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile) 24 | lib_deps.append(':' + name) 25 | android_prebuilt_aar( 26 | name = name, 27 | aar = aarfile, 28 | ) 29 | 30 | android_library( 31 | name = 'all-libs', 32 | exported_deps = lib_deps 33 | ) 34 | 35 | android_library( 36 | name = 'app-code', 37 | srcs = glob([ 38 | 'src/main/java/**/*.java', 39 | ]), 40 | deps = [ 41 | ':all-libs', 42 | ':build_config', 43 | ':res', 44 | ], 45 | ) 46 | 47 | android_build_config( 48 | name = 'build_config', 49 | package = 'com.react_native_boilerplate', 50 | ) 51 | 52 | android_resource( 53 | name = 'res', 54 | res = 'src/main/res', 55 | package = 'com.react_native_boilerplate', 56 | ) 57 | 58 | android_binary( 59 | name = 'app', 60 | package_type = 'debug', 61 | manifest = 'src/main/AndroidManifest.xml', 62 | keystore = '//android/keystores:debug', 63 | deps = [ 64 | ':app-code', 65 | ], 66 | ) 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | apply from: "../../node_modules/react-native-code-push/android/codepush.gradle" 70 | 71 | /** 72 | * Set this to true to create two separate APKs instead of one: 73 | * - An APK that only works on ARM devices 74 | * - An APK that only works on x86 devices 75 | * The advantage is the size of the APK is reduced by about 4MB. 76 | * Upload all the APKs to the Play Store and people will download 77 | * the correct one based on the CPU architecture of their device. 78 | */ 79 | def enableSeparateBuildPerCPUArchitecture = false 80 | 81 | /** 82 | * Run Proguard to shrink the Java bytecode in release builds. 83 | */ 84 | def enableProguardInReleaseBuilds = false 85 | 86 | android { 87 | compileSdkVersion 23 88 | buildToolsVersion "23.0.1" 89 | 90 | defaultConfig { 91 | applicationId "com.react_native_boilerplate" 92 | minSdkVersion 16 93 | targetSdkVersion 22 94 | versionCode 1 95 | versionName "1.0" 96 | ndk { 97 | abiFilters "armeabi-v7a", "x86" 98 | } 99 | } 100 | splits { 101 | abi { 102 | reset() 103 | enable enableSeparateBuildPerCPUArchitecture 104 | universalApk false // If true, also generate a universal APK 105 | include "armeabi-v7a", "x86" 106 | } 107 | } 108 | buildTypes { 109 | release { 110 | minifyEnabled enableProguardInReleaseBuilds 111 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 112 | } 113 | } 114 | // applicationVariants are e.g. debug, release 115 | applicationVariants.all { variant -> 116 | variant.outputs.each { output -> 117 | // For each separate APK per architecture, set a unique version code as described here: 118 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 119 | def versionCodes = ["armeabi-v7a":1, "x86":2] 120 | def abi = output.getFilter(OutputFile.ABI) 121 | if (abi != null) { // null for the universal-debug, universal-release variants 122 | output.versionCodeOverride = 123 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 124 | } 125 | } 126 | } 127 | } 128 | 129 | dependencies { 130 | compile project(':react-native-vector-icons') 131 | compile project(':react-native-code-push') 132 | compile fileTree(dir: "libs", include: ["*.jar"]) 133 | compile "com.android.support:appcompat-v7:23.0.1" 134 | compile "com.facebook.react:react-native:+" // From node_modules 135 | } 136 | 137 | // Run this once to be able to run the application with BUCK 138 | // puts all compile dependencies into folder libs for BUCK to use 139 | task copyDownloadableDepsToLibs(type: Copy) { 140 | from configurations.compile 141 | into 'libs' 142 | } 143 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Andale Mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Andale Mono.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Arial Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Arial Black.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Arial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Arial.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Comic Sans MS.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Comic Sans MS.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Courier New.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Courier New.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Georgia.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Georgia.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Microsoft Sans Serif.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Microsoft Sans Serif.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Roboto.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Roboto.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Roboto_medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Roboto_medium.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SF-UI-Text-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/SF-UI-Text-Regular.otf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Skia.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Skia.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Times New Roman.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Times New Roman.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/react_native_boilerplate/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.react_native_boilerplate; 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 "react_native_boilerplate"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/react_native_boilerplate/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.react_native_boilerplate; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.ReactApplication; 7 | import com.oblador.vectoricons.VectorIconsPackage; 8 | import com.microsoft.codepush.react.CodePush; 9 | import com.facebook.react.ReactInstanceManager; 10 | import com.facebook.react.ReactNativeHost; 11 | import com.facebook.react.ReactPackage; 12 | import com.facebook.react.shell.MainReactPackage; 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 | 21 | @Override 22 | protected String getJSBundleFile() { 23 | return CodePush.getJSBundleFile(); 24 | } 25 | 26 | @Override 27 | protected boolean getUseDeveloperSupport() { 28 | return BuildConfig.DEBUG; 29 | } 30 | 31 | @Override 32 | protected List getPackages() { 33 | return Arrays.asList( 34 | new MainReactPackage(), 35 | new VectorIconsPackage(), 36 | new CodePush(null, getApplicationContext(), BuildConfig.DEBUG) 37 | ); 38 | } 39 | }; 40 | 41 | @Override 42 | public ReactNativeHost getReactNativeHost() { 43 | return mReactNativeHost; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | react_native_boilerplate 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/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-2.4-all.zip 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = 'debug', 3 | store = 'debug.keystore', 4 | properties = 'debug.keystore.properties', 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 = 'react_native_boilerplate' 2 | 3 | include ':app' 4 | include ':react-native-vector-icons' 5 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') 6 | include ':react-native-code-push' 7 | project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app') 8 | -------------------------------------------------------------------------------- /assets/icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blizzardzheng/react-native-boilerplate/ab018cd86bcf918a1f4c113290abc9db3dff3bb0/assets/icon2.png -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View 13 | } from 'react-native'; 14 | 15 | export default class react_native_boilerplate extends Component { 16 | render() { 17 | return ( 18 | 19 | 20 | Welcome to React Native! 21 | 22 | 23 | To get started, edit index.android.js 24 | 25 | 26 | Double tap R on your keyboard to reload,{'\n'} 27 | Shake or press menu button for dev menu 28 | 29 | 30 | ); 31 | } 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | container: { 36 | flex: 1, 37 | justifyContent: 'center', 38 | alignItems: 'center', 39 | backgroundColor: '#F5FCFF', 40 | }, 41 | welcome: { 42 | fontSize: 20, 43 | textAlign: 'center', 44 | margin: 10, 45 | }, 46 | instructions: { 47 | textAlign: 'center', 48 | color: '#333333', 49 | marginBottom: 5, 50 | }, 51 | }); 52 | 53 | AppRegistry.registerComponent('react_native_boilerplate', () => react_native_boilerplate); 54 | -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import { AppRegistry } from 'react-native'; 2 | 3 | import root from './src/Root'; 4 | 5 | 6 | AppRegistry.registerComponent('react_native_boilerplate', root); 7 | -------------------------------------------------------------------------------- /ios/react_native_boilerplate.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 /* react_native_boilerplateTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* react_native_boilerplateTests.m */; }; 16 | 02EE4963F45F468A9993D0E0 /* libCodePush.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4192E707F2EA404CA97482DC /* libCodePush.a */; }; 17 | 0C77BABDE5F54DACA817BD15 /* Skia.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1479AC0A803C4F4AB2AF1B99 /* Skia.ttf */; }; 18 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 19 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 20 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 21 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 22 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 23 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 24 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 25 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 27 | 189648BAD3EE4FB88DD713F3 /* SF-UI-Text-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 41F548D20BA54B96A07484F9 /* SF-UI-Text-Regular.otf */; }; 28 | 1FAD06B0ECE24C95964DCE50 /* Courier New.ttf in Resources */ = {isa = PBXBuildFile; fileRef = ACBD96E19649450BABEBA74F /* Courier New.ttf */; }; 29 | 2D305EB423F04EBF8C67516A /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 933E8AA55DE84ADD93532F38 /* Ionicons.ttf */; }; 30 | 2FA4D11125FB4C23BB62E0F4 /* Roboto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 145F8FCBC99F4111BAB1308A /* Roboto.ttf */; }; 31 | 66AA9DD534634964B6F2DD0A /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 48330C215E8E40339DFAF838 /* MaterialIcons.ttf */; }; 32 | 732D03C8CCDA48E5A085090B /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 63791D2DF4254AA6B854107F /* FontAwesome.ttf */; }; 33 | 7E4C13693D5D42ABB3442AA5 /* Microsoft Sans Serif.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 01EE4D9BF515437DA1F6CD85 /* Microsoft Sans Serif.ttf */; }; 34 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 35 | 8F3C3CD137A2464AAE402E12 /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 65987E7AD9804C0EA63D1B1D /* libRNVectorIcons.a */; }; 36 | 91BF28E915BB421589C747F1 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E30B76209B74113AAD4034A /* libz.tbd */; }; 37 | 97909EA7DEE5433C8DE53A52 /* Georgia.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BBD8C747A38C40C8A645F070 /* Georgia.ttf */; }; 38 | 9DBEE3FECAEA4350A793BBF7 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 41355CD501AE47C4B75EB62D /* Entypo.ttf */; }; 39 | A3FE3947F7D8485DB51A8414 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 2F05A12BFC4541EFB2047C2C /* Zocial.ttf */; }; 40 | A7F6D34EA23E4C2D870C8F1A /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B648B45CC7114D4F8FEF6607 /* Foundation.ttf */; }; 41 | A8A33FA39C294DD49614E63C /* Andale Mono.ttf in Resources */ = {isa = PBXBuildFile; fileRef = DAAEF60DE2D2454390413452 /* Andale Mono.ttf */; }; 42 | BA9FD72D94BF4A69854FE0F0 /* Times New Roman.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 12B3AA5644B546C4B05EFB29 /* Times New Roman.ttf */; }; 43 | C0B5ABAFD77B443B899AA622 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6EDCE39FEE424B50A3B09844 /* Octicons.ttf */; }; 44 | DAF70392F3FC498B9B233652 /* Arial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FB24870C84914C3988A5D95B /* Arial.ttf */; }; 45 | DFC66667A3884FF6AE45143B /* Comic Sans MS.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 16D66ED5F44F43389AC411F6 /* Comic Sans MS.ttf */; }; 46 | F1E8B5EEB5204F8F98054947 /* Arial Black.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0F242E84E78D4957A9348A34 /* Arial Black.ttf */; }; 47 | F6E0897F2D9745DE8FD8F9B0 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 64E3F0CBD30D44C5A92EE118 /* EvilIcons.ttf */; }; 48 | F8DE57951F344FF1AD7FF0CB /* Roboto_medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1E0C048A402B427A961386DE /* Roboto_medium.ttf */; }; 49 | /* End PBXBuildFile section */ 50 | 51 | /* Begin PBXContainerItemProxy section */ 52 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 53 | isa = PBXContainerItemProxy; 54 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 55 | proxyType = 2; 56 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 57 | remoteInfo = RCTActionSheet; 58 | }; 59 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 60 | isa = PBXContainerItemProxy; 61 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 62 | proxyType = 2; 63 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 64 | remoteInfo = RCTGeolocation; 65 | }; 66 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 67 | isa = PBXContainerItemProxy; 68 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 69 | proxyType = 2; 70 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 71 | remoteInfo = RCTImage; 72 | }; 73 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 74 | isa = PBXContainerItemProxy; 75 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 76 | proxyType = 2; 77 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 78 | remoteInfo = RCTNetwork; 79 | }; 80 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 81 | isa = PBXContainerItemProxy; 82 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 83 | proxyType = 2; 84 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 85 | remoteInfo = RCTVibration; 86 | }; 87 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 88 | isa = PBXContainerItemProxy; 89 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 90 | proxyType = 1; 91 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 92 | remoteInfo = react_native_boilerplate; 93 | }; 94 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 95 | isa = PBXContainerItemProxy; 96 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 97 | proxyType = 2; 98 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 99 | remoteInfo = RCTSettings; 100 | }; 101 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 102 | isa = PBXContainerItemProxy; 103 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 104 | proxyType = 2; 105 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 106 | remoteInfo = RCTWebSocket; 107 | }; 108 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 109 | isa = PBXContainerItemProxy; 110 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 111 | proxyType = 2; 112 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 113 | remoteInfo = React; 114 | }; 115 | 5AEA67D81DD5990300390D03 /* PBXContainerItemProxy */ = { 116 | isa = PBXContainerItemProxy; 117 | containerPortal = D971D7FFD34C48ED898678F1 /* CodePush.xcodeproj */; 118 | proxyType = 2; 119 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 120 | remoteInfo = CodePush; 121 | }; 122 | 5AEA67DE1DD5990300390D03 /* PBXContainerItemProxy */ = { 123 | isa = PBXContainerItemProxy; 124 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 125 | proxyType = 2; 126 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 127 | remoteInfo = "RCTImage-tvOS"; 128 | }; 129 | 5AEA67E21DD5990300390D03 /* PBXContainerItemProxy */ = { 130 | isa = PBXContainerItemProxy; 131 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 132 | proxyType = 2; 133 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 134 | remoteInfo = "RCTLinking-tvOS"; 135 | }; 136 | 5AEA67E61DD5990300390D03 /* PBXContainerItemProxy */ = { 137 | isa = PBXContainerItemProxy; 138 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 139 | proxyType = 2; 140 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 141 | remoteInfo = "RCTNetwork-tvOS"; 142 | }; 143 | 5AEA67EA1DD5990300390D03 /* PBXContainerItemProxy */ = { 144 | isa = PBXContainerItemProxy; 145 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 146 | proxyType = 2; 147 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 148 | remoteInfo = "RCTSettings-tvOS"; 149 | }; 150 | 5AEA67EE1DD5990300390D03 /* PBXContainerItemProxy */ = { 151 | isa = PBXContainerItemProxy; 152 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 153 | proxyType = 2; 154 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 155 | remoteInfo = "RCTText-tvOS"; 156 | }; 157 | 5AEA67F31DD5990300390D03 /* PBXContainerItemProxy */ = { 158 | isa = PBXContainerItemProxy; 159 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 160 | proxyType = 2; 161 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 162 | remoteInfo = "RCTWebSocket-tvOS"; 163 | }; 164 | 5AEA67F71DD5990300390D03 /* PBXContainerItemProxy */ = { 165 | isa = PBXContainerItemProxy; 166 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 167 | proxyType = 2; 168 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 169 | remoteInfo = "React-tvOS"; 170 | }; 171 | 5AEA68191DD59A4600390D03 /* PBXContainerItemProxy */ = { 172 | isa = PBXContainerItemProxy; 173 | containerPortal = 02F1B0C180C24DCFAC75F58C /* RNVectorIcons.xcodeproj */; 174 | proxyType = 2; 175 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395; 176 | remoteInfo = RNVectorIcons; 177 | }; 178 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 179 | isa = PBXContainerItemProxy; 180 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 181 | proxyType = 2; 182 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 183 | remoteInfo = RCTLinking; 184 | }; 185 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 186 | isa = PBXContainerItemProxy; 187 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 188 | proxyType = 2; 189 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 190 | remoteInfo = RCTText; 191 | }; 192 | /* End PBXContainerItemProxy section */ 193 | 194 | /* Begin PBXFileReference section */ 195 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 196 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 197 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 198 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 199 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 200 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 201 | 00E356EE1AD99517003FC87E /* react_native_boilerplateTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = react_native_boilerplateTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 202 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 203 | 00E356F21AD99517003FC87E /* react_native_boilerplateTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = react_native_boilerplateTests.m; sourceTree = ""; }; 204 | 01EE4D9BF515437DA1F6CD85 /* Microsoft Sans Serif.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Microsoft Sans Serif.ttf"; path = "../node_modules/native-base/Fonts/Microsoft Sans Serif.ttf"; sourceTree = ""; }; 205 | 02F1B0C180C24DCFAC75F58C /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; }; 206 | 0F242E84E78D4957A9348A34 /* Arial Black.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Arial Black.ttf"; path = "../node_modules/native-base/Fonts/Arial Black.ttf"; sourceTree = ""; }; 207 | 12B3AA5644B546C4B05EFB29 /* Times New Roman.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Times New Roman.ttf"; path = "../node_modules/native-base/Fonts/Times New Roman.ttf"; sourceTree = ""; }; 208 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 209 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 210 | 13B07F961A680F5B00A75B9A /* react_native_boilerplate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = react_native_boilerplate.app; sourceTree = BUILT_PRODUCTS_DIR; }; 211 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = react_native_boilerplate/AppDelegate.h; sourceTree = ""; }; 212 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = react_native_boilerplate/AppDelegate.m; sourceTree = ""; }; 213 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 214 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = react_native_boilerplate/Images.xcassets; sourceTree = ""; }; 215 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = react_native_boilerplate/Info.plist; sourceTree = ""; }; 216 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = react_native_boilerplate/main.m; sourceTree = ""; }; 217 | 145F8FCBC99F4111BAB1308A /* Roboto.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Roboto.ttf; path = "../node_modules/native-base/Fonts/Roboto.ttf"; sourceTree = ""; }; 218 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 219 | 1479AC0A803C4F4AB2AF1B99 /* Skia.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Skia.ttf; path = "../node_modules/native-base/Fonts/Skia.ttf"; sourceTree = ""; }; 220 | 16D66ED5F44F43389AC411F6 /* Comic Sans MS.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Comic Sans MS.ttf"; path = "../node_modules/native-base/Fonts/Comic Sans MS.ttf"; sourceTree = ""; }; 221 | 1E0C048A402B427A961386DE /* Roboto_medium.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Roboto_medium.ttf; path = "../node_modules/native-base/Fonts/Roboto_medium.ttf"; sourceTree = ""; }; 222 | 2F05A12BFC4541EFB2047C2C /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; }; 223 | 41355CD501AE47C4B75EB62D /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; }; 224 | 4192E707F2EA404CA97482DC /* libCodePush.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libCodePush.a; sourceTree = ""; }; 225 | 41F548D20BA54B96A07484F9 /* SF-UI-Text-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "SF-UI-Text-Regular.otf"; path = "../node_modules/native-base/Fonts/SF-UI-Text-Regular.otf"; sourceTree = ""; }; 226 | 48330C215E8E40339DFAF838 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; }; 227 | 63791D2DF4254AA6B854107F /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; }; 228 | 64E3F0CBD30D44C5A92EE118 /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; }; 229 | 65987E7AD9804C0EA63D1B1D /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; }; 230 | 6EDCE39FEE424B50A3B09844 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; }; 231 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 232 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 233 | 933E8AA55DE84ADD93532F38 /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; }; 234 | 9E30B76209B74113AAD4034A /* libz.tbd */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; 235 | ACBD96E19649450BABEBA74F /* Courier New.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Courier New.ttf"; path = "../node_modules/native-base/Fonts/Courier New.ttf"; sourceTree = ""; }; 236 | B648B45CC7114D4F8FEF6607 /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; }; 237 | BBD8C747A38C40C8A645F070 /* Georgia.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Georgia.ttf; path = "../node_modules/native-base/Fonts/Georgia.ttf"; sourceTree = ""; }; 238 | D971D7FFD34C48ED898678F1 /* CodePush.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = CodePush.xcodeproj; path = "../node_modules/react-native-code-push/ios/CodePush.xcodeproj"; sourceTree = ""; }; 239 | DAAEF60DE2D2454390413452 /* Andale Mono.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Andale Mono.ttf"; path = "../node_modules/native-base/Fonts/Andale Mono.ttf"; sourceTree = ""; }; 240 | FB24870C84914C3988A5D95B /* Arial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Arial.ttf; path = "../node_modules/native-base/Fonts/Arial.ttf"; sourceTree = ""; }; 241 | /* End PBXFileReference section */ 242 | 243 | /* Begin PBXFrameworksBuildPhase section */ 244 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 245 | isa = PBXFrameworksBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 253 | isa = PBXFrameworksBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 257 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 258 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 259 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 260 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 261 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 262 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 263 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 264 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 265 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 266 | 02EE4963F45F468A9993D0E0 /* libCodePush.a in Frameworks */, 267 | 91BF28E915BB421589C747F1 /* libz.tbd in Frameworks */, 268 | 8F3C3CD137A2464AAE402E12 /* libRNVectorIcons.a in Frameworks */, 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | }; 272 | /* End PBXFrameworksBuildPhase section */ 273 | 274 | /* Begin PBXGroup section */ 275 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 276 | isa = PBXGroup; 277 | children = ( 278 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 279 | ); 280 | name = Products; 281 | sourceTree = ""; 282 | }; 283 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 284 | isa = PBXGroup; 285 | children = ( 286 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 287 | ); 288 | name = Products; 289 | sourceTree = ""; 290 | }; 291 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 292 | isa = PBXGroup; 293 | children = ( 294 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 295 | 5AEA67DF1DD5990300390D03 /* libRCTImage-tvOS.a */, 296 | ); 297 | name = Products; 298 | sourceTree = ""; 299 | }; 300 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 301 | isa = PBXGroup; 302 | children = ( 303 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 304 | 5AEA67E71DD5990300390D03 /* libRCTNetwork-tvOS.a */, 305 | ); 306 | name = Products; 307 | sourceTree = ""; 308 | }; 309 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 310 | isa = PBXGroup; 311 | children = ( 312 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 313 | ); 314 | name = Products; 315 | sourceTree = ""; 316 | }; 317 | 00E356EF1AD99517003FC87E /* react_native_boilerplateTests */ = { 318 | isa = PBXGroup; 319 | children = ( 320 | 00E356F21AD99517003FC87E /* react_native_boilerplateTests.m */, 321 | 00E356F01AD99517003FC87E /* Supporting Files */, 322 | ); 323 | path = react_native_boilerplateTests; 324 | sourceTree = ""; 325 | }; 326 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 327 | isa = PBXGroup; 328 | children = ( 329 | 00E356F11AD99517003FC87E /* Info.plist */, 330 | ); 331 | name = "Supporting Files"; 332 | sourceTree = ""; 333 | }; 334 | 139105B71AF99BAD00B5F7CC /* Products */ = { 335 | isa = PBXGroup; 336 | children = ( 337 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 338 | 5AEA67EB1DD5990300390D03 /* libRCTSettings-tvOS.a */, 339 | ); 340 | name = Products; 341 | sourceTree = ""; 342 | }; 343 | 139FDEE71B06529A00C62182 /* Products */ = { 344 | isa = PBXGroup; 345 | children = ( 346 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 347 | 5AEA67F41DD5990300390D03 /* libRCTWebSocket-tvOS.a */, 348 | ); 349 | name = Products; 350 | sourceTree = ""; 351 | }; 352 | 13B07FAE1A68108700A75B9A /* react_native_boilerplate */ = { 353 | isa = PBXGroup; 354 | children = ( 355 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 356 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 357 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 358 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 359 | 13B07FB61A68108700A75B9A /* Info.plist */, 360 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 361 | 13B07FB71A68108700A75B9A /* main.m */, 362 | ); 363 | name = react_native_boilerplate; 364 | sourceTree = ""; 365 | }; 366 | 146834001AC3E56700842450 /* Products */ = { 367 | isa = PBXGroup; 368 | children = ( 369 | 146834041AC3E56700842450 /* libReact.a */, 370 | 5AEA67F81DD5990300390D03 /* libReact-tvOS.a */, 371 | ); 372 | name = Products; 373 | sourceTree = ""; 374 | }; 375 | 1914CE59B62A4F44A5A5ECFE /* Frameworks */ = { 376 | isa = PBXGroup; 377 | children = ( 378 | 9E30B76209B74113AAD4034A /* libz.tbd */, 379 | ); 380 | name = Frameworks; 381 | sourceTree = ""; 382 | }; 383 | 5AEA67D51DD5990300390D03 /* Products */ = { 384 | isa = PBXGroup; 385 | children = ( 386 | 5AEA67D91DD5990300390D03 /* libCodePush.a */, 387 | ); 388 | name = Products; 389 | sourceTree = ""; 390 | }; 391 | 5AEA68041DD59A4600390D03 /* Products */ = { 392 | isa = PBXGroup; 393 | children = ( 394 | 5AEA681A1DD59A4600390D03 /* libRNVectorIcons.a */, 395 | ); 396 | name = Products; 397 | sourceTree = ""; 398 | }; 399 | 64206CCFB9A943D287EF6762 /* Resources */ = { 400 | isa = PBXGroup; 401 | children = ( 402 | DAAEF60DE2D2454390413452 /* Andale Mono.ttf */, 403 | 0F242E84E78D4957A9348A34 /* Arial Black.ttf */, 404 | FB24870C84914C3988A5D95B /* Arial.ttf */, 405 | 16D66ED5F44F43389AC411F6 /* Comic Sans MS.ttf */, 406 | ACBD96E19649450BABEBA74F /* Courier New.ttf */, 407 | BBD8C747A38C40C8A645F070 /* Georgia.ttf */, 408 | 01EE4D9BF515437DA1F6CD85 /* Microsoft Sans Serif.ttf */, 409 | 1E0C048A402B427A961386DE /* Roboto_medium.ttf */, 410 | 145F8FCBC99F4111BAB1308A /* Roboto.ttf */, 411 | 41F548D20BA54B96A07484F9 /* SF-UI-Text-Regular.otf */, 412 | 1479AC0A803C4F4AB2AF1B99 /* Skia.ttf */, 413 | 12B3AA5644B546C4B05EFB29 /* Times New Roman.ttf */, 414 | 41355CD501AE47C4B75EB62D /* Entypo.ttf */, 415 | 64E3F0CBD30D44C5A92EE118 /* EvilIcons.ttf */, 416 | 63791D2DF4254AA6B854107F /* FontAwesome.ttf */, 417 | B648B45CC7114D4F8FEF6607 /* Foundation.ttf */, 418 | 933E8AA55DE84ADD93532F38 /* Ionicons.ttf */, 419 | 48330C215E8E40339DFAF838 /* MaterialIcons.ttf */, 420 | 6EDCE39FEE424B50A3B09844 /* Octicons.ttf */, 421 | 2F05A12BFC4541EFB2047C2C /* Zocial.ttf */, 422 | ); 423 | name = Resources; 424 | sourceTree = ""; 425 | }; 426 | 78C398B11ACF4ADC00677621 /* Products */ = { 427 | isa = PBXGroup; 428 | children = ( 429 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 430 | 5AEA67E31DD5990300390D03 /* libRCTLinking-tvOS.a */, 431 | ); 432 | name = Products; 433 | sourceTree = ""; 434 | }; 435 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 436 | isa = PBXGroup; 437 | children = ( 438 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 439 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 440 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 441 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 442 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 443 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 444 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 445 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 446 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 447 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 448 | D971D7FFD34C48ED898678F1 /* CodePush.xcodeproj */, 449 | 02F1B0C180C24DCFAC75F58C /* RNVectorIcons.xcodeproj */, 450 | ); 451 | name = Libraries; 452 | sourceTree = ""; 453 | }; 454 | 832341B11AAA6A8300B99B32 /* Products */ = { 455 | isa = PBXGroup; 456 | children = ( 457 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 458 | 5AEA67EF1DD5990300390D03 /* libRCTText-tvOS.a */, 459 | ); 460 | name = Products; 461 | sourceTree = ""; 462 | }; 463 | 83CBB9F61A601CBA00E9B192 = { 464 | isa = PBXGroup; 465 | children = ( 466 | 13B07FAE1A68108700A75B9A /* react_native_boilerplate */, 467 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 468 | 00E356EF1AD99517003FC87E /* react_native_boilerplateTests */, 469 | 83CBBA001A601CBA00E9B192 /* Products */, 470 | 1914CE59B62A4F44A5A5ECFE /* Frameworks */, 471 | 64206CCFB9A943D287EF6762 /* Resources */, 472 | ); 473 | indentWidth = 2; 474 | sourceTree = ""; 475 | tabWidth = 2; 476 | }; 477 | 83CBBA001A601CBA00E9B192 /* Products */ = { 478 | isa = PBXGroup; 479 | children = ( 480 | 13B07F961A680F5B00A75B9A /* react_native_boilerplate.app */, 481 | 00E356EE1AD99517003FC87E /* react_native_boilerplateTests.xctest */, 482 | ); 483 | name = Products; 484 | sourceTree = ""; 485 | }; 486 | /* End PBXGroup section */ 487 | 488 | /* Begin PBXNativeTarget section */ 489 | 00E356ED1AD99517003FC87E /* react_native_boilerplateTests */ = { 490 | isa = PBXNativeTarget; 491 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "react_native_boilerplateTests" */; 492 | buildPhases = ( 493 | 00E356EA1AD99517003FC87E /* Sources */, 494 | 00E356EB1AD99517003FC87E /* Frameworks */, 495 | 00E356EC1AD99517003FC87E /* Resources */, 496 | ); 497 | buildRules = ( 498 | ); 499 | dependencies = ( 500 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 501 | ); 502 | name = react_native_boilerplateTests; 503 | productName = react_native_boilerplateTests; 504 | productReference = 00E356EE1AD99517003FC87E /* react_native_boilerplateTests.xctest */; 505 | productType = "com.apple.product-type.bundle.unit-test"; 506 | }; 507 | 13B07F861A680F5B00A75B9A /* react_native_boilerplate */ = { 508 | isa = PBXNativeTarget; 509 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "react_native_boilerplate" */; 510 | buildPhases = ( 511 | 13B07F871A680F5B00A75B9A /* Sources */, 512 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 513 | 13B07F8E1A680F5B00A75B9A /* Resources */, 514 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 515 | ); 516 | buildRules = ( 517 | ); 518 | dependencies = ( 519 | ); 520 | name = react_native_boilerplate; 521 | productName = "Hello World"; 522 | productReference = 13B07F961A680F5B00A75B9A /* react_native_boilerplate.app */; 523 | productType = "com.apple.product-type.application"; 524 | }; 525 | /* End PBXNativeTarget section */ 526 | 527 | /* Begin PBXProject section */ 528 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 529 | isa = PBXProject; 530 | attributes = { 531 | LastUpgradeCheck = 610; 532 | ORGANIZATIONNAME = Facebook; 533 | TargetAttributes = { 534 | 00E356ED1AD99517003FC87E = { 535 | CreatedOnToolsVersion = 6.2; 536 | TestTargetID = 13B07F861A680F5B00A75B9A; 537 | }; 538 | }; 539 | }; 540 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "react_native_boilerplate" */; 541 | compatibilityVersion = "Xcode 3.2"; 542 | developmentRegion = English; 543 | hasScannedForEncodings = 0; 544 | knownRegions = ( 545 | en, 546 | Base, 547 | ); 548 | mainGroup = 83CBB9F61A601CBA00E9B192; 549 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 550 | projectDirPath = ""; 551 | projectReferences = ( 552 | { 553 | ProductGroup = 5AEA67D51DD5990300390D03 /* Products */; 554 | ProjectRef = D971D7FFD34C48ED898678F1 /* CodePush.xcodeproj */; 555 | }, 556 | { 557 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 558 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 559 | }, 560 | { 561 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 562 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 563 | }, 564 | { 565 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 566 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 567 | }, 568 | { 569 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 570 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 571 | }, 572 | { 573 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 574 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 575 | }, 576 | { 577 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 578 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 579 | }, 580 | { 581 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 582 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 583 | }, 584 | { 585 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 586 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 587 | }, 588 | { 589 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 590 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 591 | }, 592 | { 593 | ProductGroup = 146834001AC3E56700842450 /* Products */; 594 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 595 | }, 596 | { 597 | ProductGroup = 5AEA68041DD59A4600390D03 /* Products */; 598 | ProjectRef = 02F1B0C180C24DCFAC75F58C /* RNVectorIcons.xcodeproj */; 599 | }, 600 | ); 601 | projectRoot = ""; 602 | targets = ( 603 | 13B07F861A680F5B00A75B9A /* react_native_boilerplate */, 604 | 00E356ED1AD99517003FC87E /* react_native_boilerplateTests */, 605 | ); 606 | }; 607 | /* End PBXProject section */ 608 | 609 | /* Begin PBXReferenceProxy section */ 610 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 611 | isa = PBXReferenceProxy; 612 | fileType = archive.ar; 613 | path = libRCTActionSheet.a; 614 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 615 | sourceTree = BUILT_PRODUCTS_DIR; 616 | }; 617 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 618 | isa = PBXReferenceProxy; 619 | fileType = archive.ar; 620 | path = libRCTGeolocation.a; 621 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 622 | sourceTree = BUILT_PRODUCTS_DIR; 623 | }; 624 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 625 | isa = PBXReferenceProxy; 626 | fileType = archive.ar; 627 | path = libRCTImage.a; 628 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 629 | sourceTree = BUILT_PRODUCTS_DIR; 630 | }; 631 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 632 | isa = PBXReferenceProxy; 633 | fileType = archive.ar; 634 | path = libRCTNetwork.a; 635 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 636 | sourceTree = BUILT_PRODUCTS_DIR; 637 | }; 638 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 639 | isa = PBXReferenceProxy; 640 | fileType = archive.ar; 641 | path = libRCTVibration.a; 642 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 643 | sourceTree = BUILT_PRODUCTS_DIR; 644 | }; 645 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 646 | isa = PBXReferenceProxy; 647 | fileType = archive.ar; 648 | path = libRCTSettings.a; 649 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 650 | sourceTree = BUILT_PRODUCTS_DIR; 651 | }; 652 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 653 | isa = PBXReferenceProxy; 654 | fileType = archive.ar; 655 | path = libRCTWebSocket.a; 656 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 657 | sourceTree = BUILT_PRODUCTS_DIR; 658 | }; 659 | 146834041AC3E56700842450 /* libReact.a */ = { 660 | isa = PBXReferenceProxy; 661 | fileType = archive.ar; 662 | path = libReact.a; 663 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 664 | sourceTree = BUILT_PRODUCTS_DIR; 665 | }; 666 | 5AEA67D91DD5990300390D03 /* libCodePush.a */ = { 667 | isa = PBXReferenceProxy; 668 | fileType = archive.ar; 669 | path = libCodePush.a; 670 | remoteRef = 5AEA67D81DD5990300390D03 /* PBXContainerItemProxy */; 671 | sourceTree = BUILT_PRODUCTS_DIR; 672 | }; 673 | 5AEA67DF1DD5990300390D03 /* libRCTImage-tvOS.a */ = { 674 | isa = PBXReferenceProxy; 675 | fileType = archive.ar; 676 | path = "libRCTImage-tvOS.a"; 677 | remoteRef = 5AEA67DE1DD5990300390D03 /* PBXContainerItemProxy */; 678 | sourceTree = BUILT_PRODUCTS_DIR; 679 | }; 680 | 5AEA67E31DD5990300390D03 /* libRCTLinking-tvOS.a */ = { 681 | isa = PBXReferenceProxy; 682 | fileType = archive.ar; 683 | path = "libRCTLinking-tvOS.a"; 684 | remoteRef = 5AEA67E21DD5990300390D03 /* PBXContainerItemProxy */; 685 | sourceTree = BUILT_PRODUCTS_DIR; 686 | }; 687 | 5AEA67E71DD5990300390D03 /* libRCTNetwork-tvOS.a */ = { 688 | isa = PBXReferenceProxy; 689 | fileType = archive.ar; 690 | path = "libRCTNetwork-tvOS.a"; 691 | remoteRef = 5AEA67E61DD5990300390D03 /* PBXContainerItemProxy */; 692 | sourceTree = BUILT_PRODUCTS_DIR; 693 | }; 694 | 5AEA67EB1DD5990300390D03 /* libRCTSettings-tvOS.a */ = { 695 | isa = PBXReferenceProxy; 696 | fileType = archive.ar; 697 | path = "libRCTSettings-tvOS.a"; 698 | remoteRef = 5AEA67EA1DD5990300390D03 /* PBXContainerItemProxy */; 699 | sourceTree = BUILT_PRODUCTS_DIR; 700 | }; 701 | 5AEA67EF1DD5990300390D03 /* libRCTText-tvOS.a */ = { 702 | isa = PBXReferenceProxy; 703 | fileType = archive.ar; 704 | path = "libRCTText-tvOS.a"; 705 | remoteRef = 5AEA67EE1DD5990300390D03 /* PBXContainerItemProxy */; 706 | sourceTree = BUILT_PRODUCTS_DIR; 707 | }; 708 | 5AEA67F41DD5990300390D03 /* libRCTWebSocket-tvOS.a */ = { 709 | isa = PBXReferenceProxy; 710 | fileType = archive.ar; 711 | path = "libRCTWebSocket-tvOS.a"; 712 | remoteRef = 5AEA67F31DD5990300390D03 /* PBXContainerItemProxy */; 713 | sourceTree = BUILT_PRODUCTS_DIR; 714 | }; 715 | 5AEA67F81DD5990300390D03 /* libReact-tvOS.a */ = { 716 | isa = PBXReferenceProxy; 717 | fileType = archive.ar; 718 | path = "libReact-tvOS.a"; 719 | remoteRef = 5AEA67F71DD5990300390D03 /* PBXContainerItemProxy */; 720 | sourceTree = BUILT_PRODUCTS_DIR; 721 | }; 722 | 5AEA681A1DD59A4600390D03 /* libRNVectorIcons.a */ = { 723 | isa = PBXReferenceProxy; 724 | fileType = archive.ar; 725 | path = libRNVectorIcons.a; 726 | remoteRef = 5AEA68191DD59A4600390D03 /* PBXContainerItemProxy */; 727 | sourceTree = BUILT_PRODUCTS_DIR; 728 | }; 729 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 730 | isa = PBXReferenceProxy; 731 | fileType = archive.ar; 732 | path = libRCTLinking.a; 733 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 734 | sourceTree = BUILT_PRODUCTS_DIR; 735 | }; 736 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 737 | isa = PBXReferenceProxy; 738 | fileType = archive.ar; 739 | path = libRCTText.a; 740 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 741 | sourceTree = BUILT_PRODUCTS_DIR; 742 | }; 743 | /* End PBXReferenceProxy section */ 744 | 745 | /* Begin PBXResourcesBuildPhase section */ 746 | 00E356EC1AD99517003FC87E /* Resources */ = { 747 | isa = PBXResourcesBuildPhase; 748 | buildActionMask = 2147483647; 749 | files = ( 750 | ); 751 | runOnlyForDeploymentPostprocessing = 0; 752 | }; 753 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 754 | isa = PBXResourcesBuildPhase; 755 | buildActionMask = 2147483647; 756 | files = ( 757 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 758 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 759 | A8A33FA39C294DD49614E63C /* Andale Mono.ttf in Resources */, 760 | F1E8B5EEB5204F8F98054947 /* Arial Black.ttf in Resources */, 761 | DAF70392F3FC498B9B233652 /* Arial.ttf in Resources */, 762 | DFC66667A3884FF6AE45143B /* Comic Sans MS.ttf in Resources */, 763 | 1FAD06B0ECE24C95964DCE50 /* Courier New.ttf in Resources */, 764 | 97909EA7DEE5433C8DE53A52 /* Georgia.ttf in Resources */, 765 | 7E4C13693D5D42ABB3442AA5 /* Microsoft Sans Serif.ttf in Resources */, 766 | F8DE57951F344FF1AD7FF0CB /* Roboto_medium.ttf in Resources */, 767 | 2FA4D11125FB4C23BB62E0F4 /* Roboto.ttf in Resources */, 768 | 189648BAD3EE4FB88DD713F3 /* SF-UI-Text-Regular.otf in Resources */, 769 | 0C77BABDE5F54DACA817BD15 /* Skia.ttf in Resources */, 770 | BA9FD72D94BF4A69854FE0F0 /* Times New Roman.ttf in Resources */, 771 | 9DBEE3FECAEA4350A793BBF7 /* Entypo.ttf in Resources */, 772 | F6E0897F2D9745DE8FD8F9B0 /* EvilIcons.ttf in Resources */, 773 | 732D03C8CCDA48E5A085090B /* FontAwesome.ttf in Resources */, 774 | A7F6D34EA23E4C2D870C8F1A /* Foundation.ttf in Resources */, 775 | 2D305EB423F04EBF8C67516A /* Ionicons.ttf in Resources */, 776 | 66AA9DD534634964B6F2DD0A /* MaterialIcons.ttf in Resources */, 777 | C0B5ABAFD77B443B899AA622 /* Octicons.ttf in Resources */, 778 | A3FE3947F7D8485DB51A8414 /* Zocial.ttf in Resources */, 779 | ); 780 | runOnlyForDeploymentPostprocessing = 0; 781 | }; 782 | /* End PBXResourcesBuildPhase section */ 783 | 784 | /* Begin PBXShellScriptBuildPhase section */ 785 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 786 | isa = PBXShellScriptBuildPhase; 787 | buildActionMask = 2147483647; 788 | files = ( 789 | ); 790 | inputPaths = ( 791 | ); 792 | name = "Bundle React Native code and images"; 793 | outputPaths = ( 794 | ); 795 | runOnlyForDeploymentPostprocessing = 0; 796 | shellPath = /bin/sh; 797 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 798 | }; 799 | /* End PBXShellScriptBuildPhase section */ 800 | 801 | /* Begin PBXSourcesBuildPhase section */ 802 | 00E356EA1AD99517003FC87E /* Sources */ = { 803 | isa = PBXSourcesBuildPhase; 804 | buildActionMask = 2147483647; 805 | files = ( 806 | 00E356F31AD99517003FC87E /* react_native_boilerplateTests.m in Sources */, 807 | ); 808 | runOnlyForDeploymentPostprocessing = 0; 809 | }; 810 | 13B07F871A680F5B00A75B9A /* Sources */ = { 811 | isa = PBXSourcesBuildPhase; 812 | buildActionMask = 2147483647; 813 | files = ( 814 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 815 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 816 | ); 817 | runOnlyForDeploymentPostprocessing = 0; 818 | }; 819 | /* End PBXSourcesBuildPhase section */ 820 | 821 | /* Begin PBXTargetDependency section */ 822 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 823 | isa = PBXTargetDependency; 824 | target = 13B07F861A680F5B00A75B9A /* react_native_boilerplate */; 825 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 826 | }; 827 | /* End PBXTargetDependency section */ 828 | 829 | /* Begin PBXVariantGroup section */ 830 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 831 | isa = PBXVariantGroup; 832 | children = ( 833 | 13B07FB21A68108700A75B9A /* Base */, 834 | ); 835 | name = LaunchScreen.xib; 836 | path = react_native_boilerplate; 837 | sourceTree = ""; 838 | }; 839 | /* End PBXVariantGroup section */ 840 | 841 | /* Begin XCBuildConfiguration section */ 842 | 00E356F61AD99517003FC87E /* Debug */ = { 843 | isa = XCBuildConfiguration; 844 | buildSettings = { 845 | BUNDLE_LOADER = "$(TEST_HOST)"; 846 | GCC_PREPROCESSOR_DEFINITIONS = ( 847 | "DEBUG=1", 848 | "$(inherited)", 849 | ); 850 | INFOPLIST_FILE = react_native_boilerplateTests/Info.plist; 851 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 852 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 853 | LIBRARY_SEARCH_PATHS = ( 854 | "$(inherited)", 855 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 856 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 857 | ); 858 | PRODUCT_NAME = "$(TARGET_NAME)"; 859 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/react_native_boilerplate.app/react_native_boilerplate"; 860 | }; 861 | name = Debug; 862 | }; 863 | 00E356F71AD99517003FC87E /* Release */ = { 864 | isa = XCBuildConfiguration; 865 | buildSettings = { 866 | BUNDLE_LOADER = "$(TEST_HOST)"; 867 | COPY_PHASE_STRIP = NO; 868 | INFOPLIST_FILE = react_native_boilerplateTests/Info.plist; 869 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 870 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 871 | LIBRARY_SEARCH_PATHS = ( 872 | "$(inherited)", 873 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 874 | "\"$(SRCROOT)/$(TARGET_NAME)\"", 875 | ); 876 | PRODUCT_NAME = "$(TARGET_NAME)"; 877 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/react_native_boilerplate.app/react_native_boilerplate"; 878 | }; 879 | name = Release; 880 | }; 881 | 13B07F941A680F5B00A75B9A /* Debug */ = { 882 | isa = XCBuildConfiguration; 883 | buildSettings = { 884 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 885 | CURRENT_PROJECT_VERSION = 1; 886 | DEAD_CODE_STRIPPING = NO; 887 | HEADER_SEARCH_PATHS = ( 888 | "$(inherited)", 889 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 890 | "$(SRCROOT)/../node_modules/react-native/React/**", 891 | "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", 892 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 893 | ); 894 | INFOPLIST_FILE = react_native_boilerplate/Info.plist; 895 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 896 | OTHER_LDFLAGS = ( 897 | "$(inherited)", 898 | "-ObjC", 899 | "-lc++", 900 | ); 901 | PRODUCT_NAME = react_native_boilerplate; 902 | VERSIONING_SYSTEM = "apple-generic"; 903 | }; 904 | name = Debug; 905 | }; 906 | 13B07F951A680F5B00A75B9A /* Release */ = { 907 | isa = XCBuildConfiguration; 908 | buildSettings = { 909 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 910 | CURRENT_PROJECT_VERSION = 1; 911 | HEADER_SEARCH_PATHS = ( 912 | "$(inherited)", 913 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 914 | "$(SRCROOT)/../node_modules/react-native/React/**", 915 | "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", 916 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 917 | ); 918 | INFOPLIST_FILE = react_native_boilerplate/Info.plist; 919 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 920 | OTHER_LDFLAGS = ( 921 | "$(inherited)", 922 | "-ObjC", 923 | "-lc++", 924 | ); 925 | PRODUCT_NAME = react_native_boilerplate; 926 | VERSIONING_SYSTEM = "apple-generic"; 927 | }; 928 | name = Release; 929 | }; 930 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 931 | isa = XCBuildConfiguration; 932 | buildSettings = { 933 | ALWAYS_SEARCH_USER_PATHS = NO; 934 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 935 | CLANG_CXX_LIBRARY = "libc++"; 936 | CLANG_ENABLE_MODULES = YES; 937 | CLANG_ENABLE_OBJC_ARC = YES; 938 | CLANG_WARN_BOOL_CONVERSION = YES; 939 | CLANG_WARN_CONSTANT_CONVERSION = YES; 940 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 941 | CLANG_WARN_EMPTY_BODY = YES; 942 | CLANG_WARN_ENUM_CONVERSION = YES; 943 | CLANG_WARN_INT_CONVERSION = YES; 944 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 945 | CLANG_WARN_UNREACHABLE_CODE = YES; 946 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 947 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 948 | COPY_PHASE_STRIP = NO; 949 | ENABLE_STRICT_OBJC_MSGSEND = YES; 950 | GCC_C_LANGUAGE_STANDARD = gnu99; 951 | GCC_DYNAMIC_NO_PIC = NO; 952 | GCC_OPTIMIZATION_LEVEL = 0; 953 | GCC_PREPROCESSOR_DEFINITIONS = ( 954 | "DEBUG=1", 955 | "$(inherited)", 956 | ); 957 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 958 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 959 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 960 | GCC_WARN_UNDECLARED_SELECTOR = YES; 961 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 962 | GCC_WARN_UNUSED_FUNCTION = YES; 963 | GCC_WARN_UNUSED_VARIABLE = YES; 964 | HEADER_SEARCH_PATHS = ( 965 | "$(inherited)", 966 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 967 | "$(SRCROOT)/../node_modules/react-native/React/**", 968 | "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", 969 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 970 | ); 971 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 972 | MTL_ENABLE_DEBUG_INFO = YES; 973 | ONLY_ACTIVE_ARCH = YES; 974 | SDKROOT = iphoneos; 975 | }; 976 | name = Debug; 977 | }; 978 | 83CBBA211A601CBA00E9B192 /* Release */ = { 979 | isa = XCBuildConfiguration; 980 | buildSettings = { 981 | ALWAYS_SEARCH_USER_PATHS = NO; 982 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 983 | CLANG_CXX_LIBRARY = "libc++"; 984 | CLANG_ENABLE_MODULES = YES; 985 | CLANG_ENABLE_OBJC_ARC = YES; 986 | CLANG_WARN_BOOL_CONVERSION = YES; 987 | CLANG_WARN_CONSTANT_CONVERSION = YES; 988 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 989 | CLANG_WARN_EMPTY_BODY = YES; 990 | CLANG_WARN_ENUM_CONVERSION = YES; 991 | CLANG_WARN_INT_CONVERSION = YES; 992 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 993 | CLANG_WARN_UNREACHABLE_CODE = YES; 994 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 995 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 996 | COPY_PHASE_STRIP = YES; 997 | ENABLE_NS_ASSERTIONS = NO; 998 | ENABLE_STRICT_OBJC_MSGSEND = YES; 999 | GCC_C_LANGUAGE_STANDARD = gnu99; 1000 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1001 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1002 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1003 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1004 | GCC_WARN_UNUSED_FUNCTION = YES; 1005 | GCC_WARN_UNUSED_VARIABLE = YES; 1006 | HEADER_SEARCH_PATHS = ( 1007 | "$(inherited)", 1008 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 1009 | "$(SRCROOT)/../node_modules/react-native/React/**", 1010 | "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", 1011 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", 1012 | ); 1013 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1014 | MTL_ENABLE_DEBUG_INFO = NO; 1015 | SDKROOT = iphoneos; 1016 | VALIDATE_PRODUCT = YES; 1017 | }; 1018 | name = Release; 1019 | }; 1020 | /* End XCBuildConfiguration section */ 1021 | 1022 | /* Begin XCConfigurationList section */ 1023 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "react_native_boilerplateTests" */ = { 1024 | isa = XCConfigurationList; 1025 | buildConfigurations = ( 1026 | 00E356F61AD99517003FC87E /* Debug */, 1027 | 00E356F71AD99517003FC87E /* Release */, 1028 | ); 1029 | defaultConfigurationIsVisible = 0; 1030 | defaultConfigurationName = Release; 1031 | }; 1032 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "react_native_boilerplate" */ = { 1033 | isa = XCConfigurationList; 1034 | buildConfigurations = ( 1035 | 13B07F941A680F5B00A75B9A /* Debug */, 1036 | 13B07F951A680F5B00A75B9A /* Release */, 1037 | ); 1038 | defaultConfigurationIsVisible = 0; 1039 | defaultConfigurationName = Release; 1040 | }; 1041 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "react_native_boilerplate" */ = { 1042 | isa = XCConfigurationList; 1043 | buildConfigurations = ( 1044 | 83CBBA201A601CBA00E9B192 /* Debug */, 1045 | 83CBBA211A601CBA00E9B192 /* Release */, 1046 | ); 1047 | defaultConfigurationIsVisible = 0; 1048 | defaultConfigurationName = Release; 1049 | }; 1050 | /* End XCConfigurationList section */ 1051 | }; 1052 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1053 | } 1054 | -------------------------------------------------------------------------------- /ios/react_native_boilerplate.xcodeproj/xcshareddata/xcschemes/react_native_boilerplate.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /ios/react_native_boilerplate/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/react_native_boilerplate/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | #import "CodePush.h" 12 | 13 | #import "RCTBundleURLProvider.h" 14 | #import "RCTRootView.h" 15 | 16 | @implementation AppDelegate 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 19 | { 20 | NSURL *jsCodeLocation; 21 | 22 | 23 | #ifdef DEBUG 24 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 25 | #else 26 | jsCodeLocation = [CodePush bundleURL]; 27 | #endif 28 | 29 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 30 | moduleName:@"react_native_boilerplate" 31 | initialProperties:nil 32 | launchOptions:launchOptions]; 33 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 34 | 35 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 36 | UIViewController *rootViewController = [UIViewController new]; 37 | rootViewController.view = rootView; 38 | self.window.rootViewController = rootViewController; 39 | [self.window makeKeyAndVisible]; 40 | return YES; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /ios/react_native_boilerplate/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/react_native_boilerplate/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/react_native_boilerplate/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 | NSExceptionDomains 44 | 45 | localhost 46 | 47 | NSExceptionAllowsInsecureHTTPLoads 48 | 49 | 50 | 51 | 52 | CodePushDeploymentKey 53 | deployment-key-here 54 | UIAppFonts 55 | 56 | Andale Mono.ttf 57 | Arial Black.ttf 58 | Arial.ttf 59 | Comic Sans MS.ttf 60 | Courier New.ttf 61 | Georgia.ttf 62 | Microsoft Sans Serif.ttf 63 | Roboto_medium.ttf 64 | Roboto.ttf 65 | SF-UI-Text-Regular.otf 66 | Skia.ttf 67 | Times New Roman.ttf 68 | Entypo.ttf 69 | EvilIcons.ttf 70 | FontAwesome.ttf 71 | Foundation.ttf 72 | Ionicons.ttf 73 | MaterialIcons.ttf 74 | Octicons.ttf 75 | Zocial.ttf 76 | 77 | 78 | -------------------------------------------------------------------------------- /ios/react_native_boilerplate/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/react_native_boilerplateTests/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/react_native_boilerplateTests/react_native_boilerplateTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import "RCTLog.h" 14 | #import "RCTRootView.h" 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface react_native_boilerplateTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation react_native_boilerplateTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react_native_boilerplate", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "postinstall": "remotedev-debugger", 7 | "start": "node node_modules/react-native/local-cli/cli.js start", 8 | "test": "jest", 9 | "lint": "eslint src" 10 | }, 11 | "dependencies": { 12 | "eslint-plugin-jsx-a11y": "^3.0.1", 13 | "eslint-plugin-react": "^5.2.2", 14 | "humps": "^2.0.0", 15 | "lodash": "^4.13.1", 16 | "lodash.merge": "^4.6.0", 17 | "loglevel": "^1.4.1", 18 | "moment": "^2.13.0", 19 | "native-base": "0.5.8", 20 | "normalizr": "^2.2.1", 21 | "react": "^15.3.2", 22 | "react-native": "0.37.0", 23 | "react-native-button": "^1.6.0", 24 | "react-native-code-push": "1.14.6-beta", 25 | "react-native-gifted-spinner": "0.0.5", 26 | "react-native-modalbox": "^1.3.4", 27 | "react-native-vector-icons": "^2.0.3", 28 | "react-redux": "^4.4.5", 29 | "redux": "^3.5.2", 30 | "redux-persist": "^3.2.2", 31 | "redux-thunk": "^2.1.0", 32 | "rx": "^4.1.0" 33 | }, 34 | "jest": { 35 | "preset": "jest-react-native" 36 | }, 37 | "devDependencies": { 38 | "babel-jest": "17.0.0", 39 | "eslint": "^2.13.1", 40 | "eslint-config-airbnb": "^9.0.1", 41 | "eslint-plugin-import": "^1.9.2", 42 | "eslint-plugin-react": "^5.2.2", 43 | "eslint-plugin-react-native": "^2.0.0", 44 | "jest": "17.0.0", 45 | "jest-react-native": "17.0.0", 46 | "react-test-renderer": "15.3.2", 47 | "remote-redux-devtools": "^0.3.3", 48 | "remote-redux-devtools-on-debugger": "^0.4.6" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/AppNavigator.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { BackAndroid, Platform, StatusBar, Navigator } from 'react-native'; 3 | import { connect } from 'react-redux'; 4 | import _ from 'lodash/core'; 5 | 6 | import { closeDrawer } from './actions/drawer'; 7 | import { popRoute } from './actions/route'; 8 | 9 | import { Drawer } from 'native-base'; 10 | import Home from './components/Home'; 11 | import SideBar from './components/SideBar'; 12 | 13 | import { statusBarColor } from './themes/base-theme'; 14 | 15 | Navigator.prototype.replaceWithAnimation = (route) => { 16 | const activeLength = this.state.presentedIndex + 1; 17 | const activeStack = this.state.routeStack.slice(0, activeLength); 18 | const activeAnimationConfigStack = this.state.sceneConfigStack.slice(0, activeLength); 19 | const nextStack = activeStack.concat([route]); 20 | const destIndex = nextStack.length - 1; 21 | const nextSceneConfig = this.props.configureScene(route, nextStack); 22 | const nextAnimationConfigStack = activeAnimationConfigStack.concat([nextSceneConfig]); 23 | 24 | const replacedStack = activeStack.slice(0, activeLength - 1).concat([route]); 25 | this._emitWillFocus(nextStack[destIndex]); 26 | this.setState({ 27 | routeStack: nextStack, 28 | sceneConfigStack: nextAnimationConfigStack, 29 | }, () => { 30 | this._enableScene(destIndex); 31 | this._transitionTo(destIndex, nextSceneConfig.defaultTransitionVelocity, null, () => { 32 | this.immediatelyResetRouteStack(replacedStack); 33 | }); 34 | }); 35 | }; 36 | 37 | export const globalNav = {}; 38 | 39 | const searchResultRegexp = /^search\/(.*)$/; 40 | 41 | const reducerCreate = params => { 42 | const defaultReducer = Reducer(params); 43 | return (state, action) => { 44 | var currentState = state; 45 | 46 | if (currentState) { 47 | while (currentState.children) { 48 | currentState = currentState.children[currentState.index]; 49 | } 50 | } 51 | return defaultReducer(state, action); 52 | }; 53 | }; 54 | 55 | const drawerStyle = { shadowColor: '#000000', shadowOpacity: 0.8, shadowRadius: 3 }; 56 | 57 | class AppNavigator extends Component { 58 | constructor(props) { 59 | super(props); 60 | } 61 | componentDidMount() { 62 | globalNav.navigator = this._navigator; 63 | 64 | this.props.store.subscribe(() => { 65 | if (this.props.store.getState().drawer.drawerState == 'opened') 66 | this.openDrawer(); 67 | 68 | if (this.props.store.getState().drawer.drawerState == 'closed') 69 | this._drawer.close(); 70 | }); 71 | 72 | BackAndroid.addEventListener('hardwareBackPress', () => { 73 | var routes = this._navigator.getCurrentRoutes(); 74 | 75 | if (routes[routes.length - 1].id == 'home' || routes[routes.length - 1].id == 'login') { 76 | return false; 77 | } 78 | else { 79 | this.popRoute(); 80 | return true; 81 | } 82 | }); 83 | } 84 | 85 | popRoute() { 86 | this.props.popRoute(); 87 | } 88 | 89 | openDrawer() { 90 | this._drawer.open(); 91 | } 92 | 93 | closeDrawer() { 94 | if (this.props.store.getState().drawer.drawerState == 'opened') { 95 | this._drawer.close(); 96 | this.props.closeDrawer(); 97 | } 98 | } 99 | 100 | render() { 101 | return ( 102 | this._drawer = ref} 104 | type="overlay" 105 | content={} 106 | tapToClose 107 | acceptPan={false} 108 | onClose={() => this.closeDrawer()} 109 | openDrawerOffset={0.2} 110 | panCloseMask={0.2} 111 | negotiatePan 112 | > 113 | 117 | this._navigator = ref} 119 | configureScene={() => ({ 120 | ...Navigator.SceneConfigs.FloatFromRight, 121 | gestures: {} 122 | })} 123 | initialRoute={{ id: (Platform.OS === 'android') ? 'splashscreen' : 'login', statusBarHidden: true }} 124 | renderScene={this.renderScene} 125 | /> 126 | 127 | ); 128 | } 129 | 130 | renderScene(route, navigator) { 131 | switch (route.id) { 132 | case 'home': 133 | return ; 134 | default: 135 | return ; 136 | } 137 | } 138 | } 139 | 140 | function bindAction(dispatch) { 141 | return { 142 | closeDrawer: () => dispatch(closeDrawer()), 143 | popRoute: () => dispatch(popRoute()) 144 | }; 145 | } 146 | 147 | const mapStateToProps = (state) => { 148 | return { 149 | drawerState: state.drawer.drawerState, 150 | }; 151 | }; 152 | 153 | export default connect(mapStateToProps, bindAction)(AppNavigator); 154 | -------------------------------------------------------------------------------- /src/Root.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Provider } from 'react-redux'; 3 | import App from './containers/App'; 4 | import configureStore from './store/configureStore'; 5 | // import { log } from 'loglevel'; 6 | 7 | // const __LOG_LEVEL__ = 'debug'; 8 | // log.setLevel(__LOG_LEVEL__); 9 | // console.log('debug', __DEV__); 10 | 11 | export default () => class extends Component { 12 | constructor() { 13 | super(); 14 | this.state = { 15 | isLoading: false, 16 | store: configureStore(() => this.setState({ isLoading: false })), 17 | }; 18 | } 19 | render() { 20 | return ( 21 | 22 | 23 | 24 | ); 25 | } 26 | }; 27 | 28 | -------------------------------------------------------------------------------- /src/actions/drawer.js: -------------------------------------------------------------------------------- 1 | import { OPEN_DRAWER, CLOSE_DRAWER } from '../constants'; 2 | 3 | export function openDrawer() { 4 | return { 5 | type: OPEN_DRAWER 6 | }; 7 | } 8 | 9 | export function closeDrawer() { 10 | return { 11 | type: CLOSE_DRAWER 12 | }; 13 | } 14 | -------------------------------------------------------------------------------- /src/actions/route.js: -------------------------------------------------------------------------------- 1 | import { 2 | PUSH_NEW_ROUTE, 3 | REPLACE_ROUTE, 4 | REPLACE_OR_PUSH_ROUTE, 5 | POP_ROUTE, 6 | POP_TO_ROUTE 7 | } from '../constants'; 8 | 9 | 10 | 11 | export function replaceRoute(route:string) { 12 | return { 13 | type: REPLACE_ROUTE, 14 | route 15 | }; 16 | } 17 | 18 | export function pushNewRoute(route:string) { 19 | return { 20 | type: PUSH_NEW_ROUTE, 21 | route 22 | }; 23 | } 24 | 25 | export function replaceOrPushRoute(route) { 26 | return { 27 | type: REPLACE_OR_PUSH_ROUTE, 28 | route 29 | }; 30 | } 31 | 32 | export function popRoute() { 33 | return { 34 | type: POP_ROUTE 35 | }; 36 | } 37 | 38 | export function popToRoute(route) { 39 | return { 40 | type: POP_TO_ROUTE, 41 | route 42 | }; 43 | } 44 | -------------------------------------------------------------------------------- /src/components/Home.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { 3 | StyleSheet, 4 | } from 'react-native'; 5 | import { Container, Content, Text, InputGroup, Input, Button, Icon, View } from 'native-base'; 6 | 7 | const styles = StyleSheet.create({ 8 | container: { 9 | flex: 1, 10 | justifyContent: 'center', 11 | alignItems: 'center', 12 | backgroundColor: '#F5FCFF', 13 | }, 14 | welcome: { 15 | fontSize: 20, 16 | textAlign: 'center', 17 | margin: 10, 18 | }, 19 | instructions: { 20 | textAlign: 'center', 21 | color: '#333333', 22 | marginBottom: 5, 23 | }, 24 | }); 25 | 26 | export default class Home extends Component { 27 | render() { 28 | return ( 29 | 30 | 31 | 32 | mixslice-react-native boilerplate 33 | 34 | 35 | 36 | 测试-首页 37 | 38 | 39 | 40 | 41 | 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/components/SideBar.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { connect } from 'react-redux'; 3 | import { StyleSheet } from 'react-native'; 4 | 5 | import { closeDrawer } from '../actions/drawer'; 6 | import { replaceOrPushRoute } from '../actions/route'; 7 | 8 | import { Text, Icon, List, ListItem, Content, Thumbnail } from 'native-base'; 9 | 10 | const styles = StyleSheet.create({ 11 | links: { 12 | paddingTop: 10, 13 | paddingBottom: 10, 14 | borderBottomColor: '#454545' 15 | } 16 | }); 17 | 18 | class SideBar extends Component { 19 | 20 | navigateTo(route) { 21 | this.props.closeDrawer(); 22 | this.props.replaceOrPushRoute(route); 23 | } 24 | 25 | render() { 26 | return ( 27 | 28 | 29 | 30 | this.navigateTo('home')} iconLeft style={styles.links} > 31 | 32 | Home 33 | 34 | 35 | 36 | ); 37 | } 38 | } 39 | 40 | function bindAction(dispatch) { 41 | return { 42 | closeDrawer: () => dispatch(closeDrawer()), 43 | replaceOrPushRoute: (route) => dispatch(replaceOrPushRoute(route)) 44 | }; 45 | } 46 | 47 | export default connect(null, bindAction)(SideBar); 48 | -------------------------------------------------------------------------------- /src/components/loaders/ProgressBar.android.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import { ActivityIndicator, Platform, ProgressBarAndroid } from 'react-native'; 6 | import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; 7 | import computeProps from 'native-base/Utils/computeProps'; 8 | 9 | 10 | export default class SpinnerNB extends NativeBaseComponent { 11 | 12 | prepareRootProps() { 13 | 14 | var type = { 15 | height: 40 16 | } 17 | 18 | var defaultProps = { 19 | style: type 20 | } 21 | 22 | return computeProps(this.props, defaultProps); 23 | 24 | } 25 | 26 | 27 | render() { 28 | return( 29 | 33 | 34 | ); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/components/loaders/ProgressBar.ios.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import { ProgressViewIOS} from 'react-native'; 6 | import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; 7 | import computeProps from 'native-base/Utils/computeProps'; 8 | 9 | export default class ProgressBarNB extends NativeBaseComponent { 10 | 11 | 12 | 13 | render() { 14 | return( 15 | 19 | ); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/components/loaders/Spinner.android.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import { ActivityIndicator, Platform } from 'react-native'; 6 | import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; 7 | import computeProps from 'native-base/Utils/computeProps'; 8 | 9 | export default class SpinnerNB extends NativeBaseComponent { 10 | 11 | prepareRootProps() { 12 | 13 | var type = { 14 | height: 40 15 | } 16 | 17 | var defaultProps = { 18 | style: type 19 | } 20 | 21 | return computeProps(this.props, defaultProps); 22 | 23 | } 24 | 25 | 26 | render() { 27 | return( 28 | 31 | ); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/components/loaders/Spinner.ios.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 'use strict'; 3 | 4 | import React from 'react'; 5 | import { ActivityIndicator, Platform } from 'react-native'; 6 | import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; 7 | import computeProps from 'native-base/Utils/computeProps'; 8 | 9 | 10 | export default class SpinnerNB extends NativeBaseComponent { 11 | 12 | prepareRootProps() { 13 | 14 | var type = { 15 | height: 80 16 | } 17 | 18 | var defaultProps = { 19 | style: type 20 | } 21 | 22 | return computeProps(this.props, defaultProps); 23 | 24 | } 25 | 26 | 27 | render() { 28 | return( 29 | 33 | ); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/constants/index.js: -------------------------------------------------------------------------------- 1 | import { createConstants } from '../utils'; 2 | 3 | 4 | module.exports = createConstants([ 5 | 'OPEN_DRAWER', 6 | 'CLOSE_DRAWER', 7 | 'PUSH_NEW_ROUTE', 8 | 'REPLACE_ROUTE', 9 | 'REPLACE_OR_PUSH_ROUTE', 10 | 'POP_ROUTE', 11 | 'POP_TO_ROUTE' 12 | ]); 13 | -------------------------------------------------------------------------------- /src/containers/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { StyleSheet, Dimensions } from 'react-native'; 3 | import CodePush from 'react-native-code-push'; 4 | 5 | import { Container, Content, Text, View } from 'native-base'; 6 | import Modal from 'react-native-modalbox'; 7 | 8 | import AppNavigator from '../AppNavigator'; 9 | import ProgressBar from '../components/loaders/ProgressBar.ios'; 10 | 11 | import theme from '../themes/base-theme'; 12 | 13 | const height = Dimensions.get('window').height; 14 | let styles = StyleSheet.create({ 15 | container: { 16 | flex: 1, 17 | width: null, 18 | height: null, 19 | }, 20 | box: { 21 | padding: 10, 22 | backgroundColor: 'transparent', 23 | flex: 1, 24 | height: height - 70 25 | }, 26 | space: { 27 | marginTop: 10, 28 | marginBottom: 10, 29 | justifyContent: 'center' 30 | }, 31 | modal: { 32 | justifyContent: 'center', 33 | alignItems: 'center' 34 | }, 35 | modal1: { 36 | height: 300 37 | 38 | }, 39 | modal2: { 40 | height: height - 78, 41 | position: 'relative', 42 | justifyContent: 'center', 43 | }, 44 | }); 45 | 46 | class App extends Component { 47 | 48 | constructor(props) { 49 | super(props); 50 | this.state = { 51 | showDownloadingModal: false, 52 | showInstalling: false, 53 | downloadProgress: 0 54 | }; 55 | } 56 | 57 | componentDidMount() { 58 | console.log('code', CodePush); 59 | // CodePush.sync({ updateDialog: true, installMode: CodePush.InstallMode.IMMEDIATE }, 60 | // (status) => { 61 | // switch (status) { 62 | // case CodePush.SyncStatus.DOWNLOADING_PACKAGE: 63 | // this.setState({ showDownloadingModal: true }); 64 | // this.refs.modal.open(); 65 | // break; 66 | // case CodePush.SyncStatus.INSTALLING_UPDATE: 67 | // this.setState({ showInstalling: true }); 68 | // break; 69 | // case CodePush.SyncStatus.UPDATE_INSTALLED: 70 | // this.refs.modal.close(); 71 | // this.setState({ showDownloadingModal: false }); 72 | // break; 73 | // default: 74 | // break; 75 | // } 76 | // }, 77 | // ({ receivedBytes, totalBytes, }) => { 78 | // this.setState({ downloadProgress: receivedBytes / totalBytes * 100 }); 79 | // } 80 | // ); 81 | } 82 | 83 | render() { 84 | console.log('here'); 85 | if (this.state.showDownloadingModal) 86 | return ( 87 | 88 | 89 | 90 | 91 | 92 | {this.state.showInstalling ? 93 | 94 | Installing update... 95 | : 96 | 97 | Downloading update... {parseInt(this.state.downloadProgress) + ' %'} 98 | 99 | 100 | } 101 | 102 | 103 | 104 | 105 | 106 | 107 | ); 108 | else 109 | return ( 110 | 111 | ); 112 | } 113 | } 114 | 115 | export default App; 116 | -------------------------------------------------------------------------------- /src/containers/index.js: -------------------------------------------------------------------------------- 1 | export App from './App'; 2 | 3 | -------------------------------------------------------------------------------- /src/middleware/api.js: -------------------------------------------------------------------------------- 1 | import { normalize } from 'normalizr'; 2 | import { camelizeKeys } from 'humps'; 3 | import { bindActionCreators } from 'redux'; 4 | import 'isomorphic-fetch'; 5 | import merge from 'lodash.merge'; 6 | 7 | 8 | // Fetches an API response and normalizes the result JSON according to schema. 9 | // This makes every API response have the same shape, regardless of how nested it was. 10 | function callApi(endpoint, schema, options, isFake, mapResult, isJSON) { 11 | const API_ROOT = isFake ? '/data/' : 'http://test.com'; 12 | const fullUrl = (endpoint.indexOf('http://') === -1) 13 | ? API_ROOT + endpoint 14 | : endpoint; 15 | const customOptions = merge({}, options, { 16 | method: isFake ? 'get' : options && options.method, 17 | headers: { 18 | Authorization: `Bearer ${localStorage.getItem('token') || ''}` 19 | } 20 | }); 21 | if (isJSON) { 22 | customOptions.headers.Accept = 'application/json'; 23 | customOptions.headers['Content-Type'] = 'application/json'; 24 | } 25 | return fetch(fullUrl, customOptions) 26 | .then(response => 27 | response.json().then(json => ({ json, response })) 28 | ).then(({ json, response }) => { 29 | if (!response.ok || !json.success) { 30 | return Promise.reject(json); 31 | } 32 | 33 | if (mapResult) { 34 | json = mapResult(json); 35 | } 36 | 37 | const camelizedJson = camelizeKeys(json); 38 | if (schema && typeof(schema) === 'function') { 39 | return normalize(camelizedJson, schema(camelizedJson)); 40 | } else if (schema) { 41 | return normalize(camelizedJson, schema); 42 | } 43 | return camelizedJson; 44 | }) 45 | .catch(e => Promise.reject(e)); 46 | } 47 | 48 | // Action key that carries API call info interpreted by this Redux middleware. 49 | export const CALL_API = Symbol('Call API'); 50 | 51 | // A Redux middleware that interprets actions with CALL_API info specified. 52 | // Performs the call and promises when such actions are dispatched. 53 | export default store => next => action => { 54 | const { [CALL_API]: callAPI, ...otherAction } = action; 55 | if (typeof callAPI === 'undefined') { 56 | return next(action); 57 | } 58 | 59 | let { endpoint } = callAPI; 60 | const { 61 | schema, 62 | types, 63 | options, 64 | isFake = false, 65 | isJSON = true, 66 | mapResult, 67 | nextAction, 68 | nextActionFailed, 69 | } = callAPI; 70 | 71 | if (typeof endpoint === 'function') { 72 | endpoint = endpoint(store.getState()); 73 | } 74 | 75 | if (typeof endpoint !== 'string') { 76 | throw new Error('Specify a string endpoint URL.'); 77 | } 78 | // if (!schema) { 79 | // throw new Error('Specify one of the exported Schemas.'); 80 | // } 81 | if (!Array.isArray(types) || types.length !== 3) { 82 | throw new Error('Expected an array of three action types.'); 83 | } 84 | if (!types.every(type => typeof type === 'string')) { 85 | throw new Error('Expected action types to be strings.'); 86 | } 87 | 88 | const [requestType, successType, failureType] = types; 89 | function actionWith(data) { 90 | const finalAction = { ...otherAction, ...data, fetchTypes: types }; 91 | return finalAction; 92 | } 93 | 94 | next(actionWith({ type: requestType })); 95 | 96 | return callApi(endpoint, schema, options, isFake, mapResult, isJSON) 97 | .then(response => { 98 | next(actionWith({ 99 | response, 100 | type: successType, 101 | })); 102 | }) 103 | .then(() => { 104 | if (nextAction) { 105 | bindActionCreators(nextAction, store.dispatch)(); 106 | } 107 | }) 108 | .catch(error => { 109 | next(actionWith({ 110 | type: failureType, 111 | error: error || new Error('Something bad happened') 112 | })); 113 | if (nextActionFailed) { 114 | bindActionCreators(nextActionFailed, store.dispatch)(); 115 | } 116 | }); 117 | }; 118 | -------------------------------------------------------------------------------- /src/reducers/drawer.js: -------------------------------------------------------------------------------- 1 | import { OPEN_DRAWER, CLOSE_DRAWER, ENABLE_DRAWER, DISABLE_DRAWER } from '../constants'; 2 | 3 | const initialState = { 4 | drawerState: 'closed', 5 | drawerDisabled: true 6 | }; 7 | 8 | export default function (state = initialState, action) { 9 | if (action.type === OPEN_DRAWER) { 10 | return { 11 | ...state, 12 | drawerState: 'opened' 13 | }; 14 | } 15 | 16 | if (action.type === CLOSE_DRAWER) { 17 | return { 18 | ...state, 19 | drawerState: 'closed' 20 | }; 21 | } 22 | 23 | if (action.type === ENABLE_DRAWER) { 24 | return { 25 | ...state, 26 | drawerDisabled: false 27 | }; 28 | } 29 | 30 | if (action.type === DISABLE_DRAWER) { 31 | return { 32 | ...state, 33 | drawerDisabled: true 34 | }; 35 | } 36 | return state; 37 | } 38 | -------------------------------------------------------------------------------- /src/reducers/index.js: -------------------------------------------------------------------------------- 1 | 2 | import { combineReducers } from 'redux'; 3 | import test from './test'; 4 | import route from './route'; 5 | import drawer from './drawer'; 6 | 7 | 8 | export default combineReducers({ test, route, drawer }); 9 | -------------------------------------------------------------------------------- /src/reducers/route.js: -------------------------------------------------------------------------------- 1 | import { globalNav } from '../AppNavigator'; 2 | import { PUSH_NEW_ROUTE, POP_ROUTE, POP_TO_ROUTE, REPLACE_ROUTE, REPLACE_OR_PUSH_ROUTE } 3 | from '../constants'; 4 | import { REHYDRATE } from 'redux-persist/constants'; 5 | 6 | 7 | const initialState = { 8 | routes: ['login'] 9 | }; 10 | 11 | export default function (state = initialState, action) { 12 | 13 | // console.log(state, "route state *()*(*&77"); 14 | if (action.type === PUSH_NEW_ROUTE) { 15 | // console.log(action.route, "route"); 16 | globalNav.navigator.push({ id: action.route }); 17 | return { 18 | routes: [...state.routes, action.route] 19 | }; 20 | } 21 | 22 | if (action.type === REPLACE_ROUTE) { 23 | globalNav.navigator.replaceWithAnimation({ id: action.route }); 24 | const routes = state.routes; 25 | routes.pop(); 26 | return { 27 | routes: [...routes, action.route] 28 | }; 29 | } 30 | 31 | // For sidebar navigation 32 | if (action.type === REPLACE_OR_PUSH_ROUTE) { 33 | let routes = state.routes; 34 | 35 | if (routes[routes.length - 1] == 'home') { 36 | // If top route is home and user navigates to a route other than home, then push 37 | if (action.route != 'home') 38 | globalNav.navigator.push({ id: action.route }); 39 | // If top route is home and user navigates to home, do nothing 40 | else 41 | routes = []; 42 | } 43 | 44 | else { 45 | if (action.route == 'home') { 46 | globalNav.navigator.resetTo({ id: 'home' }); 47 | routes = []; 48 | } 49 | else { 50 | globalNav.navigator.replaceWithAnimation({ id: action.route }); 51 | routes.pop(); 52 | } 53 | } 54 | 55 | return { 56 | routes: [...routes, action.route] 57 | }; 58 | } 59 | 60 | if (action.type === POP_ROUTE) { 61 | globalNav.navigator.pop(); 62 | const routes = state.routes; 63 | routes.pop(); 64 | return { 65 | routes 66 | }; 67 | } 68 | 69 | if (action.type === POP_TO_ROUTE) { 70 | globalNav.navigator.popToRoute({ id: action.route }); 71 | const routes = state.routes; 72 | while (routes.pop() !== action.route) {} 73 | return { 74 | routes: [...routes, action.route] 75 | }; 76 | } 77 | 78 | if (action.type === REHYDRATE) { 79 | const savedData = action['payload']['route'] || state; 80 | return { 81 | ...savedData 82 | }; 83 | } 84 | 85 | return state; 86 | } 87 | -------------------------------------------------------------------------------- /src/reducers/test.js: -------------------------------------------------------------------------------- 1 | export default (state = {}, action) => { 2 | return state; 3 | }; 4 | -------------------------------------------------------------------------------- /src/store/configureStore.js: -------------------------------------------------------------------------------- 1 | import { AsyncStorage } from 'react-native'; 2 | import { createStore, applyMiddleware, compose } from 'redux'; 3 | import devTools from 'remote-redux-devtools'; 4 | import thunk from 'redux-thunk'; 5 | import reducer from '../reducers'; 6 | import { persistStore } from 'redux-persist'; 7 | // import promise from './promise'; 8 | 9 | export default function configureStore(onCompletion:()=>void):any { 10 | const enhancer = compose( 11 | applyMiddleware(thunk), 12 | devTools({ 13 | name: 'nativestarterproseed', realtime: true 14 | }), 15 | ); 16 | 17 | let store = createStore(reducer, enhancer); 18 | persistStore(store, { storage: AsyncStorage }, onCompletion); 19 | 20 | return store; 21 | } 22 | -------------------------------------------------------------------------------- /src/themes/base-theme.js: -------------------------------------------------------------------------------- 1 | import Color from 'color'; 2 | 3 | import { Platform } from 'react-native'; 4 | 5 | module.exports = { 6 | brandPrimary: '#428bca', 7 | brandInfo: '#5bc0de', 8 | brandSuccess: '#5cb85c', 9 | brandDanger: '#d9534f', 10 | brandWarning: '#f0ad4e', 11 | brandSidebar: '#252A30', 12 | 13 | fontFamily: (Platform.OS === 'ios') ? 'HelveticaNeue' : 'Roboto', 14 | btnFontFamily: (Platform.OS === 'ios') ? 'HelveticaNeue' : 'Roboto_medium', 15 | iconFamily: 'Ionicons', 16 | 17 | subtitleColor: '#8e8e93', 18 | 19 | inverseTextColor: '#000', 20 | textColor: '#fff', 21 | 22 | fontSizeBase: 14, 23 | titleFontSize: (Platform.OS === 'ios') ? 17 : 19, 24 | subTitleFontSize: (Platform.OS === 'ios') ? 12 : 14, 25 | 26 | inputFontSize: 15, 27 | inputLineHeight: 18, 28 | 29 | get fontSizeH1() { 30 | return this.fontSizeBase * 1.8; 31 | }, 32 | get fontSizeH2() { 33 | return this.fontSizeBase * 1.6; 34 | }, 35 | get fontSizeH3() { 36 | return this.fontSizeBase * 1.4; 37 | }, 38 | get btnTextSize() { 39 | return (Platform.OS === 'ios') ? this.fontSizeBase * 1.1 : 40 | this.fontSizeBase - 1; 41 | }, 42 | get btnTextSizeLarge() { 43 | return this.fontSizeBase * 1.5; 44 | }, 45 | get btnTextSizeSmall() { 46 | return this.fontSizeBase * .8; 47 | }, 48 | get iconSizeLarge() { 49 | return this.iconFontSize * 1.5; 50 | }, 51 | get iconSizeSmall() { 52 | return this.iconFontSize * .6; 53 | }, 54 | 55 | buttonPadding: 6, 56 | 57 | borderRadiusBase: (Platform.OS === 'ios') ? 5 : 2, 58 | 59 | get borderRadiusLarge() { 60 | return this.fontSizeBase * 3.8; 61 | }, 62 | 63 | footerHeight: 55, 64 | toolbarHeight: (Platform.OS === 'ios') ? 64 : 56, 65 | toolbarDefaultBg: '#00c497', 66 | toolbarInverseBg: '#222', 67 | 68 | iosToolbarBtnColor: '#fff', 69 | 70 | toolbarTextColor: '#fff', 71 | 72 | checkboxBgColor: '#039BE5', 73 | checkboxTickColor: '#fff', 74 | 75 | checkboxSize: 23, 76 | 77 | radioColor: '#7e7e7e', 78 | get radioSelectedColor() { 79 | return Color(this.radioColor).darken(0.2).hexString(); 80 | }, 81 | 82 | radioBtnSize: (Platform.OS === 'ios') ? 25 : 23, 83 | 84 | tabBgColor: '#00c497', 85 | tabFontSize: 15, 86 | tabTextColor: '#fff', 87 | 88 | btnDisabledBg: '#b5b5b5', 89 | btnDisabledClr: '#f1f1f1', 90 | 91 | cardDefaultBg: '#fff', 92 | 93 | get darkenHeader() { 94 | return Color(this.tabBgColor).darken(0.03).hexString(); 95 | }, 96 | 97 | get statusBarColor() { 98 | return Color(this.toolbarDefaultBg).darken(0.1).hexString(); 99 | }, 100 | 101 | get btnPrimaryBg() { 102 | return this.brandPrimary; 103 | }, 104 | get btnPrimaryColor() { 105 | return this.inverseTextColor; 106 | }, 107 | get btnSuccessBg() { 108 | return this.brandSuccess; 109 | }, 110 | get btnSuccessColor() { 111 | return this.inverseTextColor; 112 | }, 113 | get btnDangerBg() { 114 | return this.brandDanger; 115 | }, 116 | get btnDangerColor() { 117 | return this.inverseTextColor; 118 | }, 119 | get btnInfoBg() { 120 | return this.brandInfo; 121 | }, 122 | get btnInfoColor() { 123 | return this.inverseTextColor; 124 | }, 125 | get btnWarningBg() { 126 | return this.brandWarning; 127 | }, 128 | get btnWarningColor() { 129 | return this.inverseTextColor; 130 | }, 131 | 132 | borderWidth: 1, 133 | iconMargin: 7, 134 | 135 | get inputColor() { 136 | return this.textColor; 137 | }, 138 | get inputColorPlaceholder() { 139 | return 'rgba(255, 255, 255, 1.0)'; 140 | }, 141 | 142 | inputBorderColor: '#fff', 143 | inputSuccessBorderColor: '#2b8339', 144 | inputErrorBorderColor: '#ed2f2f', 145 | inputHeightBase: 40, 146 | inputGroupMarginBottom: 10, 147 | inputPaddingLeft: 5, 148 | get inputPaddingLeftIcon() { 149 | return this.inputPaddingLeft * 8; 150 | }, 151 | 152 | btnLineHeight: 19, 153 | 154 | dropdownBg: '#000', 155 | dropdownLinkColor: '#414142', 156 | 157 | jumbotronPadding: 30, 158 | jumbotronBg: '#C9C9CE', 159 | 160 | contentPadding: 10, 161 | 162 | listBorderColor: 'rgba(181, 181, 181, 0.34)', 163 | listDividerBg: '#f2f2f2', 164 | listItemPadding: 15, 165 | listNoteColor: '#bababa', 166 | listNoteSize: 13, 167 | listBg: '#fff', 168 | 169 | iconFontSize: (Platform.OS === 'ios') ? 30 : 28, 170 | 171 | badgeColor: '#fff', 172 | badgeBg: '#ED1727', 173 | 174 | lineHeight: (Platform.OS === 'ios') ? 21 : 25, 175 | iconLineHeight: (Platform.OS === 'ios') ? 37 : 30, 176 | 177 | toolbarIconSize: (Platform.OS === 'ios') ? 20 : 22, 178 | 179 | toolbarInputColor: '#CECDD2', 180 | 181 | defaultSpinnerColor: '#45D56E', 182 | inverseSpinnerColor: '#1A191B', 183 | 184 | defaultProgressColor: '#E4202D', 185 | inverseProgressColor: '#1A191B' 186 | }; 187 | -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- 1 | export function createConstants(constants) { 2 | return constants.reduce((acc, constant) => { 3 | acc[constant] = constant; 4 | return acc; 5 | }, {}); 6 | } 7 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | {"compilerOptions":{"allowJs":true},"exclude":["node_modules"]} --------------------------------------------------------------------------------