File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ work on Android devices. Edit `MainActivity.java` file which is located in `andr
74
74
75
75
Add the highlighted code to the body of ` MainActivity ` class:
76
76
77
+ <details open >
78
+ <summary >Java</summary >
79
+
77
80
``` java {3-6}
78
81
public class MainActivity extends ReactActivity {
79
82
// ...
@@ -84,6 +87,21 @@ public class MainActivity extends ReactActivity {
84
87
// ...
85
88
}
86
89
```
90
+ </details >
91
+
92
+ <details >
93
+ <summary >Kotlin</summary >
94
+
95
+ ``` kotlin {3-5}
96
+ class MainActivity : ReactActivity () {
97
+ // ...
98
+ override fun onCreate (savedInstanceState : Bundle ? ) {
99
+ super .onCreate(null );
100
+ }
101
+ // ...
102
+ }
103
+ ```
104
+ </details >
87
105
88
106
and make sure to add the following import statement at the top of this file below your package statement:
89
107
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ work on Android devices. Edit `MainActivity.java` file which is located in `andr
74
74
75
75
Add the highlighted code to the body of ` MainActivity ` class:
76
76
77
+ <details open >
78
+ <summary >Java</summary >
79
+
77
80
``` java {3-6}
78
81
public class MainActivity extends ReactActivity {
79
82
// ...
@@ -84,6 +87,21 @@ public class MainActivity extends ReactActivity {
84
87
// ...
85
88
}
86
89
```
90
+ </details >
91
+
92
+ <details >
93
+ <summary >Kotlin</summary >
94
+
95
+ ``` kotlin {3-5}
96
+ class MainActivity : ReactActivity () {
97
+ // ...
98
+ override fun onCreate (savedInstanceState : Bundle ? ) {
99
+ super .onCreate(null );
100
+ }
101
+ // ...
102
+ }
103
+ ```
104
+ </details >
87
105
88
106
and make sure to add the following import statement at the top of this file below your package statement:
89
107
You can’t perform that action at this time.
0 commit comments