7 |
8 | namespace facebook {
9 | namespace react {
10 | namespace unicode {
11 | std::string utf16toUTF8(const uint16_t* utf16, size_t length) noexcept;
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/ReactCommon/jschelpers/noncopyable.h:
--------------------------------------------------------------------------------
1 | // Copyright 2004-present Facebook. All Rights Reserved.
2 |
3 | #pragma once
4 | namespace facebook {
5 | namespace react {
6 | struct noncopyable {
7 | noncopyable(const noncopyable&) = delete;
8 | noncopyable& operator=(const noncopyable&) = delete;
9 | protected:
10 | noncopyable() = default;
11 | };
12 | }}
13 |
--------------------------------------------------------------------------------
/ReactCommon/yoga/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE := yogacore
6 |
7 | LOCAL_SRC_FILES := \
8 | yoga/Yoga.c \
9 | yoga/YGEnums.c \
10 | yoga/YGNodeList.c
11 |
12 | LOCAL_C_INCLUDES := $(LOCAL_PATH)
13 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
14 |
15 | LOCAL_CFLAGS := -Wall -Werror -fexceptions -frtti -std=c99 -O3
16 |
17 | include $(BUILD_STATIC_LIBRARY)
18 |
--------------------------------------------------------------------------------
/ReactCommon/yoga/BUCK:
--------------------------------------------------------------------------------
1 | cxx_library(
2 | name = "yoga",
3 | srcs = glob(["yoga/*.c"]),
4 | compiler_flags = [
5 | "-fno-omit-frame-pointer",
6 | "-fexceptions",
7 | "-Wall",
8 | "-Werror",
9 | "-std=c99",
10 | "-O3",
11 | ],
12 | exported_headers = glob(["yoga/*.h"]),
13 | force_static = True,
14 | header_namespace = "",
15 | visibility = ["PUBLIC"],
16 | deps = [
17 | ],
18 | )
19 |
--------------------------------------------------------------------------------
/Windows:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/Windows
--------------------------------------------------------------------------------
/babel-preset/index.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | module.exports = require('./configs/main');
12 |
--------------------------------------------------------------------------------
/blog/img/animated-diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/animated-diagram.png
--------------------------------------------------------------------------------
/blog/img/button-android-ios.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/button-android-ios.png
--------------------------------------------------------------------------------
/blog/img/git-upgrade-conflict.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/git-upgrade-conflict.png
--------------------------------------------------------------------------------
/blog/img/git-upgrade-output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/git-upgrade-output.png
--------------------------------------------------------------------------------
/blog/img/hmr-architecture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/hmr-architecture.png
--------------------------------------------------------------------------------
/blog/img/hmr-diamond.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/hmr-diamond.png
--------------------------------------------------------------------------------
/blog/img/hmr-log.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/hmr-log.png
--------------------------------------------------------------------------------
/blog/img/hmr-proxy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/hmr-proxy.png
--------------------------------------------------------------------------------
/blog/img/hmr-step.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/hmr-step.png
--------------------------------------------------------------------------------
/blog/img/rnmsf-august-2016-airbnb.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rnmsf-august-2016-airbnb.jpg
--------------------------------------------------------------------------------
/blog/img/rnmsf-august-2016-docs.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rnmsf-august-2016-docs.jpg
--------------------------------------------------------------------------------
/blog/img/rnmsf-august-2016-hero.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rnmsf-august-2016-hero.jpg
--------------------------------------------------------------------------------
/blog/img/rnmsf-august-2016-netflix.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rnmsf-august-2016-netflix.jpg
--------------------------------------------------------------------------------
/blog/img/rtl-ama-android-hebrew.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-ama-android-hebrew.png
--------------------------------------------------------------------------------
/blog/img/rtl-ama-ios-arabic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-ama-ios-arabic.png
--------------------------------------------------------------------------------
/blog/img/rtl-demo-forcertl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-demo-forcertl.png
--------------------------------------------------------------------------------
/blog/img/rtl-demo-icon-ltr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-demo-icon-ltr.png
--------------------------------------------------------------------------------
/blog/img/rtl-demo-icon-rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-demo-icon-rtl.png
--------------------------------------------------------------------------------
/blog/img/rtl-demo-listitem-ltr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-demo-listitem-ltr.png
--------------------------------------------------------------------------------
/blog/img/rtl-demo-listitem-rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-demo-listitem-rtl.png
--------------------------------------------------------------------------------
/blog/img/rtl-demo-swipe-ltr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-demo-swipe-ltr.png
--------------------------------------------------------------------------------
/blog/img/rtl-demo-swipe-rtl.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-demo-swipe-rtl.png
--------------------------------------------------------------------------------
/blog/img/rtl-rn-core-updates.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/rtl-rn-core-updates.png
--------------------------------------------------------------------------------
/blog/img/yarn-rncli.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/blog/img/yarn-rncli.png
--------------------------------------------------------------------------------
/bots/README.md:
--------------------------------------------------------------------------------
1 | Github bots and messages used by the Facebook Github bot.
2 |
--------------------------------------------------------------------------------
/breaking-changes.md:
--------------------------------------------------------------------------------
1 | # Breaking Changes
2 |
3 | **Breaking changes are now tracked in [the Wiki](https://github.com/facebook/react-native/wiki/Breaking-Changes)**.
4 |
--------------------------------------------------------------------------------
/cli.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | module.exports = require('./local-cli/cli.js');
12 |
--------------------------------------------------------------------------------
/docs/AndroidUIPerformance.md:
--------------------------------------------------------------------------------
1 | ---
2 | id: android-ui-performance
3 | title: Profiling Android UI Performance
4 | layout: redirect
5 | permalink: docs/android-ui-performance.html
6 | destinationUrl: performance.html
7 | ---
8 |
--------------------------------------------------------------------------------
/docs/RunningOnDeviceAndroid.md:
--------------------------------------------------------------------------------
1 | ---
2 | id: running-on-device-android
3 | title: Running On Device
4 | layout: redirect
5 | permalink: docs/running-on-device-android.html
6 | destinationUrl: running-on-device.html
7 | ---
8 |
--------------------------------------------------------------------------------
/docs/RunningOnDeviceIOS.md:
--------------------------------------------------------------------------------
1 | ---
2 | id: running-on-device-ios
3 | title: Running On Device
4 | layout: redirect
5 | permalink: docs/running-on-device-ios.html
6 | destinationUrl: running-on-device.html
7 | ---
8 |
--------------------------------------------------------------------------------
/flow/Position.js:
--------------------------------------------------------------------------------
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 | * @flow
10 | * @nolint
11 | */
12 |
13 | /* eslint-disable */
14 |
15 | declare class Position {
16 | coords: Coordinates,
17 | timestamp: number,
18 | mocked: boolean,
19 | }
20 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Jan 16 11:21:59 CST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/ios-cc.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh -x
2 |
3 | exec "$(xcrun -find -sdk iphoneos cc)" -arch armv7 -isysroot "$(xcrun -sdk iphoneos --show-sdk-path)" "$@"
4 |
--------------------------------------------------------------------------------
/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/keystores/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/keystores/debug.keystore
--------------------------------------------------------------------------------
/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/lib/README:
--------------------------------------------------------------------------------
1 | JS modules in this folder are forwarding modules to allow React to require React Native internals as node dependencies.
2 |
--------------------------------------------------------------------------------
/local-cli/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "extra-arrow-initializer": 0,
4 | "no-console-disallow": 0
5 | },
6 | "env": {
7 | "node": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/local-cli/bundle/__mocks__/sign.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | function sign(source) {
12 | return source;
13 | }
14 |
15 | module.exports = sign;
16 |
--------------------------------------------------------------------------------
/local-cli/bundle/output/unbundle/magic-number.js:
--------------------------------------------------------------------------------
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 | * @flow
10 | */
11 | 'use strict';
12 |
13 | module.exports = 0xFB0BD1E5;
14 |
--------------------------------------------------------------------------------
/local-cli/core/__fixtures__/commands.js:
--------------------------------------------------------------------------------
1 | exports.single = {
2 | func: () => {},
3 | description: 'Test action',
4 | name: 'test',
5 | };
6 |
7 | exports.multiple = [{
8 | func: () => {},
9 | description: 'Test action #1',
10 | name: 'test1',
11 | }, {
12 | func: () => {},
13 | description: 'Test action #2',
14 | name: 'test2',
15 | }];
16 |
--------------------------------------------------------------------------------
/local-cli/core/__fixtures__/files/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
--------------------------------------------------------------------------------
/local-cli/core/__fixtures__/files/Main.java:
--------------------------------------------------------------------------------
1 | package com.some.example;
2 |
3 | import java.util.ArrayList;
4 | import java.util.Arrays;
5 | import java.util.Collections;
6 | import java.util.List;
7 |
8 | public class SomeExamplePackage {}
9 |
--------------------------------------------------------------------------------
/local-cli/core/__fixtures__/ios.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | const path = require('path');
3 |
4 | exports.valid = {
5 | 'demoProject.xcodeproj': {
6 | 'project.pbxproj': fs.readFileSync(path.join(__dirname, './files/project.pbxproj')),
7 | },
8 | };
9 |
10 | exports.validTestName = {
11 | 'MyTestProject.xcodeproj': {
12 | 'project.pbxproj': fs.readFileSync(path.join(__dirname, './files/project.pbxproj')),
13 | },
14 | };
15 |
--------------------------------------------------------------------------------
/local-cli/core/windows/generateGUID.js:
--------------------------------------------------------------------------------
1 | const s4 = () => {
2 | return Math.floor((1 + Math.random()) * 0x10000)
3 | .toString(16)
4 | .substring(1);
5 | }
6 |
7 | module.exports = function generateGUID() {
8 | return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
9 | s4() + '-' + s4() + s4() + s4();
10 | }
11 |
--------------------------------------------------------------------------------
/local-cli/link/__fixtures__/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | UISupportedInterfaceOrientations
8 |
9 | UIInterfaceOrientationPortrait
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/local-cli/link/__fixtures__/android/build.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | compile fileTree(dir: "libs", include: ["*.jar"])
3 | compile "com.android.support:appcompat-v7:23.0.1"
4 | compile "com.facebook.react:react-native:0.18.+"
5 | }
6 |
--------------------------------------------------------------------------------
/local-cli/link/__fixtures__/android/patchedBuild.gradle:
--------------------------------------------------------------------------------
1 | dependencies {
2 | compile project(':test')
3 | compile fileTree(dir: "libs", include: ["*.jar"])
4 | compile "com.android.support:appcompat-v7:23.0.1"
5 | compile "com.facebook.react:react-native:0.18.+"
6 | }
7 |
--------------------------------------------------------------------------------
/local-cli/link/__fixtures__/android/patchedSettings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'TestRN'
2 |
3 | include ':app'
4 | include ':test'
5 | project(':test').projectDir = new File(rootProject.projectDir, '../node_modules/test/android')
6 |
--------------------------------------------------------------------------------
/local-cli/link/__fixtures__/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'TestRN'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/local-cli/link/android/fs.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs-extra');
2 |
3 | exports.readFile = (file) =>
4 | () => fs.readFileSync(file, 'utf8');
5 |
6 | exports.writeFile = (file, content) => content ?
7 | fs.writeFileSync(file, content, 'utf8') :
8 | (c) => fs.writeFileSync(file, c, 'utf8');
9 |
--------------------------------------------------------------------------------
/local-cli/link/android/isInstalled.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | const makeBuildPatch = require('./patches/makeBuildPatch');
3 |
4 | module.exports = function isInstalled(config, name) {
5 | return fs
6 | .readFileSync(config.buildGradlePath)
7 | .indexOf(makeBuildPatch(name).patch) > -1;
8 | };
9 |
--------------------------------------------------------------------------------
/local-cli/link/android/patches/applyPatch.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 |
3 | module.exports = function applyPatch(file, patch) {
4 | fs.writeFileSync(file, fs
5 | .readFileSync(file, 'utf8')
6 | .replace(patch.pattern, match => `${match}${patch.patch}`)
7 | );
8 | };
9 |
--------------------------------------------------------------------------------
/local-cli/link/android/patches/makeBuildPatch.js:
--------------------------------------------------------------------------------
1 | module.exports = function makeBuildPatch(name) {
2 | return {
3 | pattern: /[^ \t]dependencies {\n/,
4 | patch: ` compile project(':${name}')\n`,
5 | };
6 | };
7 |
--------------------------------------------------------------------------------
/local-cli/link/android/patches/makeImportPatch.js:
--------------------------------------------------------------------------------
1 | module.exports = function makeImportPatch(packageImportPath) {
2 | return {
3 | pattern: 'import com.facebook.react.ReactApplication;',
4 | patch: '\n' + packageImportPath,
5 | };
6 | };
7 |
--------------------------------------------------------------------------------
/local-cli/link/android/patches/makePackagePatch.js:
--------------------------------------------------------------------------------
1 | const applyParams = require('./applyParams');
2 |
3 | module.exports = function makePackagePatch(packageInstance, params, prefix) {
4 | const processedInstance = applyParams(packageInstance, params, prefix);
5 |
6 | return {
7 | pattern: 'new MainReactPackage()',
8 | patch: ',\n ' + processedInstance,
9 | };
10 | };
11 |
--------------------------------------------------------------------------------
/local-cli/link/android/patches/revokePatch.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 |
3 | module.exports = function revokePatch(file, patch) {
4 | fs.writeFileSync(file, fs
5 | .readFileSync(file, 'utf8')
6 | .replace(patch.patch, '')
7 | );
8 | };
9 |
--------------------------------------------------------------------------------
/local-cli/link/commandStub.js:
--------------------------------------------------------------------------------
1 | module.exports = (cb) => cb();
--------------------------------------------------------------------------------
/local-cli/link/getDependencyConfig.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Given an array of dependencies - it returns their RNPM config
3 | * if they were valid.
4 | */
5 | module.exports = function getDependencyConfig(config, deps) {
6 | return deps.reduce((acc, name) => {
7 | try {
8 | return acc.concat({
9 | config: config.getDependencyConfig(name),
10 | name,
11 | });
12 | } catch (err) {
13 | console.log(err);
14 | return acc;
15 | }
16 | }, []);
17 | };
18 |
--------------------------------------------------------------------------------
/local-cli/link/getProjectDependencies.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 |
3 | /**
4 | * Returns an array of dependencies that should be linked/checked.
5 | */
6 | module.exports = function getProjectDependencies() {
7 | const pjson = require(path.join(process.cwd(), './package.json'));
8 | return Object.keys(pjson.dependencies || {}).filter(name => name !== 'react-native');
9 | };
10 |
--------------------------------------------------------------------------------
/local-cli/link/ios/addFileToProject.js:
--------------------------------------------------------------------------------
1 | const PbxFile = require('xcode/lib/pbxFile');
2 |
3 | /**
4 | * Given xcodeproj and filePath, it creates new file
5 | * from path provided, adds it to the project
6 | * and returns newly created instance of a file
7 | */
8 | module.exports = function addFileToProject(project, filePath) {
9 | const file = new PbxFile(filePath);
10 | file.uuid = project.generateUuid();
11 | file.fileRef = project.generateUuid();
12 | project.addToPbxFileReferenceSection(file);
13 | return file;
14 | };
15 |
--------------------------------------------------------------------------------
/local-cli/link/ios/addProjectToLibraries.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Given an array of xcodeproj libraries and pbxFile,
3 | * it appends it to that group
4 | *
5 | * Important: That function mutates `libraries` and it's not pure.
6 | * It's mainly due to limitations of `xcode` library.
7 | */
8 | module.exports = function addProjectToLibraries(libraries, file) {
9 | return libraries.children.push({
10 | value: file.fileRef,
11 | comment: file.basename,
12 | });
13 | };
14 |
--------------------------------------------------------------------------------
/local-cli/link/ios/addSharedLibraries.js:
--------------------------------------------------------------------------------
1 | const createGroupWithMessage = require('./createGroupWithMessage');
2 |
3 | module.exports = function addSharedLibraries(project, libraries) {
4 | if (!libraries.length) {
5 | return;
6 | }
7 |
8 | // Create a Frameworks group if necessary.
9 | createGroupWithMessage(project, 'Frameworks');
10 |
11 | const target = project.getFirstTarget().uuid;
12 |
13 | for (var name of libraries) {
14 | project.addFramework(name, { target });
15 | }
16 | };
17 |
--------------------------------------------------------------------------------
/local-cli/link/ios/addToHeaderSearchPaths.js:
--------------------------------------------------------------------------------
1 | const mapHeaderSearchPaths = require('./mapHeaderSearchPaths');
2 |
3 | module.exports = function addToHeaderSearchPaths(project, path) {
4 | mapHeaderSearchPaths(project, searchPaths => searchPaths.concat(path));
5 | };
6 |
--------------------------------------------------------------------------------
/local-cli/link/ios/getPlistPath.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 | const getBuildProperty = require('./getBuildProperty');
3 |
4 | module.exports = function getPlistPath(project, sourceDir) {
5 | const plistFile = getBuildProperty(project, 'INFOPLIST_FILE');
6 |
7 | if (!plistFile) {
8 | return null;
9 | }
10 |
11 | return path.join(
12 | sourceDir,
13 | plistFile.replace(/"/g, '').replace('$(SRCROOT)', '')
14 | );
15 | };
16 |
--------------------------------------------------------------------------------
/local-cli/link/ios/getProducts.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Given xcodeproj it returns list of products ending with
3 | * .a extension, so that we know what elements add to target
4 | * project static library
5 | */
6 | module.exports = function getProducts(project) {
7 | return project
8 | .pbxGroupByName('Products')
9 | .children
10 | .map(c => c.comment)
11 | .filter(c => c.indexOf('.a') > -1);
12 | };
13 |
--------------------------------------------------------------------------------
/local-cli/link/ios/hasLibraryImported.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Given an array of libraries already imported and packageName that will be
3 | * added, returns true or false depending on whether the library is already linked
4 | * or not
5 | */
6 | module.exports = function hasLibraryImported(libraries, packageName) {
7 | return libraries.children
8 | .filter(library => library.comment === packageName)
9 | .length > 0;
10 | };
11 |
--------------------------------------------------------------------------------
/local-cli/link/ios/removeFromHeaderSearchPaths.js:
--------------------------------------------------------------------------------
1 | const mapHeaderSearchPaths = require('./mapHeaderSearchPaths');
2 |
3 | /**
4 | * Given Xcode project and absolute path, it makes sure there are no headers referring to it
5 | */
6 | module.exports = function addToHeaderSearchPaths(project, path) {
7 | mapHeaderSearchPaths(project,
8 | searchPaths => searchPaths.filter(searchPath => searchPath !== path)
9 | );
10 | };
11 |
--------------------------------------------------------------------------------
/local-cli/link/ios/removeFromPbxReferenceProxySection.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Every file added to the project from another project is attached to
3 | * `PBXItemContainerProxy` through `PBXReferenceProxy`.
4 | */
5 | module.exports = function removeFromPbxReferenceProxySection(project, file) {
6 | const section = project.hash.project.objects.PBXReferenceProxy;
7 |
8 | for (var key of Object.keys(section)) {
9 | if (section[key].path === file.basename) {
10 | delete section[key];
11 | }
12 | }
13 |
14 | return;
15 | };
16 |
--------------------------------------------------------------------------------
/local-cli/link/ios/removeProductGroup.js:
--------------------------------------------------------------------------------
1 | module.exports = function removeProductGroup(project, productGroupId) {
2 | const section = project.hash.project.objects.PBXGroup;
3 |
4 | for (var key of Object.keys(section)) {
5 | if (key === productGroupId) {
6 | delete section[key];
7 | }
8 | }
9 |
10 | return;
11 | };
12 |
--------------------------------------------------------------------------------
/local-cli/link/ios/removeProjectFromLibraries.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Given an array of xcodeproj libraries and pbxFile,
3 | * it removes it from that group by comparing basenames
4 | *
5 | * Important: That function mutates `libraries` and it's not pure.
6 | * It's mainly due to limitations of `xcode` library.
7 | */
8 | module.exports = function removeProjectFromLibraries(libraries, file) {
9 | libraries.children = libraries.children.filter(library =>
10 | library.comment !== file.basename
11 | );
12 | };
13 |
--------------------------------------------------------------------------------
/local-cli/link/ios/removeSharedLibraries.js:
--------------------------------------------------------------------------------
1 | module.exports = function removeSharedLibraries(project, libraries) {
2 | if (!libraries.length) {
3 | return;
4 | }
5 |
6 | const target = project.getFirstTarget().uuid;
7 |
8 | for (var name of libraries) {
9 | project.removeFramework(name, { target });
10 | }
11 | };
12 |
--------------------------------------------------------------------------------
/local-cli/link/pollParams.js:
--------------------------------------------------------------------------------
1 | var inquirer = require('inquirer');
2 |
3 | module.exports = (questions) => new Promise((resolve, reject) => {
4 | if (!questions) {
5 | return resolve({});
6 | }
7 |
8 | inquirer.prompt(questions, resolve);
9 | });
10 |
--------------------------------------------------------------------------------
/local-cli/link/promiseWaterfall.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Given an array of promise creators, executes them in a sequence.
3 | *
4 | * If any of the promises in the chain fails, all subsequent promises
5 | * will be skipped
6 | *
7 | * Returns the value last promise from a sequence resolved
8 | */
9 | module.exports = function promiseWaterfall(tasks) {
10 | return tasks.reduce(
11 | (prevTaskPromise, task) => prevTaskPromise.then(task),
12 | Promise.resolve()
13 | );
14 | };
15 |
--------------------------------------------------------------------------------
/local-cli/link/promisify.js:
--------------------------------------------------------------------------------
1 | module.exports = (func) => new Promise((resolve, reject) =>
2 | func((err, res) => err ? reject(err) : resolve(res))
3 | );
--------------------------------------------------------------------------------
/local-cli/link/windows/isInstalled.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | const makeUsingPatch = require('./patches/makeUsingPatch');
3 |
4 | module.exports = function isInstalled(config, dependencyConfig) {
5 | return fs
6 | .readFileSync(config.mainPage)
7 | .indexOf(makeUsingPatch(dependencyConfig.packageUsingPath).patch) > -1;
8 | };
9 |
--------------------------------------------------------------------------------
/local-cli/link/windows/patches/applyPatch.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 |
3 | module.exports = function applyPatch(file, patch, flip = false) {
4 |
5 | fs.writeFileSync(file, fs
6 | .readFileSync(file, 'utf8')
7 | .replace(patch.pattern, match => {
8 | return flip ? `${patch.patch}${match}` : `${match}${patch.patch}`
9 | })
10 | );
11 | };
12 |
--------------------------------------------------------------------------------
/local-cli/link/windows/patches/makePackagePatch.js:
--------------------------------------------------------------------------------
1 | const applyParams = require('./applyParams');
2 |
3 | module.exports = function makePackagePatch(packageInstance, params, prefix) {
4 | const processedInstance = applyParams(packageInstance, params, prefix);
5 |
6 | return {
7 | pattern: 'new MainReactPackage()',
8 | patch: ',\n ' + processedInstance,
9 | };
10 | };
11 |
--------------------------------------------------------------------------------
/local-cli/link/windows/patches/makeSolutionPatch.js:
--------------------------------------------------------------------------------
1 | module.exports = function makeSolutionPatch(windowsConfig) {
2 |
3 | const solutionInsert = `Project("{${windowsConfig.projectGUID.toUpperCase()}}") = "${windowsConfig.projectName}", "${windowsConfig.relativeProjPath}", "{${windowsConfig.pathGUID.toUpperCase()}}"
4 | EndProject
5 | `;
6 |
7 | return {
8 | pattern: 'Global',
9 | patch: solutionInsert,
10 | unpatch: new RegExp(`Project.+${windowsConfig.projectName}.+\\s+EndProject\\s+`),
11 | };
12 | };
13 |
--------------------------------------------------------------------------------
/local-cli/link/windows/patches/makeUsingPatch.js:
--------------------------------------------------------------------------------
1 | module.exports = function makeUsingPatch(packageImportPath) {
2 | return {
3 | pattern: 'using ReactNative.Modules.Core;',
4 | patch: '\n' + packageImportPath,
5 | };
6 | };
7 |
--------------------------------------------------------------------------------
/local-cli/link/windows/patches/revokePatch.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 |
3 | module.exports = function revokePatch(file, patch) {
4 | const unpatch = patch.unpatch || patch.patch
5 | fs.writeFileSync(file, fs
6 | .readFileSync(file, 'utf8')
7 | .replace(unpatch, '')
8 | );
9 | };
10 |
--------------------------------------------------------------------------------
/local-cli/server/middleware/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | React Native
5 |
6 |
7 | React Native packager is running.
8 | Visit documentation
9 |
10 |
11 |
--------------------------------------------------------------------------------
/local-cli/server/util/external/xsel:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/server/util/external/xsel
--------------------------------------------------------------------------------
/local-cli/setup_env.bat:
--------------------------------------------------------------------------------
1 | :: Copyright (c) 2015-present, Facebook, Inc.
2 | :: All rights reserved.
3 | ::
4 | :: This source code is licensed under the BSD-style license found in the
5 | :: LICENSE file in the root directory of this source tree. An additional grant
6 | :: of patent rights can be found in the PATENTS file in the same directory.
7 |
--------------------------------------------------------------------------------
/local-cli/setup_env.sh:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2015-present, Facebook, Inc.
2 | # All rights reserved.
3 | #
4 | # This source code is licensed under the BSD-style license found in the
5 | # LICENSE file in the root directory of this source tree. An additional grant
6 | # of patent rights can be found in the PATENTS file in the same directory.
7 |
8 | # 2048 is the max for non root users on Mac
9 | ulimit -n 2048
10 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloNavigation/dependencies.json:
--------------------------------------------------------------------------------
1 | {
2 | "react-navigation": "1.0.0-beta.5"
3 | }
4 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloNavigation/index.android.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native';
2 |
3 | import MainNavigator from './views/MainNavigator';
4 |
5 | AppRegistry.registerComponent('HelloWorld', () => MainNavigator);
6 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloNavigation/index.ios.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native';
2 |
3 | import MainNavigator from './views/MainNavigator';
4 |
5 | AppRegistry.registerComponent('HelloWorld', () => MainNavigator);
6 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloNavigation/views/chat/chat-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/templates/HelloNavigation/views/chat/chat-icon.png
--------------------------------------------------------------------------------
/local-cli/templates/HelloNavigation/views/welcome/welcome-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/templates/HelloNavigation/views/welcome/welcome-icon.png
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/__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 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/__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 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/_babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
4 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/_buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/_gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/_watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/app/src/main/java/com/helloworld/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.helloworld;
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 "HelloWorld";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/templates/HelloWorld/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Hello App Display Name
3 |
4 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/local-cli/templates/HelloWorld/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/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.14.1-all.zip
6 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = "debug",
3 | properties = "debug.keystore.properties",
4 | store = "debug.keystore",
5 | visibility = [
6 | "PUBLIC",
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/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 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'HelloWorld'
2 |
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/local-cli/templates/HelloWorld/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "HelloWorld",
3 | "displayName": "HelloWorld"
4 | }
--------------------------------------------------------------------------------
/local-cli/util/__mocks__/log.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | module.exports.out = () => jest.genMockFn();
12 | module.exports.err = () => jest.genMockFn();
13 |
--------------------------------------------------------------------------------
/local-cli/util/isValidPackageName.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | function isValidPackageName(name) {
12 | return name.match(/^[$A-Z_][0-9A-Z_$]*$/i);
13 | }
14 |
15 | module.exports = isValidPackageName;
16 |
--------------------------------------------------------------------------------
/packager/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "extra-arrow-initializer": 0,
4 | "no-console-disallow": 0
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packager/index.js:
--------------------------------------------------------------------------------
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 | * @flow
10 | */
11 |
12 | 'use strict';
13 |
14 | require('../setupBabel')();
15 | module.exports = require('./react-packager');
16 |
--------------------------------------------------------------------------------
/packager/launchPackager.bat:
--------------------------------------------------------------------------------
1 | :: Copyright (c) 2015-present, Facebook, Inc.
2 | :: All rights reserved.
3 | ::
4 | :: This source code is licensed under the BSD-style license found in the
5 | :: LICENSE file in the root directory of this source tree. An additional grant
6 | :: of patent rights can be found in the PATENTS file in the same directory.
7 |
8 | @echo off
9 | title React Packager
10 | node "%~dp0..\local-cli\cli.js" start
11 | pause
12 | exit
13 |
--------------------------------------------------------------------------------
/packager/packager.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Copyright (c) 2015-present, Facebook, Inc.
4 | # All rights reserved.
5 | #
6 | # This source code is licensed under the BSD-style license found in the
7 | # LICENSE file in the root directory of this source tree. An additional grant
8 | # of patent rights can be found in the PATENTS file in the same directory.
9 |
10 | THIS_DIR=$(dirname "$0")
11 | node "$THIS_DIR/../local-cli/cli.js" start "$@"
12 |
--------------------------------------------------------------------------------
/packager/rn-babelrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [ "react-native" ],
3 | "plugins": []
4 | }
5 |
--------------------------------------------------------------------------------
/packager/src/Bundler/source-map/package.json:
--------------------------------------------------------------------------------
1 | {"main": "source-map.js"}
2 |
--------------------------------------------------------------------------------
/packager/src/JSTransformer/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/packager/src/JSTransformer/README.md
--------------------------------------------------------------------------------
/packager/src/JSTransformer/__mocks__/worker.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | module.exports = function(data, callback) {
12 | callback(null, {});
13 | };
14 |
--------------------------------------------------------------------------------
/packager/src/JSTransformer/worker/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2016-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 | 'use strict';
11 |
12 | require('../../../../setupBabel')();
13 | module.exports = require('./worker');
14 |
--------------------------------------------------------------------------------
/packager/src/ModuleGraph/node-haste/package.json:
--------------------------------------------------------------------------------
1 | {"main":"node-haste.js"}
2 |
--------------------------------------------------------------------------------
/packager/src/ModuleGraph/package.json:
--------------------------------------------------------------------------------
1 | {"main": "ModuleGraph.js"}
2 |
--------------------------------------------------------------------------------
/packager/src/Server/symbolicate/package.json:
--------------------------------------------------------------------------------
1 | {"main": "./symbolicate.js"}
2 |
--------------------------------------------------------------------------------
/packager/src/__mocks__/debug.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | module.exports = () => () => {};
12 |
--------------------------------------------------------------------------------
/packager/src/lib/__mocks__/GlobalTransformCache.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2016-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 | * @flow
10 | */
11 |
12 | 'use strict';
13 |
14 | function get() {
15 | return null;
16 | }
17 |
18 | module.exports = {get};
19 |
--------------------------------------------------------------------------------
/packager/src/node-haste/DependencyGraph/assets/empty-module.js:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/packager/src/node-haste/__mocks__/fs.js:
--------------------------------------------------------------------------------
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 | 'use strict';
10 |
11 | module.exports = require('graceful-fs');
12 |
--------------------------------------------------------------------------------
/runXcodeTests.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Run from react-native root
4 |
5 | set -e
6 |
7 | if [ -z "$1" ]
8 | then
9 | echo "You must supply an OS version as the first arg, e.g. 8.1"
10 | exit 255
11 | fi
12 |
13 | xctool \
14 | -project Examples/UIExplorer/UIExplorer.xcodeproj \
15 | -scheme UIExplorer \
16 | -sdk iphonesimulator${1} \
17 | -destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \
18 | build test
19 |
--------------------------------------------------------------------------------
/scripts/objc-test-ios.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -ex
3 |
4 | SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
5 | ROOT=$(dirname "$SCRIPTS")
6 |
7 | cd "$ROOT"
8 |
9 | SCHEME="UIExplorer"
10 | SDK="iphonesimulator"
11 | DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=10.1"
12 | TEST="test"
13 |
14 | . ./scripts/objc-test.sh
15 |
16 |
--------------------------------------------------------------------------------
/scripts/objc-test-tvos.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -ex
3 |
4 | SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
5 | ROOT=$(dirname "$SCRIPTS")
6 |
7 | cd "$ROOT"
8 |
9 | SCHEME="UIExplorer-tvOS"
10 | SDK="appletvsimulator"
11 | DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p,OS=10.1"
12 | # Uncomment the line below to enable tvOS testing
13 | #TEST="test"
14 |
15 | . ./scripts/objc-test.sh
16 |
17 |
--------------------------------------------------------------------------------
/scripts/run-android-local-unit-tests.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Runs all Android unit tests locally.
4 | # See http://facebook.github.io/react-native/docs/testing.html
5 |
6 | source $(dirname $0)/validate-android-sdk.sh
7 | source $(dirname $0)/validate-android-test-env.sh
8 |
9 | set -e
10 |
11 | echo "Fetching dependencies..."
12 | buck fetch ReactAndroid/src/test/...
13 |
14 | echo "Running unit tests..."
15 | buck test ReactAndroid/src/test/...
16 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | // Copyright 2004-present Facebook. All Rights Reserved.
2 |
3 | include ':ReactAndroid', ':Examples:UIExplorer:android:app', ':Examples:Movies:android:app', ':Examples:TicTacToe:android:app'
4 |
--------------------------------------------------------------------------------
/website/.gitignore:
--------------------------------------------------------------------------------
1 | src/react-native/docs/**
2 | src/react-native/blog/**
3 | core/metadata*
4 | server/metadata*
5 | *.log
6 | /build/
7 |
--------------------------------------------------------------------------------
/website/jsdocs/jsdoc-conf.json:
--------------------------------------------------------------------------------
1 | {
2 | "tags": {
3 | "allowUnknownTags": true,
4 | "dictionaries": ["jsdoc","closure"]
5 | },
6 | "source": {
7 | "includePattern": ".+\\.js(doc)?$",
8 | "excludePattern": "(^|\\/|\\\\)_"
9 | },
10 | "plugins": ["./jsdocs/jsdoc-plugin-values"],
11 | "templates": {
12 | "cleverLinks": true,
13 | "monospaceLinks": false
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/website/src/react-native/circle.yml:
--------------------------------------------------------------------------------
1 | general:
2 | branches:
3 | ignore:
4 | - gh-pages
5 |
--------------------------------------------------------------------------------
/website/src/react-native/img/AddToBuildPhases.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AddToBuildPhases.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AddToLibraries.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AddToLibraries.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AddToSearchPaths.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AddToSearchPaths.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidAVDConfiguration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidAVDConfiguration.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidDevServerDialog.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidDevServerDialog.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidDevSettings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidDevSettings.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidDeveloperMenu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidDeveloperMenu.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidSDK1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidSDK1.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidSDK2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidSDK2.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidSDKManager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidSDKManager.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AndroidSuccess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AndroidSuccess.png
--------------------------------------------------------------------------------
/website/src/react-native/img/AnimatedFadeInView.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AnimatedFadeInView.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/AnimationExperimentalOpacity.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AnimationExperimentalOpacity.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/AnimationExperimentalScaleXY.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/AnimationExperimentalScaleXY.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/CreateAVD.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/CreateAVD.png
--------------------------------------------------------------------------------
/website/src/react-native/img/DeveloperMenu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/DeveloperMenu.png
--------------------------------------------------------------------------------
/website/src/react-native/img/EmbeddedAppAndroid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/EmbeddedAppAndroid.png
--------------------------------------------------------------------------------
/website/src/react-native/img/EmbeddedAppContainerViewExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/EmbeddedAppContainerViewExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/EmbeddedAppExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/EmbeddedAppExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/LayoutAnimationExample.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/LayoutAnimationExample.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/NavigationStack-Navigator.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/NavigationStack-Navigator.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/NavigationStack-NavigatorIOS.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/NavigationStack-NavigatorIOS.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/ObjectObserveError.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/ObjectObserveError.png
--------------------------------------------------------------------------------
/website/src/react-native/img/Rebound.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/Rebound.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/ReboundExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/ReboundExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/ReboundImage.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/ReboundImage.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/StaticImageAssets.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/StaticImageAssets.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceBadCreateUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceBadCreateUI.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceBadJS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceBadJS.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceBadJS2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceBadJS2.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceBadUI.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceBadUI.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceHighlightVSync.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceHighlightVSync.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceJSThreadExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceJSThreadExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceNativeModulesThreadExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceNativeModulesThreadExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceRenderThreadExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceRenderThreadExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceUIThreadExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceUIThreadExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/SystraceWellBehaved.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/SystraceWellBehaved.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialFinal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialFinal.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialFinal2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialFinal2.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialMock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialMock.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialMock2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialMock2.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialSingleFetched.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialSingleFetched.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialSingleFetched2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialSingleFetched2.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialStyledMock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialStyledMock.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TutorialStyledMock2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TutorialStyledMock2.png
--------------------------------------------------------------------------------
/website/src/react-native/img/TweenState.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/TweenState.gif
--------------------------------------------------------------------------------
/website/src/react-native/img/Warning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/Warning.png
--------------------------------------------------------------------------------
/website/src/react-native/img/XcodeCommandLineTools.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/XcodeCommandLineTools.png
--------------------------------------------------------------------------------
/website/src/react-native/img/alertIOS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/alertIOS.png
--------------------------------------------------------------------------------
/website/src/react-native/img/author.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/author.png
--------------------------------------------------------------------------------
/website/src/react-native/img/buttonExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/buttonExample.png
--------------------------------------------------------------------------------
/website/src/react-native/img/chrome_breakpoint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/chrome_breakpoint.png
--------------------------------------------------------------------------------
/website/src/react-native/img/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/favicon.png
--------------------------------------------------------------------------------
/website/src/react-native/img/header_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/header_logo.png
--------------------------------------------------------------------------------
/website/src/react-native/img/iOSSuccess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/iOSSuccess.png
--------------------------------------------------------------------------------
/website/src/react-native/img/opengraph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/opengraph.png
--------------------------------------------------------------------------------
/website/src/react-native/img/oss_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/oss_logo.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-add-react-native-integration-example-high-scores.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-add-react-native-integration-example-high-scores.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-add-react-native-integration-example-home-screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-add-react-native-integration-example-home-screen.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-add-react-native-integration-link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-add-react-native-integration-link.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-add-react-native-integration-wire-up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-add-react-native-integration-wire-up.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-sdk-environment-variable-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-sdk-environment-variable-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-additional-installs-linux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-additional-installs-linux.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-additional-installs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-additional-installs.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-android-sdk-build-tools-linux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-android-sdk-build-tools-linux.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-android-sdk-build-tools-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-android-sdk-build-tools-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-android-sdk-build-tools.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-android-sdk-build-tools.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-android-sdk-platforms-linux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-android-sdk-platforms-linux.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-android-sdk-platforms-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-android-sdk-platforms-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-android-sdk-platforms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-android-sdk-platforms.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-avd-linux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-avd-linux.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-avd-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-avd-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-avd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-avd.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-configure-sdk-linux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-configure-sdk-linux.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-configure-sdk-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-configure-sdk-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-configure-sdk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-configure-sdk.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-custom-install-linux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-custom-install-linux.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-custom-install-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-custom-install-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-custom-install.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-custom-install.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-kvm-linux.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-kvm-linux.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-no-virtual-device-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-no-virtual-device-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-studio-verify-installs-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-studio-verify-installs-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-android-tools-environment-variable-windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-android-tools-environment-variable-windows.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-congratulations.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-congratulations.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-existing-app-integration-ios-before.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-existing-app-integration-ios-before.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-sdk-platforms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-sdk-platforms.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-sorry-not-supported.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-sorry-not-supported.png
--------------------------------------------------------------------------------
/website/src/react-native/img/react-native-tools-avd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/react-native-tools-avd.png
--------------------------------------------------------------------------------
/website/src/react-native/img/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/search.png
--------------------------------------------------------------------------------
/website/src/react-native/img/showcase/wmt_spark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/showcase/wmt_spark.png
--------------------------------------------------------------------------------
/website/src/react-native/img/survey.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/survey.png
--------------------------------------------------------------------------------
/website/src/react-native/img/uiexplorer_main_android.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/uiexplorer_main_android.png
--------------------------------------------------------------------------------
/website/src/react-native/img/uiexplorer_main_ios.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/airbnb/react-native/78acaa55a2b925c3248cdc4532b989b6a120a669/website/src/react-native/img/uiexplorer_main_ios.png
--------------------------------------------------------------------------------
/website/src/react-native/movies.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "The Basics - Networking",
3 | "description": "Your app fetched this from a remote endpoint!",
4 | "movies": [
5 | { "title": "Star Wars", "releaseYear": "1977"},
6 | { "title": "Back to the Future", "releaseYear": "1985"},
7 | { "title": "The Matrix", "releaseYear": "1999"},
8 | { "title": "Inception", "releaseYear": "2010"},
9 | { "title": "Interstellar", "releaseYear": "2014"}
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------