Skip to content

Commit 9ce8c5b

Browse files
committed
Squashed commit of the following:
commit 00c2808 Author: Hyungu Kang | Airen <[email protected]> Date: Sun Nov 6 21:14:16 2022 +0900 Added lineBreakStrategyIOS to Text and TextInput (facebook#2566) Co-authored-by: Bartosz Kaszubowski <[email protected]> commit ab32e2d Author: Robbie Plankenhorn <[email protected]> Date: Sun Nov 6 02:38:15 2022 -0600 Speeding up Build: Fixing symbolic links (facebook#3329) commit 8e22289 Author: Eric Edouard Amilhat <[email protected]> Date: Sat Nov 5 08:44:59 2022 +0100 View Style Props: Add borderCurve prop (facebook#2785) commit c944021 Author: Robbie <[email protected]> Date: Sat Nov 5 07:41:43 2022 +0000 Alert: Add "isPreferred" to AlertButtonStyle (facebook#2839) commit f279c06 Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Sat Nov 5 04:18:08 2022 -0300 Add missing aria props to Accessibility docs (facebook#3396) commit 00646cd Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Fri Nov 4 21:20:18 2022 -0300 feat: Update fontVariant supported types docs (facebook#3378) commit 96f4297 Author: khali70 <[email protected]> Date: Sat Nov 5 02:16:15 2022 +0200 update to microsoft-openjdk11 (facebook#3386) commit cdd9399 Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Fri Nov 4 05:38:35 2022 -0300 Fix documentation typos (facebook#3395) commit ea4f803 Author: Alex Hunt <[email protected]> Date: Wed Nov 2 21:07:20 2022 +0000 Tweak homepage text to more broadly refer to platforms (facebook#3391) commit 1636d5e Author: Rafael Ricardo Vieceli <[email protected]> Date: Tue Nov 1 12:31:44 2022 +0100 Replaced editUrl branch name with main (facebook#3389) commit b47dc1d Author: David Narbutovich <[email protected]> Date: Mon Oct 31 11:35:57 2022 +0100 Recommend to use `es2019` and use community driven TS config `@tsconfig/react-native` (facebook#3342) commit fd87e46 Author: Peter Cho <[email protected]> Date: Fri Oct 28 17:54:38 2022 -0400 Build from Source: add missing paren in publishing (facebook#3387) commit d4fcb93 Author: Héctor Ramos <[email protected]> Date: Thu Oct 27 19:38:17 2022 -0700 The Hermes docs in next, also apply to 0.70. (facebook#3380) commit 0339cae Author: Héctor Ramos <[email protected]> Date: Tue Oct 25 09:42:20 2022 -0700 Add updated instructions on using Hermes (facebook#3376) * Add updated instructions on using Hermes * lint commit df492ce Author: Telmen <[email protected]> Date: Wed Oct 19 19:20:52 2022 +0800 Fix typo in New Architecture Intro (facebook#3374) Co-authored-by: Bartosz Kaszubowski <[email protected]> commit 262ff68 Author: mjh <[email protected]> Date: Wed Oct 19 01:39:56 2022 -0700 Fixed typo in headless-js-android.md (facebook#3377) commit e4d0982 Author: Lorenzo Sciandra <[email protected]> Date: Tue Oct 18 16:50:27 2022 +0100 chore(release): Update release testing section for new E2E testing script (facebook#3368) * remove E2E section until we'll re-add it post E2E setup * remove mention of the E2E script * rework the release testing page * add mention of where to find the info to turn on new arch * typo * re-add section commit 20908b3 Author: Nicola Corti <[email protected]> Date: Sun Oct 16 16:45:48 2022 +0100 New Architecture - Remove the extra steps required to copy .so files (facebook#3356) commit ae47850 Author: Riccardo <[email protected]> Date: Sun Oct 16 16:45:12 2022 +0100 fix: improve TM explanation (facebook#3364) commit f042dca Author: Bartosz Kaszubowski <[email protected]> Date: Wed Oct 12 20:50:17 2022 +0200 add back missing docs vote component (facebook#3371) commit 6dc2805 Author: Luis Medina <[email protected]> Date: Wed Oct 12 03:19:27 2022 -0500 docs: update running on simulator iOS (facebook#3346) commit 3add39c Author: Karl Horky <[email protected]> Date: Wed Oct 12 10:16:55 2022 +0200 Getting Started: list zsh before bash in macOS guide (facebook#3358) Co-authored-by: Nicola Corti <[email protected]> commit f6be947 Author: Chukwu Smart <[email protected]> Date: Wed Oct 12 09:14:23 2022 +0100 ScrollView: rephrase onContentSizeChange description (facebook#3357) Co-authored-by: Nicola Corti <[email protected]> commit 37d85ba Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Wed Oct 12 05:11:14 2022 -0300 Layout Props: Update aspectRatio supported types (facebook#3363) commit e00c9b0 Author: Jesse Katsumata <[email protected]> Date: Wed Oct 12 17:07:36 2022 +0900 Getting Started: fix Android version label in older docs (facebook#3367) commit 03d8848 Author: Timothy Yung <[email protected]> Date: Tue Oct 11 15:15:08 2022 -0700 Fix headers on *.ts files (facebook#3370) commit e5ba872 Author: Timothy Yung <[email protected]> Date: Tue Oct 11 15:07:00 2022 -0700 Missing header in `docusaurus.config.js` (facebook#3369) commit f0d9c4a Author: Jesse Katsumata <[email protected]> Date: Sat Oct 8 05:45:16 2022 +0900 Communities: remove duplicate header (facebook#3365) commit a6e7419 Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Thu Oct 6 06:45:52 2022 -0300 feat: Add verticalAlign to Text Style Props docs (facebook#3361) commit 911a282 Author: Nicola Corti <[email protected]> Date: Wed Oct 5 11:15:01 2022 +0100 Finalize the Kotlinization (facebook#3360) * Finalize the Kotlinization * Remove extra imports commit 3c124e0 Author: Asaf Korem <[email protected]> Date: Tue Oct 4 21:03:42 2022 +0300 Showcase: add Wix's apps section. (facebook#3349) commit 2e4eb04 Author: Kryštof Woldřich <[email protected]> Date: Tue Oct 4 13:09:33 2022 +0200 Fix codegen iOS scripts paths (facebook#3359) commit 4c3603b Author: Ismael Moreira <[email protected]> Date: Mon Oct 3 14:09:54 2022 -0300 Update pillars-turbomodule.md (facebook#3355) commit 4b1aeff Author: Oskar Kwaśniewski <[email protected]> Date: Mon Oct 3 15:58:05 2022 +0200 fix: remove isTurboModuleEnabled check from docs (facebook#3337) * fix: remove isTurboModuleEnabled check * fix: remove unnecessary back ticks Co-authored-by: Riccardo <[email protected]> Co-authored-by: Riccardo <[email protected]> commit 9987b07 Author: Timothy Yung <[email protected]> Date: Fri Sep 30 08:43:45 2022 -0700 Fix more copyright header issues (facebook#3353) commit 84397da Author: Timothy Yung <[email protected]> Date: Fri Sep 30 08:43:28 2022 -0700 Update to Contributor Covenant (facebook#3354) commit 6e981dd Author: Lorenzo Sciandra <[email protected]> Date: Fri Sep 30 11:57:11 2022 +0100 rework the community section of the website (facebook#3338) Co-authored-by: Luna <[email protected]> commit b943d45 Author: Timothy Yung <[email protected]> Date: Fri Sep 30 00:49:39 2022 -0700 Apply updated copyright to `*.js` files (facebook#3352) commit 006f573 Author: Timothy Yung <[email protected]> Date: Fri Sep 30 00:48:43 2022 -0700 Address Security Vulnerabilities in Dependencies (facebook#3351) commit d6fe39d Author: Arati Chilad <[email protected]> Date: Wed Sep 28 03:43:38 2022 -0700 Checks for the documentation (facebook#3348) commit 3d1ea2c Author: Lorenzo Sciandra <[email protected]> Date: Tue Sep 27 17:27:34 2022 +0100 add NFL to the showcase (facebook#3347) commit ff9886c Author: Pavlos Vinieratos <[email protected]> Date: Mon Sep 26 12:44:01 2022 +0300 Update showcase link for Artsy (facebook#3340) commit 905824a Author: Joshua Yoes <[email protected]> Date: Mon Sep 26 01:17:31 2022 -0700 fix(native-modules-android.md): rename createCalendarEventCallback (facebook#3345) commit 400d509 Author: Damoness <[email protected]> Date: Mon Sep 26 15:54:57 2022 +0800 Layout Props: clean warning in example (facebook#3344) commit 86139c5 Author: David Narbutovich <[email protected]> Date: Sun Sep 25 21:14:53 2022 +0400 Document ability to pass Element via ItemSeparatorComponent (facebook#3343) commit c9448b0 Author: Daksh Bhardwaj <[email protected]> Date: Fri Sep 23 14:33:41 2022 +0530 add documentation for `aria-valuemax` `aria-valuemin` `aria-valuenow` `aria-valuetext` (facebook#3318) commit 54f9a7d Author: Connor Tumbleson <[email protected]> Date: Fri Sep 23 03:02:12 2022 -0400 Add Source Maps Page (facebook#3293) Co-authored-by: Bartosz Kaszubowski <[email protected]> Co-authored-by: Dmytro Rykun <[email protected]> commit 69f723b Author: Daksh Bhardwaj <[email protected]> Date: Fri Sep 23 12:29:47 2022 +0530 Text: add documentation for `userSelect` prop (facebook#3311) commit 4260478 Author: Daksh Bhardwaj <[email protected]> Date: Fri Sep 23 12:25:51 2022 +0530 add documentation for `aria-modal` prop (facebook#3320) commit 94c5e80 Author: Oskar Kwaśniewski <[email protected]> Date: Thu Sep 22 14:46:19 2022 +0200 fix: remove isFabricEnabled check from docs (facebook#3336) * fix: remove isFabricEnabled check * fix: language lint commit b55bdc6 Author: Dhruv Tailor <[email protected]> Date: Thu Sep 22 18:15:06 2022 +0530 Add new props to Image docs (facebook#3310) commit 357254c Author: Lorenzo Sciandra <[email protected]> Date: Thu Sep 22 11:32:05 2022 +0100 chore: clean up new arch docs (facebook#3332) * tweaks * revert change commit 12dc712 Author: Akshansh Thakur <[email protected]> Date: Wed Sep 21 23:18:21 2022 +0530 Updated button.md to reference Pressable (facebook#3237) commit 8754483 Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Wed Sep 21 09:47:51 2022 -0300 Add id prop to Text, TouchableWithoutFeedback and View docs (facebook#3285) commit 91ce6bc Author: Riccardo <[email protected]> Date: Wed Sep 21 12:52:34 2022 +0100 fix: Improve wording for iOS getting started (facebook#3334) commit b5f5b5a Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Wed Sep 21 08:23:41 2022 -0300 Update colors docs regarding expanded support for CSS Colors (facebook#3306) commit 4e386d6 Author: Nicola Corti <[email protected]> Date: Wed Sep 21 11:41:31 2022 +0100 Update docs with AGP 7.3.x setup (facebook#3333) commit 72c8bd5 Author: Lorenzo Sciandra <[email protected]> Date: Tue Sep 20 18:34:32 2022 +0100 Modify the top navbar to be less full (facebook#3177) * modify navbar * rename * reorder and rename * reorder the navbar * change size to match the other elements * change style to match the other elements * tweak the footer to reflect the new header * fix link * fix the other link * small CSS tweaks * small naming tweak Co-authored-by: Bartosz Kaszubowski <[email protected]> commit 7202412 Author: Bartosz Kaszubowski <[email protected]> Date: Tue Sep 20 00:35:29 2022 +0200 fix incorrect link to re-enable prod deploy (facebook#3330) commit 5dd8fcd Author: Lorenzo Sciandra <[email protected]> Date: Fri Sep 16 18:27:40 2022 +0100 showcase: update entries (facebook#3328) commit 8c65a42 Author: Lorenzo Sciandra <[email protected]> Date: Fri Sep 16 11:19:11 2022 +0100 minor tweaks to the wording for the versions page (facebook#3327) commit 7bb5d88 Author: Nicola Corti <[email protected]> Date: Fri Sep 16 12:00:23 2022 +0300 [0.71.0] Update the New Architecture guide with the changes for the New Template on Android (facebook#3324) Co-authored-by: Riccardo <[email protected]> commit 5462afb Author: Sunny Luo <[email protected]> Date: Fri Sep 16 16:04:34 2022 +0800 fix _getting-started-macos-ios.md info format (facebook#3326) commit a917b04 Author: Nicola Corti <[email protected]> Date: Thu Sep 15 14:54:20 2022 +0300 Fix broken links to Appendix (facebook#3319) commit 1285a79 Author: Riccardo <[email protected]> Date: Thu Sep 15 11:21:03 2022 +0200 [Fix] Improve Getting started with iOS (facebook#3323) commit 791d9d1 Author: Riccardo <[email protected]> Date: Wed Sep 14 10:39:08 2022 +0200 [FEAT] Add doc to simplify podspecs for Native Modules and Native Components (facebook#3321) * [FEAT] Add doc to simplify podspecs for Native Modules and Native Components * fix: apply suggested changes I Co-authored-by: Arati Chilad <[email protected]> * fix: apply suggested changes II Co-authored-by: Arati Chilad <[email protected]> * fix: apply suggested changes III Co-authored-by: Arati Chilad <[email protected]> * fix: apply suggested changes IV Co-authored-by: Arati Chilad <[email protected]> * fix: apply suggested changes V Co-authored-by: Arati Chilad <[email protected]> * fix: apply suggested changes VI Co-authored-by: Arati Chilad <[email protected]> Co-authored-by: Arati Chilad <[email protected]> commit 0468011 Author: JiashengWu <[email protected]> Date: Wed Sep 14 00:19:07 2022 -0700 Fix title case in testing-overview.md (facebook#3322) commit 38cd75a Author: Nicola Corti <[email protected]> Date: Tue Sep 13 19:24:25 2022 +0100 Remove unnecessary box from Legacy Native Modules/Components (facebook#3313) commit bbd36d1 Author: Nicola Corti <[email protected]> Date: Fri Sep 9 21:18:24 2022 +0100 [0.70] Clarify New Architecture Terminology (facebook#3315) commit c084b5a Author: Nicola Corti <[email protected]> Date: Fri Sep 9 21:18:04 2022 +0100 Clarify New Architecture Terminology - Take 2 (facebook#3316) commit 63d00e7 Author: Ricky <[email protected]> Date: Fri Sep 9 15:13:35 2022 -0400 Revert "Clarify New Architecture Terminology (facebook#3308)" (facebook#3314) This reverts commit 54d266b. commit 54d266b Author: Nicola Corti <[email protected]> Date: Fri Sep 9 15:08:43 2022 +0100 Clarify New Architecture Terminology (facebook#3308) commit 42e0266 Author: Riccardo <[email protected]> Date: Fri Sep 9 12:21:24 2022 +0100 fix: Address missing feedback from prev PR (facebook#3312) commit 4a3b02c Author: Riccardo <[email protected]> Date: Fri Sep 9 12:03:13 2022 +0100 [New Architecture][iOS][0.71.0] Update the App Migration section (facebook#3268) commit 7c1091c Author: Arati Chilad <[email protected]> Date: Thu Sep 8 09:19:13 2022 -0700 The New Architecture section editorial review (facebook#3288) * [Do Not Merge] Refactoring The New Architecture (facebook#3029) * [Guide - The New Architecture] What Backward Compatibility Is (facebook#3038) * Guide to creating a New Architecture app from template (facebook#3056) * Start new template guide This is a first iteration. I want to get feedback on a few aspects, so starting from here as a baseline. * Update title * Use tabs for target OS Set up matching the style of "Getting Started", except I kept the headers inside the tabs for now as it makes for a useful right-hand TOC. * Capitalize New Architecture, simplify * Preliminary section for Hermes Add section for recommending enabling Hermes. Not sure of contents yet, and still have to test. * Reword to emphasize importance of Hermes usage * Show new arch in use * Add build speed article link * Add pro tip for pod install alias * Restructure, repeat less Favor linking to original setup guide instead of repeating content. * Note about Expo * Include command on uninstalling global CLI * How to learn more * Remove headers in tabs They don't work correctly with the righthand TOC. * Make header more clear * Use quote block less often There was way too much yellow. * Opt for instructions using XCode Because `xcodebuild clean` already failed me once when XCode GUI clean worked. * Fix lint issue * Improve wording * Use product name * Fix line wraps * Reword based on feedback * Note use of bundle install * Pod removal instructions Also standardize on using yarn scripts from template for commands, it's a little confusing to see the mix of `npx` and `yarn` once we start referring to `yarn pod-install` * Convert quotes to admonitions * Convert Note: to admonitions * Feedback: Change admonitions to caution * PR feedback * New Architecture landing page (facebook#3072) * First draft of landing page * Add migration and backwards compatibility links * lint fix * Restructure slightly, leaning more on context from Why a New Architecture * Don't need md in links * Suggested rewording * Rephrase pillar summaries * [Guide - The New Architecture] Why A New Architecture (facebook#3043) * [Guide - The New Architecture] Pillars (facebook#3046) * [Guide - The New Architecture] TurboModules as Native Modules (facebook#3039) * [Guide - The New Architecture] Fabric Components as Native Components (facebook#3040) * [FEAT][TNA] Fabric Component Guide (facebook#3132) * [Feat] Add intro for Fabric Components * feat: add guide to create a Fabric Component * Add page on codegen (facebook#3155) * [FEAT] TurboModules guide (facebook#3168) * [Feat] Add intro for Fabric Components * feat: add guide to create a Fabric Component * Beginning of guide/folder structure * WIP JS Spec * specification section * Configuration * native code intro * Must be named Spec * Best stab at iOS native code, but I don't know how to describe what's going on in the code very well. Extrapolated what I could. * Android instructions iOS isn't working for me. Builds, but can't load module. Writing up Android auto-linking next because the steps I tested did work. * Include linking instructions from RNNArch repo * Add example JavaScript * native modules link * Address quick feedback items * Remove, fix for rebased branch * fix TM parameter on Android * Revert to 'Codegen' casing * Revert folly version change 2021.07.22 is for current version on main * fix typo * getTurboModule explainer * Sentence edits - Fix acronym bolding - Change wording to "recommended" because "standard" has other connotations of possibly being required - Parentheses unnecessary, distracting * Remove TODO for now Getting inconsistent results here, not sure if this is wrong or not; removing TODO for now so it doesn't block anything * ABI rephrase, more in line with new Fabric guide wording * Explain shared C++ code more * feat: add guide to create a Fabric Component * feat: add guide to create a Fabric Component * package.json description * Lint fixes * fix: Move JS constants to reduce changes * fix: Remove newline * feat: add required step for Android Codegen * fix: use the proper links Co-authored-by: Riccardo Cipolleschi <[email protected]> * wip: migration guide review (facebook#3200) * Fix for some typos and other editorial related changes * Update docs/the-new-architecture/pillars-fabric-components.md correcting the article Co-authored-by: Riccardo <[email protected]> * Update pillars-fabric-components.md Co-authored-by: Riccardo <[email protected]> Co-authored-by: Lizzi Lindboe <[email protected]> Co-authored-by: Riccardo <[email protected]> commit 9e6e311 Author: Nicola Corti <[email protected]> Date: Thu Sep 8 12:55:43 2022 +0100 Follow-up on CMake clarification for 0.70 (facebook#3309) commit 000d581 Author: Nicola Corti <[email protected]> Date: Thu Sep 8 09:49:49 2022 +0100 Update New Architecture instructions to use CMake instead of Android.mk (facebook#3304) commit d9d4adb Author: Vojtech Novak <[email protected]> Date: Wed Sep 7 09:08:34 2022 +0200 docs: fix path in script example (facebook#3302) commit 10f26e9 Author: Ricky <[email protected]> Date: Tue Sep 6 13:00:59 2022 -0400 Revert renaming native components (facebook#3301) commit b432092 Author: Daksh Bhardwaj <[email protected]> Date: Tue Sep 6 19:31:59 2022 +0530 TextInput: Add enterKeyHint prop (facebook#3299) commit f57ac2d Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Tue Sep 6 09:36:40 2022 -0300 Image: Add tintColor prop (facebook#3292) Co-authored-by: Bartosz Kaszubowski <[email protected]> commit 7d7f483 Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Tue Sep 6 09:35:28 2022 -0300 View: Add tabIndex prop (facebook#3286) Co-authored-by: Bartosz Kaszubowski <[email protected]> commit 9422060 Author: fabriziobertoglio1987 <[email protected]> Date: Tue Sep 6 17:29:42 2022 +0800 adding accessibilityRole 'grid' to documentation (facebook#3224) commit 0de9633 Author: EvertEt <[email protected]> Date: Tue Sep 6 11:22:19 2022 +0200 Flexbox: correct example description (facebook#3284) commit 04250d6 Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Tue Sep 6 06:18:34 2022 -0300 TextInput: Add inputMode prop (facebook#3289) commit 9a4ad7a Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Tue Sep 6 06:08:25 2022 -0300 TextInput: Add rows prop (facebook#3280) commit 51a7543 Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Tue Sep 6 06:04:49 2022 -0300 AccessibilityInfo: add prefersCrossFadeTransitions to docs (facebook#3279) commit 010d7cd Author: Gabriel Donadel Dall'Agnol <[email protected]> Date: Tue Sep 6 06:02:01 2022 -0300 TextInput: Add readOnly prop (facebook#3278)
1 parent 4f53438 commit 9ce8c5b

File tree

199 files changed

+3603
-3431
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+3603
-3431
lines changed

.alexrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.

.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"overrides": [
55
{
66
"files": ["*.yaml", "*.yml"],
7-
"plugins": ["yaml"],
8-
"extends": ["plugin:yaml/recommended"]
7+
"plugins": ["yml"],
8+
"extends": ["plugin:yml/standard"]
99
},
1010
{
1111
"files": ["*.md", "*.mdx"],

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
blank_issues_enabled: false
2+
contact_links:
3+
- name: ⚛️ React Native Issue
4+
url: https://github.com/facebook/react-native/issues
5+
about: Please report bugs or issues in the React Native repository.
6+
- name: ⤴️ Upgrade Issue
7+
url: https://github.com/react-native-community/upgrade-support
8+
about: Need help upgrading to a newer React Native version? Visit the Upgrade Support repository.
9+
- name: 🤔 Questions and Help
10+
url: https://reactnative.dev/community/support
11+
about: Looking for help with your app? Please refer to the React Native community's support resources.
12+
- name: 🚀 React Native Discussions and Feature Proposals
13+
url: https://github.com/react-native-community/discussions-and-proposals
14+
about: Discuss the future of React Native in the React Native community's discussions and proposals repository.

CODE_OF_CONDUCT.md

Lines changed: 80 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,80 @@
1-
# [Open Source Code of Conduct](https://code.facebook.com/codeofconduct)
2-
3-
This code of conduct outlines our expectations for participants within the
4-
**Facebook Open Source** community, as well as steps to reporting unacceptable
5-
behavior. We are committed to providing a welcoming and inspiring community for
6-
all and expect our code of conduct to be honored. Anyone who violates this code
7-
of conduct may be banned from the community.
8-
9-
Our open source community strives to:
10-
11-
* **Be friendly and patient.**
12-
* **Be welcoming:** We strive to be a community that welcomes and supports
13-
people of all backgrounds and identities. This includes, but is not limited to
14-
members of any race, ethnicity, culture, national origin, colour, immigration
15-
status, social and economic class, educational level, sex, sexual orientation,
16-
gender identity and expression, age, size, family status, political belief,
17-
religion, and mental and physical ability.
18-
* **Be considerate:** Your work will be used by other people, and you in turn
19-
will depend on the work of others. Any decision you take will affect users and
20-
colleagues, and you should take those consequences into account when making
21-
decisions. Remember that we’re a world-wide community, so you might not be
22-
communicating in someone else’s primary language.
23-
* **Be respectful:** Not all of us will agree all the time, but disagreement is
24-
no excuse for poor behavior and poor manners. We might all experience some
25-
frustration now and then, but we cannot allow that frustration to turn into a
26-
personal attack. It’s important to remember that a community where people feel
27-
uncomfortable or threatened is not a productive one.
28-
* **Be careful in the words that you choose:** we are a community of
29-
professionals, and we conduct ourselves professionally. Be kind to others. Do
30-
not insult or put down other participants. Harassment and other exclusionary
31-
behavior aren’t acceptable. This includes, but is not limited to:
32-
* Violent threats or language directed against another person.
33-
* Discriminatory jokes and language.
34-
* Posting sexually explicit or violent material.
35-
* Posting (or threatening to post) other people’s personally identifying
36-
information (“doxing”).
37-
* Personal insults, especially those using racist or sexist terms.
38-
* Unwelcome sexual attention.
39-
* Advocating for, or encouraging, any of the above behavior.
40-
* Repeated harassment of others. In general, if someone asks you to stop, then
41-
stop.
42-
* **When we disagree, try to understand why:** Disagreements, both social and
43-
technical, happen all the time. It is important that we resolve disagreements
44-
and differing views constructively.
45-
* **Remember that we’re different.** The strength of our community comes from
46-
its diversity, people from a wide range of backgrounds. Different people have
47-
different perspectives on issues. Being unable to understand why someone holds
48-
a viewpoint doesn’t mean that they’re wrong. Don’t forget that it is human to
49-
err and blaming each other doesn’t get us anywhere. Instead, focus on helping
50-
to resolve issues and learning from mistakes.
51-
52-
This code is not exhaustive or complete. It serves to distill our common
53-
understanding of a collaborative, shared environment, and goals. We expect it to
54-
be followed in spirit as much as in the letter.
55-
56-
## Diversity Statement
57-
58-
We encourage everyone to participate and are committed to building a community
59-
for all. Although we may not be able to satisfy everyone, we all agree that
60-
everyone is equal. Whenever a participant has made a mistake, we expect them to
61-
take responsibility for it. If someone has been harmed or offended, it is our
62-
responsibility to listen carefully and respectfully, and do our best to right
63-
the wrong.
64-
65-
Although this list cannot be exhaustive, we explicitly honor diversity in age,
66-
gender, gender identity or expression, culture, ethnicity, language, national
67-
origin, political beliefs, profession, race, religion, sexual orientation,
68-
socioeconomic status, and technical ability. We will not tolerate discrimination
69-
based on any of the protected characteristics above, including participants with
70-
disabilities.
71-
72-
## Reporting Issues
73-
74-
If you experience or witness unacceptable behavior—or have any other
75-
concerns—please report it by contacting us via [email protected]. All reports
76-
will be handled with discretion. In your report please include:
77-
78-
* Your contact information.
79-
* Names (real, nicknames, or pseudonyms) of any individuals involved. If there
80-
are additional witnesses, please include them as well. Your account of what
81-
occurred, and if you believe the incident is ongoing. If there is a publicly
82-
available record (e.g. a mailing list archive or a public IRC logger), please
83-
include a link.
84-
* Any additional information that may be helpful.
85-
86-
After filing a report, a representative will contact you personally. If the
87-
person who is harassing you is part of the response team, they will recuse
88-
themselves from handling your incident. A representative will then review the
89-
incident, follow up with any additional questions, and make a decision as to how
90-
to respond. We will respect confidentiality requests for the purpose of
91-
protecting victims of abuse.
92-
93-
Anyone asked to stop unacceptable behavior is expected to comply immediately. If
94-
an individual engages in unacceptable behavior, the representative may take any
95-
action they deem appropriate, up to and including a permanent ban from our
96-
community without warning.
97-
98-
_This Code Of Conduct follows the
99-
[template](http://todogroup.org/opencodeofconduct/) established by the
100-
[TODO Group](http://todogroup.org/)._
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
This Code of Conduct also applies outside the project spaces when there is a
56+
reasonable belief that an individual's behavior may have a negative impact on
57+
the project or its community.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported by contacting the project team at <[email protected]>. All
63+
complaints will be reviewed and investigated and will result in a response that
64+
is deemed necessary and appropriate to the circumstances. The project team is
65+
obligated to maintain confidentiality with regard to the reporter of an incident.
66+
Further details of specific enforcement policies may be posted separately.
67+
68+
Project maintainers who do not follow or enforce the Code of Conduct in good
69+
faith may face temporary or permanent repercussions as determined by other
70+
members of the project's leadership.
71+
72+
## Attribution
73+
74+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
75+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
76+
77+
[homepage]: https://www.contributor-covenant.org
78+
79+
For answers to common questions about this code of conduct, see
80+
https://www.contributor-covenant.org/faq

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Facebook, Inc. and its affiliates.
3+
Copyright (c) Meta Platforms, Inc. and affiliates.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/_getting-started-macos-android.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,15 @@ Finally, click "Apply" to download and install the Android SDK and related build
7373

7474
The React Native tools require some environment variables to be set up in order to build apps with native code.
7575

76-
Add the following lines to your `$HOME/.bash_profile` or `$HOME/.bashrc` (if you are using `zsh` then `~/.zprofile` or `~/.zshrc`) config file:
76+
Add the following lines to your `~/.zprofile` or `~/.zshrc` (if you are using `bash`, then `~/.bash_profile` or `~/.bashrc`) config file:
7777

7878
```shell
7979
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
8080
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
8181
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
8282
```
8383

84-
> `.bash_profile` is specific to `bash`. If you're using another shell, you will need to edit the appropriate shell-specific config file.
85-
86-
Type `source $HOME/.bash_profile` for `bash` or `source $HOME/.zprofile` to load the config into your current shell. Verify that ANDROID_SDK_ROOT has been set by running `echo $ANDROID_SDK_ROOT` and the appropriate directories have been added to your path by running `echo $PATH`.
84+
Run `source ~/.zprofile` (or `source ~/.bash_profile` for `bash`) to load the config into your current shell. Verify that ANDROID_SDK_ROOT has been set by running `echo $ANDROID_SDK_ROOT` and the appropriate directories have been added to your path by running `echo $PATH`.
8785

8886
> Please make sure you use the correct Android SDK path. You can find the actual location of the SDK in the Android Studio "Preferences" dialog, under **Appearance & Behavior****System Settings****Android SDK**.
8987

docs/_getting-started-macos-ios.md

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import M1Cocoapods from './\_markdown-m1-cocoapods.mdx'; import RemoveGlobalCLI
22

33
## Installing dependencies
44

5-
You will need Node, Watchman, the React Native command line interface, Xcode and CocoaPods.
5+
You will need Node, Watchman, the React Native command line interface, a Ruby version manager, Xcode and CocoaPods.
66

77
While you can use any editor of your choice to develop your app, you will need to install Xcode in order to set up the necessary tooling to build your React Native app for iOS.
88

@@ -19,6 +19,35 @@ If you have already installed Node on your system, make sure it is Node 14 or ne
1919

2020
[Watchman](https://facebook.github.io/watchman) is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance.
2121

22+
### Ruby
23+
24+
[Ruby](https://www.ruby-lang.org/en/) is a general-purpose programming language. React Native uses in some scripts related to the iOS dependency management. As every programming language, there are different versions of Ruby that have been developed during the years.
25+
26+
React Native uses a `.ruby-version` file to make sure that your version of Ruby is aligned with what is needed. Currently, macOS 12.5.1 is shipped with Ruby 2.6.8, which is **not** what is required by React Native. Our suggestion is to install a Ruby version manager and to install the proper version of Ruby in your system.
27+
28+
Some common Ruby version manager are:
29+
30+
- [rbenv](https://github.com/rbenv/rbenv)
31+
- [RVM](https://rvm.io/)
32+
- [chruby](https://github.com/postmodern/chruby)
33+
- [asdf-vm](https://github.com/asdf-vm) with the [asdf-ruby](https://github.com/asdf-vm/asdf-ruby) plugin
34+
35+
To check what is your current version of Ruby, you can run this command:
36+
37+
```
38+
ruby --version
39+
```
40+
41+
React Native uses [this version](https://github.com/facebook/react-native/blob/main/template/_ruby-version) of Ruby. You can also find which version your specific project needs in the `.ruby-version` file at root of your RN project.
42+
43+
### Ruby's Bundler
44+
45+
Ruby uses the concept of **gems** to handle its own dependencies. You can think of a gem as a package in NPM, a formula in Homebrew or a single pod in Cocoapods.
46+
47+
Ruby's [Bundler](https://bundler.io/) is a Ruby gem that helps managing the Ruby dependencies of your project. We need Ruby to install Cocoapods and using Bundler will make sure that all the dependencies are aligned and that the project works properly.
48+
49+
If you want to learn more about why we need this tool, you can read [this article](https://bundler.io/guides/rationale.html#bundlers-purpose-and-rationale).
50+
2251
### Xcode
2352

2453
The easiest way to install Xcode is via the [Mac App Store](https://itunes.apple.com/us/app/xcode/id497799835?mt=12). Installing Xcode will also install the iOS Simulator and all the necessary tools to build your iOS app.
@@ -37,15 +66,7 @@ To install a simulator, open <strong>Xcode > Preferences...</strong> and select
3766

3867
#### CocoaPods
3968

40-
[CocoaPods](https://cocoapods.org/) is built with Ruby and it will be installable with the default Ruby available on macOS.
41-
42-
Using the default Ruby available on macOS will require you to use `sudo` when installing gems. (This is only an issue for the duration of the gem installation, though.)
43-
44-
```shell
45-
sudo gem install cocoapods
46-
```
47-
48-
Otherwise you can use a Ruby version manager, such as `rbenv`. Apps created with the command `npx react-native init` described below are configured to work well with `rbenv` and will pick the correct Ruby version requested by the template.
69+
[CocoaPods](https://cocoapods.org/) is one of the dependency management system available for iOS. It is built with Ruby and you can install it using the version of Ruby you configured with in the previous steps.
4970

5071
For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).
5172

@@ -67,6 +88,17 @@ npx react-native init AwesomeProject
6788

6889
This is not necessary if you are integrating React Native into an existing application, if you "ejected" from Expo, or if you're adding iOS support to an existing React Native project (see [Integration with Existing Apps](integration-with-existing-apps.md)). You can also use a third-party CLI to init your React Native app, such as [Ignite CLI](https://github.com/infinitered/ignite).
6990

91+
:::info
92+
93+
If you are having trouble with iOS, try to reinstall the dependencies by running:
94+
95+
1. `cd ios` to navigate to the
96+
2. `bundle install` to install Bundler
97+
1. If needed: install a [Ruby Version Manager](#ruby) and update the Ruby version
98+
3. `bundle exec pod install` to install the iOS dependencies.
99+
100+
:::
101+
70102
### [Optional] Using a specific version or template
71103

72104
If you want to start a new project with a specific React Native version, you can use the `--version` argument:

docs/_getting-started-windows-android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ React Native also requires [Java SE Development Kit (JDK)](https://openjdk.java.
1717
Open an Administrator Command Prompt (right click Command Prompt and select "Run as Administrator"), then run the following command:
1818

1919
```powershell
20-
choco install -y nodejs-lts openjdk11
20+
choco install -y nodejs-lts microsoft-openjdk11
2121
```
2222

2323
If you have already installed Node on your system, make sure it is Node 14 or newer. If you already have a JDK on your system, we recommend JDK11. You may encounter problems using higher JDK versions.
2424

2525
> You can find additional installation options on [Node's Downloads page](https://nodejs.org/en/download/).
2626
27-
> If you're using the latest version of Java Development Kit, you'll need to change the Gradle version of your project so it can recognize the JDK. You can do that by going to `{project root folder}\android\gradle\wrapper\gradle-wrapper.properties` and changing the `distributionUrl` value to upgrade the Gradle version. You can check out [here the lastest releases of Gradle](https://gradle.org/releases/).
27+
> If you're using the latest version of Java Development Kit, you'll need to change the Gradle version of your project so it can recognize the JDK. You can do that by going to `{project root folder}\android\gradle\wrapper\gradle-wrapper.properties` and changing the `distributionUrl` value to upgrade the Gradle version. You can check out [here the latest releases of Gradle](https://gradle.org/releases/).
2828
2929
<h3>Android development environment</h3>
3030

0 commit comments

Comments
 (0)