Skip to content

Commit b501af7

Browse files
committed
adjust comment
1 parent cb90066 commit b501af7

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

package/src/index.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import NativeModule from './native-module'
22

33
/**
4-
* Close current RN activity
5-
*
4+
* Close current RN activity
5+
*
66
* Reference: https://developer.android.com/reference/android/app/Activity#finish()
77
*/
88
export function finish() {
99
NativeModule.finish()
1010
}
1111

1212
/**
13-
* Similar to the `finish()`, but it closes all the activities present.
14-
* Mostly, RN apps only need the `finish()`
15-
*
13+
* Similar to the `finish()`, but it closes all the activities present.
14+
*
1615
* Reference: https://developer.android.com/reference/android/app/Activity#finishActivity(int)
1716
*/
1817
export function finishAffinity() {
@@ -24,8 +23,8 @@ export function finishAffinity() {
2423
* Reverses the Activity Scene entry Transition and triggers the calling Activity to reverse its exit Transition.
2524
* When the exit Transition completes, {@link finish()} is called.
2625
* If no entry Transition was used, {@link finish()} is called immediately and the Activity exit Transition is run.
27-
* Required: Android API level >= 21
28-
*
26+
* Required: Android API level >= 21
27+
*
2928
* Reference: https://developer.android.com/reference/android/app/Activity#finishAfterTransition()
3029
*/
3130
export function finishAfterTransition() {
@@ -35,8 +34,8 @@ export function finishAfterTransition() {
3534
/**
3635
* Close RN activity along with the Recent Screens/Tasks
3736
* If you don't know what the Recent Screens/Tasks is: https://developer.android.com/guide/components/activities/recents
38-
* Required: Android API level >= 21
39-
*
37+
* Required: Android API level >= 21
38+
*
4039
* Reference: https://developer.android.com/reference/android/app/Activity#finishAndRemoveTask()
4140
*/
4241
export function finishAndRemoveTask() {
@@ -47,7 +46,7 @@ export function finishAndRemoveTask() {
4746
* There is no official way to restart Android app
4847
* This is method is copied from this answer https://stackoverflow.com/a/46848226
4948
* You can see the `AndroidFinish.kt` at
50-
* {@link file://./../android/src/main/java/com/audira/lib/reactnative/androidfinish/AndroidFinish.kt}
49+
* {@link file://./../android/src/main/java/com/audira/lib/reactnative/androidfinish/AndroidFinish.kt}
5150
*
5251
* Need to be tested on other Android SDKs (and various devices?)
5352
*/

0 commit comments

Comments
 (0)