Skip to content

Commit 72ea67a

Browse files
Clarify screens installation steps
1 parent 569a2b7 commit 72ea67a

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

src/css/custom.css

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
--ifm-home-color-white: #f7f7ff;
2727

2828
--ifm-menu-color-background-active: rgb(107, 82, 174, 0.1);
29+
30+
--docusaurus-highlighted-code-line-bg: #ebebeb;
2931
}
3032

3133
:root[data-theme='dark'] {
@@ -42,6 +44,8 @@
4244
--ifm-home-color-background-secondary: #585b82;
4345
--ifm-home-color-highlight: #9692ff;
4446
--ifm-home-color-border: #f7f7ff;
47+
48+
--docusaurus-highlighted-code-line-bg: rgba(255, 255, 255, 0.07);
4549
}
4650

4751
.menu {

versioned_docs/version-6.x/getting-started.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,16 @@ npx pod-install ios
6868
`react-native-screens` package requires one additional configuration step to properly
6969
work on Android devices. Edit `MainActivity.java` file which is located in `android/app/src/main/java/<your package name>/MainActivity.java`.
7070

71-
Add the following code to the body of `MainActivity` class:
72-
73-
```java
74-
@Override
75-
protected void onCreate(Bundle savedInstanceState) {
76-
super.onCreate(null);
71+
Add the highlighted code to the body of `MainActivity` class:
72+
73+
```java {3-6}
74+
public class MainActivity extends ReactActivity {
75+
// ...
76+
@Override
77+
protected void onCreate(Bundle savedInstanceState) {
78+
super.onCreate(null);
79+
}
80+
// ...
7781
}
7882
```
7983

versioned_docs/version-7.x/getting-started.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,16 @@ npx pod-install ios
6868
`react-native-screens` package requires one additional configuration step to properly
6969
work on Android devices. Edit `MainActivity.java` file which is located in `android/app/src/main/java/<your package name>/MainActivity.java`.
7070

71-
Add the following code to the body of `MainActivity` class:
72-
73-
```java
74-
@Override
75-
protected void onCreate(Bundle savedInstanceState) {
76-
super.onCreate(null);
71+
Add the highlighted code to the body of `MainActivity` class:
72+
73+
```java {3-6}
74+
public class MainActivity extends ReactActivity {
75+
// ...
76+
@Override
77+
protected void onCreate(Bundle savedInstanceState) {
78+
super.onCreate(null);
79+
}
80+
// ...
7781
}
7882
```
7983

0 commit comments

Comments
 (0)