You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_integration-with-existing-apps-kotlin.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,7 +424,7 @@ class MyReactActivity : ReactActivity() {
424
424
</TabItem>
425
425
</Tabs>
426
426
427
-
As usual, here the [MainActivity.kt Community template file as reference](https://github.com/react-native-community/template/blob/0.77-stable/template/android/app/src/main/java/com/helloworld/MainApplication.kt)
427
+
As usual, here the [MainActivity.kt Community template file as reference](https://github.com/react-native-community/template/blob/0.80-stable/template/android/app/src/main/java/com/helloworld/MainActivity.kt)
428
428
429
429
Whenever you create a new Activity, you need to add it to your `AndroidManifest.xml` file. You also need set the theme of `MyReactActivity` to `Theme.AppCompat.Light.NoActionBar` (or to any non-ActionBar theme) as otherwise your application will render an ActionBar on top of your React Native screen:
Copy file name to clipboardExpand all lines: docs/layout-props.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -661,6 +661,21 @@ It works similarly to `height` in CSS, but in React Native you must use points o
661
661
662
662
---
663
663
664
+
### `isolation`
665
+
666
+
`isolation` lets you form a [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_positioned_layout/Stacking_context). This prop is only available on the [New Architecture](/architecture/landing-page).
667
+
668
+
There are two values:
669
+
670
+
-`auto` (default): Does nothing.
671
+
-`isolate`: Forms a stacking context.
672
+
673
+
| Type | Required |
674
+
| ----------------------- | -------- |
675
+
| enum('auto', 'isolate') | No |
676
+
677
+
---
678
+
664
679
### `justifyContent`
665
680
666
681
`justifyContent` aligns children in the main direction. For example, if children are flowing vertically, `justifyContent` controls how they align vertically. It works like `justify-content` in CSS (default: flex-start). See https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content for more details.
Copy file name to clipboardExpand all lines: docs/safeareaview.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ id: safeareaview
3
3
title: SafeAreaView
4
4
---
5
5
6
+
> **Deprecated.** Use [react-native-safe-area-context](https://github.com/AppAndFlow/react-native-safe-area-context) instead.
7
+
6
8
The purpose of `SafeAreaView` is to render content within the safe area boundaries of a device. It is currently only applicable to iOS devices with iOS version 11 or later.
7
9
8
10
`SafeAreaView` renders nested content and automatically applies padding to reflect the portion of the view that is not covered by navigation bars, tab bars, toolbars, and other ancestor views. Moreover, and most importantly, Safe Area's paddings reflect the physical limitation of the screen, such as rounded corners or camera notches (i.e. the sensor housing area on iPhone 13).
Copy file name to clipboardExpand all lines: website/contributing/how-to-contribute-code.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ Now you are set up to run several commands:
32
32
-`yarn test-ios` runs the iOS test suite (macOS required).
33
33
-`yarn build` builds all configured packages — in general, this command only needs to be run by CI ahead of publishing.
34
34
- Packages which require a build are configured in [scripts/build/config.js](https://github.com/facebook/react-native/blob/main/scripts/build/config.js).
35
+
-`yarn build-types` generates TypeScript types for the public API and updates the snapshot.
35
36
36
37
## Testing your Changes
37
38
@@ -70,11 +71,12 @@ Code-level contributions to React Native generally come in the form of [a pull r
70
71
3. If you've changed APIs, update the documentation.
71
72
4. Ensure the test suite passes, either locally or on CI once you opened a pull request.
72
73
5. Make sure your code lints (for example via `yarn lint --fix`).
73
-
6. Push the changes to your fork.
74
-
7. Create a pull request to the React Native repository.
75
-
8. Review and address comments on your pull request.
76
-
9. A bot may comment with suggestions. Generally we ask you to resolve these first before a maintainer will review your code.
77
-
10. If you haven't already, submit the [Contributor License Agreement ("CLA")](#contributor-license-agreement).
74
+
6. Verify if your code modifies the JS public API with `yarn build-types --validate`. If so, regenerate the snapshot using `yarn build-types`.
75
+
7. Push the changes to your fork.
76
+
8. Create a pull request to the React Native repository.
77
+
9. Review and address comments on your pull request.
78
+
10. A bot may comment with suggestions. Generally we ask you to resolve these first before a maintainer will review your code.
79
+
11. If you haven't already, submit the [Contributor License Agreement ("CLA")](#contributor-license-agreement).
78
80
79
81
If all goes well, your pull request will be merged. If it is not merged, maintainers will do their best to explain their reasoning.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-0.76/_integration-with-existing-apps-kotlin.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,7 +424,7 @@ class MyReactActivity : ReactActivity() {
424
424
</TabItem>
425
425
</Tabs>
426
426
427
-
As usual, here the [MainActivity.kt Community template file as reference](https://github.com/react-native-community/template/blob/0.76-stable/template/android/app/src/main/java/com/helloworld/MainApplication.kt)
427
+
As usual, here the [MainActivity.kt Community template file as reference](https://github.com/react-native-community/template/blob/0.76-stable/template/android/app/src/main/java/com/helloworld/MainActivity.kt)
428
428
429
429
Whenever you create a new Activity, you need to add it to your `AndroidManifest.xml` file. You also need set the theme of `MyReactActivity` to `Theme.AppCompat.Light.NoActionBar` (or to any non-ActionBar theme) as otherwise your application will render an ActionBar on top of your React Native screen:
Copy file name to clipboardExpand all lines: website/versioned_docs/version-0.76/layout-props.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -651,6 +651,21 @@ It works similarly to `height` in CSS, but in React Native you must use points o
651
651
652
652
---
653
653
654
+
### `isolation`
655
+
656
+
`isolation` lets you form a [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_positioned_layout/Stacking_context). This prop is only available on the [New Architecture](/architecture/landing-page).
657
+
658
+
There are two values:
659
+
660
+
-`auto` (default): Does nothing.
661
+
-`isolate`: Forms a stacking context.
662
+
663
+
| Type | Required |
664
+
| ----------------------- | -------- |
665
+
| enum('auto', 'isolate') | No |
666
+
667
+
---
668
+
654
669
### `justifyContent`
655
670
656
671
`justifyContent` aligns children in the main direction. For example, if children are flowing vertically, `justifyContent` controls how they align vertically. It works like `justify-content` in CSS (default: flex-start). See https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content for more details.
Copy file name to clipboardExpand all lines: website/versioned_docs/version-0.77/_integration-with-existing-apps-kotlin.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,7 +424,7 @@ class MyReactActivity : ReactActivity() {
424
424
</TabItem>
425
425
</Tabs>
426
426
427
-
As usual, here the [MainActivity.kt Community template file as reference](https://github.com/react-native-community/template/blob/0.77-stable/template/android/app/src/main/java/com/helloworld/MainApplication.kt)
427
+
As usual, here the [MainActivity.kt Community template file as reference](https://github.com/react-native-community/template/blob/0.77-stable/template/android/app/src/main/java/com/helloworld/MainActivity.kt)
428
428
429
429
Whenever you create a new Activity, you need to add it to your `AndroidManifest.xml` file. You also need set the theme of `MyReactActivity` to `Theme.AppCompat.Light.NoActionBar` (or to any non-ActionBar theme) as otherwise your application will render an ActionBar on top of your React Native screen:
Copy file name to clipboardExpand all lines: website/versioned_docs/version-0.77/layout-props.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -661,6 +661,21 @@ It works similarly to `height` in CSS, but in React Native you must use points o
661
661
662
662
---
663
663
664
+
### `isolation`
665
+
666
+
`isolation` lets you form a [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_positioned_layout/Stacking_context). This prop is only available on the [New Architecture](/architecture/landing-page).
667
+
668
+
There are two values:
669
+
670
+
-`auto` (default): Does nothing.
671
+
-`isolate`: Forms a stacking context.
672
+
673
+
| Type | Required |
674
+
| ----------------------- | -------- |
675
+
| enum('auto', 'isolate') | No |
676
+
677
+
---
678
+
664
679
### `justifyContent`
665
680
666
681
`justifyContent` aligns children in the main direction. For example, if children are flowing vertically, `justifyContent` controls how they align vertically. It works like `justify-content` in CSS (default: flex-start). See https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content for more details.
0 commit comments