A framework for building native macOS apps with React.
Перейти к файлу
Héctor Ramos ae07c53d0b Resolve "fatal: not a git repository" error outside of git repositories
Summary:
CocoaPods will display a "fatal: not a git repository" when these podspecs are consumed within Facebook's internal Mercurial repository due to the reliance on `git` to obtain the current commit hash.

In these cases, the podspec is being consumed locally and the commit hash is unnecessary.

The error is removed by avoiding the use of `git` if the current working directory is not a git repository (or any of the parent directories).

Changelog:
[Internal] [iOS] - Remove CocoaPods error within Facebook's repository

Reviewed By: fkgozali

Differential Revision: D27750974

fbshipit-source-id: 99159611c580baf5526f116948c5ff60e1c02e5c
2021-04-15 13:30:31 -07:00
.circleci Bump Android compileSdkVersion and targetSdkVersion to 30 (#31078) 2021-03-02 16:40:48 -08:00
.github Use renamed `respond-to-issue-based-on-label` GitHub Action. (#30832) 2021-02-26 17:13:36 -08:00
IntegrationTests Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
Libraries Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
React Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
ReactAndroid Daily `arc lint --take BUCKFORMAT` 2021-04-14 04:05:56 -07:00
ReactCommon Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
bots Add Java linting using google-java-format (#30444) 2020-12-07 03:12:35 -08:00
docs
flow RN: Remove `fbjs` Dependency 2020-08-28 12:16:26 -07:00
flow-typed/npm misc Flow library fixes & suppressions 2021-01-19 11:55:09 -08:00
gradle/wrapper Bump Gradle Wrapper to 6.7 (#30200) 2020-10-27 23:35:51 -07:00
jest RN: Reapply `AccessibilityInfo` Changes 2021-04-08 17:37:08 -07:00
keystores
local-cli
packages Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
repo-config React Native sync for revisions 6d3ecb7...c9aab1c 2021-04-06 12:42:37 -07:00
scripts Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
template React Native sync for revisions 6d3ecb7...c9aab1c 2021-04-06 12:42:37 -07:00
third-party-podspecs Update flipper in RNTester and template (#31010) 2021-02-24 12:23:27 -08:00
tools/build_defs Create rn_codegen BUCK macro (#31340) 2021-04-15 13:27:38 -07:00
.buckconfig Bump Android compileSdkVersion and targetSdkVersion to 30 (#31078) 2021-03-02 16:40:48 -08:00
.buckjavaargs
.clang-format
.editorconfig
.eslintignore Lint: fix few "no-unused-var" warnings for imports (#30157) 2020-10-26 17:19:14 -07:00
.eslintrc Open source react-native-modules ESLint rule 2020-09-22 11:32:37 -07:00
.flowconfig Deploy v0.148.0 to xplat 2021-04-01 16:38:46 -07:00
.flowconfig.android Deploy v0.148.0 to xplat 2021-04-01 16:38:46 -07:00
.gitignore Add react build app plugin and extension 2021-02-22 08:16:51 -08:00
.prettierrc Update various Xplat Prettier configs to specify arrowParens: avoid 2020-09-14 18:36:20 -07:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Fix RNTester Path (#29786) 2020-09-01 18:47:08 -07:00
ECOSYSTEM.md docs: fix url for chainreactconf (#30199) 2020-10-19 07:35:37 -07:00
LICENSE
LICENSE-docs
README.md Bump min supported iOS/Android version to 11/19 2021-01-14 15:45:52 -08:00
React-Core.podspec Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
React.podspec Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
Releases.md
build.gradle.kts Move to Maven Central for flipper deps 2021-03-10 08:38:13 -08:00
cli.js
gradle.properties WIP: Add an explicit NDK version to RNTester and ReactAndroid (#29987) 2021-01-04 09:15:08 -08:00
gradlew Update Gradle Wrapper to 6.6 (#29613) 2020-08-26 16:37:20 -07:00
gradlew.bat Update Gradle Wrapper to 6.6 (#29613) 2020-08-26 16:37:20 -07:00
index.js Convert SafeAreaView to ES Module (#31344) 2021-04-14 11:48:42 -07:00
interface.js restore core lib Flow definitions for Request, Response, etc. 2021-01-06 17:24:51 -08:00
jest-preset.js Create `@react-native/polyfills` package. 2020-07-22 03:02:45 -07:00
jest.config.js RN: Remove `fbjs` Dependency 2020-08-28 12:16:26 -07:00
metro.config.js Codegen Android: update Docker configuration to support codegen (#30268) 2020-10-28 21:48:20 -07:00
package.json Update React DevTools deps from 4.6 -> 4.12 2021-04-14 13:37:43 -07:00
react-native.config.js Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
react.gradle Don't minify JS bundle by default when using hermes (#30496) 2020-12-01 17:17:06 -08:00
rn-get-polyfills.js Create `@react-native/polyfills` package. 2020-07-22 03:02:45 -07:00
runXcodeTests.sh Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
settings.gradle.kts Add react build app plugin and extension 2021-02-22 08:16:51 -08:00
template.config.js imp: Add titlePlaceholder in template.config.js (#26218) 2020-05-12 09:09:23 -07:00
yarn.lock Update React DevTools deps from 4.6 -> 4.12 2021-04-14 13:37:43 -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 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 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.

React Native is developed and supported by many companies and individual core contributors. Find out more in our ecosystem overview.

Contents

📋 Requirements

React Native apps may target iOS 11.0 and Android 5.0 (API 21) 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 bug fixes 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.