A framework for building native macOS apps with React.
Перейти к файлу
Matt Hargett e67aa427a8 Eliminate eslint npm version mismatch warnings and bump some to latest (#23969)
Summary:
I was annoyed by warnings from yarn/npm about eslint peer dependencies not being met, so I dived in to try and get rid of some of them. Sometimes it meant bumping a plugin, but then that plugin needed a newer babel-eslint, so it was a dance.

Some we can't easily update to latest (eslint-plugin-prettier) because the rule format has changed a bit. Happy to do that in this PR if folks think its a good idea. eslint-config-fbjs itself needs to be updated and republished to eliminate the last few warnings.

There are a few new warnings (the repo wasn't linting cleanly for me from the start). I can fix those in this PR, or a separate one, based on people's preferences.

[internal] [chore] - Eliminate some peer dependency warnings and bump some eslint packages to latest.
Pull Request resolved: https://github.com/facebook/react-native/pull/23969

Differential Revision: D14519076

Pulled By: cpojer

fbshipit-source-id: aa44cfd05814d7b79069414aa78d089e448c2235
2019-03-19 11:14:30 -07:00
.appveyor add yml to prettier list.Fixes #23426 (#23953) 2019-03-15 08:10:02 -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 Bump Prettier to 1.16.4 2019-03-14 07:00:27 -07:00
Libraries Add removeExtra() 2019-03-19 10:24:52 -07:00
RNTester add react_native_config to RNTester (#24033) 2019-03-19 07:52:19 -07:00
React Remove explicitly add png file extension when load local image (#23864) 2019-03-18 23:03:32 -07:00
ReactAndroid Refactor autofillHints API 26+ runtime check 2019-03-18 22:55:42 -07:00
ReactCommon ShadowNode: Using state value for computing ShadowView hash 2019-03-19 00:02:30 -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.0, android gradle plugin to 3.3.1 (#23324) 2019-02-20 11:42:54 -08:00
jest - Add openSettings method to Linking module (#23965) 2019-03-18 08:06:12 -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 Eliminate eslint npm version mismatch warnings and bump some to latest (#23969) 2019-03-19 11:14:30 -07:00
scripts Remove `-p` calls from `shasum`. (#24036) 2019-03-19 08:53:45 -07:00
template land androidx in gradle (#24014) 2019-03-18 13:37:17 -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
.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 remove $FlowFixedInNextDeploy 2019-03-18 13:32:28 -07:00
.flowconfig.android remove $FlowFixedInNextDeploy 2019-03-18 13:32:28 -07:00
.gitattributes
.gitignore Check Flow and run basic packager tests using open source RN config 2018-08-09 16:17:40 -07:00
.nvmrc
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
README.md Fix broken links in table of contents Readme (#23795) 2019-03-06 17:13:35 -08:00
React.podspec Split React.podspec into separate podspecs for each Xcode project (#23559) 2019-02-21 18:35:44 -08:00
Releases.md Fix typo in Releases.md (#20487) 2018-08-01 07:16:56 -07:00
build.gradle bump Gradle Android Plugin to 3.3.2 (#23854) 2019-03-13 09:45:54 -07:00
cli.js Update references to the CLI (#23052) 2019-01-21 09:13:08 -08: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 Remove react-clone-referenced-element dependency (#23933) 2019-03-15 11:50:07 -07:00
jest.config.js extract jest config from package.json (#23638) 2019-02-25 21:49:10 -08:00
package.json Eliminate eslint npm version mismatch warnings and bump some to latest (#23969) 2019-03-19 11:14:30 -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 global babelHelpers and regenerator (#21283) 2018-09-26 10:03:05 -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
yarn.lock Eliminate eslint npm version mismatch warnings and bump some to latest (#23969) 2019-03-19 11:14:30 -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.