mirror of
https://github.com/status-im/react-native.git
synced 2025-01-11 10:06:31 +00:00
e11d496e9d
Summary: Follow up to 9ec95673909beac7798f589e0e9821b4225f8fa9 Closes https://github.com/facebook/react-native/pull/16759 Differential Revision: D6285219 Pulled By: hramos fbshipit-source-id: 7012d257a5a6cff06cb2d94203a9379e4b7e3c4e
57 lines
706 B
Markdown
57 lines
706 B
Markdown
---
|
|
id: backandroid
|
|
title: BackAndroid
|
|
layout: docs
|
|
category: APIs
|
|
permalink: docs/backandroid.html
|
|
next: backhandler
|
|
previous: asyncstorage
|
|
---
|
|
|
|
**Deprecated.** Use [BackHandler](docs/backhandler.html) instead.
|
|
|
|
|
|
### Methods
|
|
|
|
- [`exitApp`](docs/backandroid.html#exitapp)
|
|
- [`addEventListener`](docs/backandroid.html#addeventlistener)
|
|
- [`removeEventListener`](docs/backandroid.html#removeeventlistener)
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
# Reference
|
|
|
|
## Methods
|
|
|
|
### `exitApp()`
|
|
|
|
```javascript
|
|
BackAndroid.exitApp()
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
### `addEventListener()`
|
|
|
|
```javascript
|
|
BackAndroid.addEventListener(eventName, handler)
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
### `removeEventListener()`
|
|
|
|
```javascript
|
|
BackAndroid.removeEventListener(eventName, handler)
|
|
```
|
|
|
|
|
|
|