A framework for building native apps with React.
JavaScript Java Objective-C C++ Objective-C++ C Other
Latest commit bb26671 Mar 16, 2017 @jeanlauliac jeanlauliac committed with facebook-github-bot packager: GlobalTransformCache: finish conversion to async/await
Reviewed By: davidaurelio

Differential Revision: D4713456

fbshipit-source-id: f65c45439d1657872e28a296f13a73ee2032ea93
Permalink
Failed to load latest commit information.
Image .github Shorten template instructions. Mar 16, 2017
Image ContainerShip Docker Testing Environment for Android & JS Feb 24, 2017
Image Examples Rename *Component props to match SectionList Mar 13, 2017
Image IntegrationTests Add @providesModule annotations Feb 27, 2017
Image JSCLegacyProfiler Add suport for JSC profiling on iOS 9 Nov 16, 2015
Image Libraries Fix TextInput 'defaultValue' propTypes to 'string' Mar 16, 2017
Image React Adding in missing wrapper invocation. Mar 16, 2017
Image ReactAndroid Missing @DoNotStrip Mar 15, 2017
Image ReactCommon BREAKING: Only call batchDidComplete when there were actually native … Mar 16, 2017
Image babel-preset Update babel-preset, filter path by identifiers. Nov 23, 2016
Image blog Fix example code Mar 13, 2017
Image bots Product Pains -> Canny Feb 17, 2017
Image docs Update Podfile documentation for RN >= 0.42.0 Mar 15, 2017
Image flow amend babel definitions to allow inline plugins without configuration Jan 20, 2017
Image gradle/wrapper Android - Update Gradle to 2.2.3 Jan 31, 2017
Image jest Fix incorrect line numbers in test failures Feb 22, 2017
Image keystores Apply auto-formatter for BUCK files in fbandroid. Feb 27, 2017
Image lib Reorganize core JS files Oct 11, 2016
Image local-cli Add TextLayoutBuilder proguard rule Mar 16, 2017
Image packager packager: GlobalTransformCache: finish conversion to async/await Mar 16, 2017
Image react-native-cli Cast name to String to ensure .match is available Feb 18, 2017
Image react-native-git-upgrade Fix react-native-git-upgrade cache busting Feb 19, 2017
Image scripts Don't merge before Circle CI tests pass: Re-enable Android e2e test Mar 15, 2017
Image website Add a bit more spacing between p elements on website Mar 14, 2017
Image .buckconfig Allow building UIExplorer with Buck Apr 12, 2016
Image .buckjavaargs limiting BUCK's memory for CI Feb 1, 2016
Image .editorconfig Fix indent of .gradle files Oct 19, 2016
Image .eslintignore [ReactNative] clean lint in all of Libraries/ May 19, 2015
Image .eslintrc XHR: support typed arrays for request payloads Jan 21, 2017
Image .flowconfig fbobjc Mar 5, 2017
Image .gitattributes Added a .gitattributes file, ensuring that Bash script source files (… Oct 14, 2015
Image .gitignore Run install third party script as part of the xcode build Mar 6, 2017
Image .npmignore Update .npmignore to include generated bundle file Feb 3, 2017
Image .travis.yml Clean up objc-test-ios.sh, include tvOS build check Mar 6, 2017
Image CONTRIBUTING.md Shorten template instructions. Mar 16, 2017
Image DockerTests.md Docker Testing Environment for Android & JS Feb 24, 2017
Image Jenkinsfile Docker Testing Environment for Android & JS Feb 24, 2017
Image LICENSE Update license Mar 23, 2015
Image LICENSE-CustomComponents Add CustomComponents license Mar 26, 2015
Image LICENSE-docs More licenses Mar 25, 2015
Image LICENSE-examples More licenses Mar 25, 2015
Image PATENTS Update Patent Grant Apr 10, 2015
Image README.md Product Pains -> Canny Feb 17, 2017
Image React.podspec Try to fix tvOS and podspec builds Mar 10, 2017
Image Releases.md Support the --remote option in bump-oss-version.js script Feb 6, 2017
Image Windows Fix tutorial link in README.md Jun 14, 2016
Image breaking-changes.md DOCS ONLY: Update breaking changes location in breaking-changes.md: m… Feb 3, 2017
Image build.gradle Update gradle-download-task from 2.0.0 to 3.1.2 to fix boost zip down… Dec 8, 2016
Image circle.yml Don't merge before Circle CI tests pass: Re-enable Android e2e test Mar 15, 2017
Image cli.js packager: centralize babelRegisterOnly callsites Jan 6, 2017
Image gradlew Update gradle wrapper binary and scripts Sep 9, 2016
Image gradlew.bat Update gradle wrapper binary and scripts Sep 9, 2016
Image ios-cc.sh Add scripts to fetch external third-party dependencies. Feb 1, 2017
Image ios-install-third-party.sh Update Boost dependency to 1.63 on iOS Mar 10, 2017
Image jest-preset.json Add missing slash. Dec 8, 2016
Image package.json Allow Promise to display error strings and not just error objects. Mar 9, 2017
Image react.gradle Fix missing static images when using data binding Sep 28, 2016
Image rn-cli.config.js Add a local packager config, so that react can find react-native when… Jul 5, 2016
Image runXcodeTests.sh Add suggested �?view size’ powers to -[RCTShadowView setFrame:] Mar 1, 2016
Image settings.gradle Android: TicTacToe Example Project Aug 9, 2016
Image setupBabel.js Remove `react-packager` indirection. Feb 2, 2017

README.md

React Native Build Status Circle CI npm version

React Native enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere. Facebook uses React Native in multiple production apps and will continue investing in React Native.

Supported operating systems are >= Android 4.1 (API 16) and >= iOS 8.0.

Introduction

See the official React Native website for an introduction to React Native.

Getting Started

Getting Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.

  • Ask a question on StackOverflow and tag it with react-native
  • Chat with us on Reactiflux in #react-native
  • Articulate your feature request or upvote existing ones on Canny
  • Start a thread on the React Discussion Board
  • Join #reactnative on IRC: chat.freenode.net
  • If it turns out that you may have found a bug, please open an issue

Documentation

The website’s documentation is divided into multiple sections.

Another great way to learn more about the components and APIs included with React Native is to read their source. Look under the Libraries directory for components like ScrollView and Navigator, for example. The UIExplorer example is also here to demonstrate some of the ways to use these components. From the source you can get an accurate understanding of each component’s behavior and API.

The React Native documentation only discusses the components, APIs and topics specific to React Native (React on iOS and Android). For further documentation on the React API that is shared between React Native and React DOM, refer to the React documentation.

Examples

  • git clone https://github.com/facebook/react-native.git
  • cd react-native && npm install

Running the examples on iOS

Now open any example (the .xcodeproj file in each of the Examples subdirectories) and hit Run in Xcode.

Running the examples on Android

Note that you'll need the Android NDK installed, see prerequisites.

./gradlew :Examples:Movies:android:app:installDebug
# Start the packager in a separate shell (make sure you ran npm install):
./packager/packager.sh
# Open the Movies app in your emulator

Extending React Native

  • Looking for a component? JS.coach
  • Fellow developers write and publish React Native modules to npm and open source them on GitHub.
  • Making modules helps grow the React Native ecosystem and community. We recommend writing modules for your use cases and sharing them on npm.
  • Read the guides on Native Modules (iOS, Android) and Native UI Components (iOS, Android) if you are interested in extending native functionality.

Upgrading

React Native is under active development. See the guide on upgrading React Native to keep your project up-to-date.

Opening Issues

If you encounter a bug with React Native we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of React Native and OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.

The GitHub issues are intended for bug reports and feature requests. For help and questions with using React Native please make use of the resources listed in the Getting Help section. Canny in particular is a good way to signal your interest in a feature or issue. There are limited resources available for handling issues and by keeping the list of open issues lean we can respond in a timely manner.

Contributing

For more information about contributing PRs and issues, see our Contribution Guidelines.

Good First Task is a great starting point for PRs.

We encourage the community to ask and answer questions on Stack Overflow with the react-native tag. It's a great way to help out and be involved!

License

React is BSD licensed. We also provide an additional patent grant.

React documentation is Creative Commons licensed.

Examples provided in this repository and in the documentation are separately licensed, as are some of the custom components.