A framework for building native macOS apps with React.
Перейти к файлу
Valentin Shergin e5feb0cee3 Fabric: Fixing const correctness in ShadowNodeFragment (and some prettification)
Summary:
Previously, all placeholders methods have return type `SomeType &` which is not correct because it allows the called to modify enclosed `static` value of the placeholders; the type should be `SomeType const &`.
Besides that this diff migrates some type aliases to the new style (which makes evething much prettier and readable).

Reviewed By: mdvacca

Differential Revision: D14819076

fbshipit-source-id: 87e68d546f16d7a9ad1fb65e1b238859f9381eb7
2019-04-06 09:15:17 -07:00
.appveyor add flow check to windows ci (#21401) 2019-04-05 11:45:45 -07:00
.circleci Update React Native to use latest CLI (#23940) 2019-03-18 06:22:53 -07:00
.github Use Backlog label to keep issues open (#23789) 2019-03-12 15:16:52 -07:00
IntegrationTests Remove WebView from public RN interface 2019-03-28 17:37:05 -07:00
Libraries Set scroll view throttle by default 2019-04-05 13:52:30 -07:00
RNTester Cleanup native anim example 2019-04-05 13:52:30 -07:00
React Move iOS WebView files to FB internal 2019-04-04 15:46:00 -07:00
ReactAndroid Android plumbing for State and LocalData update mount items 2019-04-06 00:52:43 -07:00
ReactCommon Fabric: Fixing const correctness in ShadowNodeFragment (and some prettification) 2019-04-06 09:15:17 -07:00
bots Add SUPPORT document, update other GitHub templates (#23778) 2019-03-05 17:08:24 -08:00
flow Replace our local types by flow-typed (#20320) 2018-12-20 04:42:34 -08:00
flow-typed/npm remove deprecated utilities 2019-01-15 13:59:31 -08:00
gradle/wrapper bump gradle to 5.2.1 (#23879) 2019-04-02 12:07:10 -07:00
jest Set scroll view throttle by default 2019-04-05 13:52:30 -07:00
keystores Use fb_native_wrapper for all targets 2018-10-31 11:47:42 -07:00
lib Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
local-cli Update references to the CLI (#23052) 2019-01-21 09:13:08 -08:00
packages Turn on react-hooks/exhaustive-deps in FBSource 2019-04-01 08:20:18 -07:00
scripts Use node package dependency to manage JSC version (#24276) 2019-04-04 14:22:14 -07:00
template Fix duplicate definition Flow error in HMRLoadingView 2019-04-04 16:23:32 -07:00
third-party-podspecs Fabric: working podspecs & works in RNTester (#23803) 2019-03-15 23:59:22 -07:00
tools/build_defs Migration of RN-Android OSS tests to Android X 2019-03-17 08:13:30 -07:00
.buckconfig Bump Android SDK to 28, Build Tools to 28.0.2, Gradle to 4.7, Gradle Plugin to 3.2.0 (#21632) 2018-12-05 09:06:31 -08:00
.buckjavaargs limiting BUCK's memory for CI 2016-02-01 10:49:33 -08:00
.clang-format Moving ObjC specific clang-format rules to the common config 2019-02-11 13:07:09 -08:00
.editorconfig editorconfig: Set indent_size for BUCK files to 4 (#21554) 2018-10-08 23:17:38 -07:00
.eslintignore Eliminate eslint npm version mismatch warnings and bump some to latest (#23969) 2019-03-19 11:14:30 -07:00
.eslintrc Rename eslint config to 'eslint-config-react-native-community' (#23718) 2019-03-03 20:39:43 -08:00
.flowconfig @allow-large-files xplat flow 0.96 upgrade 2019-04-02 13:44:19 -07:00
.flowconfig.android @allow-large-files xplat flow 0.96 upgrade 2019-04-02 13:44:19 -07:00
.gitattributes Added a .gitattributes file, ensuring that Bash script source files (gradlew and 2015-10-13 23:10:39 -04:00
.gitignore Add CocoaPods Podfile to the project template (#23563) 2019-03-22 03:29:11 -07:00
.nvmrc Add .nvmrc + fix node version for eslint 5 compat (#20109) 2018-07-31 02:34:16 -07:00
CODE_OF_CONDUCT.md Update repo documentation to match other Facebook projects 2018-09-10 18:02:26 -07:00
CONTRIBUTING.md Update repo documentation to match other Facebook projects 2018-09-10 18:02:26 -07:00
LICENSE Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LICENSE-docs More licenses 2015-03-24 19:59:10 -07:00
README.md Fix broken links in table of contents Readme (#23795) 2019-03-06 17:13:35 -08:00
React.podspec Move iOS Geolocation code out from the repo 2019-04-02 15:36:10 -07:00
Releases.md Fix typo in Releases.md (#20487) 2018-08-01 07:16:56 -07:00
build.gradle Use node package dependency to manage JSC version (#24276) 2019-04-04 14:22:14 -07:00
cli.js Show full price instead of monthly price within the lead form 2019-03-28 16:07:19 -07:00
gradlew fix gradle wrapper issue (#19976) 2018-08-08 15:03:01 -07:00
gradlew.bat Use new JavaScriptCore from npm (#22231) 2018-12-27 14:51:03 -08:00
jest-preset.js Make Jest transform @react-native-community packages by default (#24294) 2019-04-03 09:25:56 -07:00
jest.config.js extract jest config from package.json (#23638) 2019-02-25 21:49:10 -08:00
package.json Upgrade Jest to 24.7.1 2019-04-05 14:53:21 -07:00
react.gradle Fix buildType issue introduced in rebase (#23444) 2019-02-13 19:08:27 -08:00
rn-cli.config.js Update React Native to use latest CLI (#23940) 2019-03-18 06:22:53 -07:00
rn-get-polyfills.js Remove Polyfills from RN Open Source 2019-04-04 15:20:33 -07:00
runXcodeTests.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
settings.gradle Prepare Groovy scripts for Kotlin DSL migration (#23355) 2019-02-09 10:18:07 -08:00
template.config.js Improvement: Adjust template to match new init command (#24138) 2019-04-01 16:25:48 -07:00
yarn.lock Upgrade Jest to 24.7.1 2019-04-05 14:53:21 -07:00

README.md

React Native

Learn once, write anywhere:
Build mobile apps with React.

React Native is released under the MIT license. Current CircleCI build status. Current Appveyor build status. Current npm package version. PRs welcome! Follow @reactnative

Getting Started · Learn the Basics · Showcase · Contribute · Community · Support

React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access to the native platform.

  • Declarative. React makes it painless to create interactive UIs. Declarative views make your code more predictable and easier to debug.
  • Component-Based. Build encapsulated components that manage their own state, then compose them to make complex UIs.
  • Developer Velocity. See local changes in seconds. Changes to JavaScript code can be live reloaded without rebuilding the native app.
  • Portability. Reuse code across iOS, Android, and other platforms.

Contents

📋 Requirements

React Native apps may target iOS 9.0 and Android 4.1 (API 16) or newer. You may use Windows, macOS, or Linux as your development operating system, though building and running iOS apps is limited to macOS. Tools like Expo can be used to work around this.

🎉 Building your first React Native app

Follow the Getting Started guide. The recommended way to install React Native depends on your project. Here you can find short guides for the most common scenarios:

📖 Documentation

The full documentation for React Native can be found on our website.

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

The source for the React Native documentation and website is hosted on a separate repo, @facebook/react-native-website.

🚀 Upgrading

Upgrading to new versions of React Native may give you access to more APIs, views, developer tools and other goodies. See the Upgrading Guide for instructions.

React Native releases are discussed in the React Native Community, @react-native-community/react-native-releases.

👏 How to Contribute

The main purpose of this repository is to continue evolving React Native core. We want to make contributing to this project as easy and transparent as possible, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving React Native.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our Contributing Guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React Native.

Open Source Roadmap

You can learn more about our vision for React Native in the Roadmap.

Good First Issues

We have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

Discussions

Larger discussions and proposals are discussed in @react-native-community/discussions-and-proposals.

📄 License

React Native is MIT licensed, as found in the LICENSE file.

React Native documentation is Creative Commons licensed, as found in the LICENSE-docs file.