Skip to content
A framework for building native apps with React.
Java JavaScript Objective-C C++ Python C Other
Latest commit d9adeb9 Jun 21, 2016 @Emilios1995 Emilios1995 committed with Facebook Github Bot 4 Include info about console.log
Summary:
I spent so much time trying to optimize my JS without noticing this.
Closes #8285

Differential Revision: D3468707

fbshipit-source-id: bd5ff38ca2501891318b4be3c75bdaa10a4c64da
Failed to load latest commit information.
.github move templates to .github folder Jun 13, 2016
Examples Add example for <NavigationTransitioner /> Jun 21, 2016
IntegrationTests explicit type args in react-native-github May 24, 2016
JSCLegacyProfiler Add suport for JSC profiling on iOS 9 Nov 16, 2015
Libraries Kill NavigationAnimatedView Jun 21, 2016
React Fix React.xcodeproj by adding recently added RCTI18nUtil.* files Jun 21, 2016
ReactAndroid Decompose transform matrix in native (for android). Jun 21, 2016
ReactCommon/cxxreact if !WITH_JSCEXTENSIONS, append a \0 Jun 21, 2016
Tools/FBPortForwarding Open source FBPortForwarding Mar 24, 2016
babel-preset Fixing Issue #7526 May 26, 2016
blog Fixed a few language errors in the Introducing Hot Reloading blog post. May 13, 2016
bots move templates to .github folder Jun 13, 2016
docs Include info about console.log Jun 21, 2016
flow Deploy v0.23.0 Apr 14, 2016
gradle/wrapper Added ability to run Movies app with BUCK Feb 25, 2016
jestSupport Fixed path to regenerator-runtime May 4, 2016
keystores Added ability to run Movies app with BUCK Feb 26, 2016
lib Add forwarding modules for modules required by React May 10, 2016
local-cli Support vscode as a React Editor Jun 21, 2016
packager Print nicer error message if an asset directory is not found in any o… Jun 20, 2016
react-native-cli Made react installed via reac-native init strict to unbreak 15.1.0 Jun 3, 2016
scripts Fixed manual e2e test runner script Jun 21, 2016
website Move Videos and Newsletter to Support Jun 21, 2016
.buckconfig Allow building UIExplorer with Buck Apr 12, 2016
.buckjavaargs limiting BUCK's memory for CI Feb 1, 2016
.editorconfig Create .editorconfig Oct 9, 2015
.eslintignore [ReactNative] clean lint in all of Libraries/ May 19, 2015
.eslintrc Enable no-duplicate-props lint rule May 10, 2016
.flowconfig update flowification of react-native Jun 16, 2016
.gitattributes Added a .gitattributes file, ensuring that Bash script source files (… Oct 13, 2015
.gitignore Fix tests buck build when running locally May 16, 2016
.npmignore Merge rnpm into react-native May 20, 2016
.travis.yml Fixed travis stalls by updating to latest node Jun 21, 2016
CONTRIBUTING.md Add note about submitting PRs on master Jun 18, 2016
LICENSE Update license Mar 23, 2015
LICENSE-CustomComponents Add CustomComponents license Mar 26, 2015
LICENSE-docs More licenses Mar 24, 2015
LICENSE-examples More licenses Mar 25, 2015
PATENTS Update Patent Grant Apr 10, 2015
README.md Fix tutorial link in README.md Jun 14, 2016
React.podspec Add C++ and standard v14 settings. May 27, 2016
Releases.md Add upcoming releases to the schedule Jun 6, 2016
Windows Fix tutorial link in README.md Jun 14, 2016
breaking-changes.md Update breaking-changes.md Jan 16, 2016
build.gradle Support non-standard path of Android Support Repository Apr 21, 2016
circle.yml Cicle CI fix: limit predex threads Jun 21, 2016
cli.js Breaking change: Move `bundle` to `private-cli` Oct 13, 2015
gradlew Upgrade gradle to 2.9 Dec 14, 2015
gradlew.bat Release React Native for Android Sep 14, 2015
package.json RN: Enable Flow Object Type Lint Rule Jun 20, 2016
react.gradle Android: allow app/build.gradle to specify how node gets invoked for … Jun 4, 2016
runXcodeTests.sh Add suggested ‘view size’ powers to -[RCTShadowView setFrame:] Mar 1, 2016
settings.gradle Delete SampleApp Sep 29, 2015

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 7.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.

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. Product Pains 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.

Something went wrong with that request. Please try again.