react-native/docs/backandroid.md

57 lines
663 B
Markdown
Raw Normal View History

---
id: backandroid
title: BackAndroid
layout: docs
category: APIs
permalink: docs/backandroid.html
next: backhandler
previous: asyncstorage
---
Deprecated. Use BackHandler instead.
### Methods
- [`exitApp`](docs/backandroid.html#exitapp)
- [`addEventListener`](docs/backandroid.html#addeventlistener)
- [`removeEventListener`](docs/backandroid.html#removeeventlistener)
---
# Reference
## Methods
### `exitApp()`
```javascript
static exitApp()
```
---
### `addEventListener()`
```javascript
static addEventListener(eventName, handler)
```
---
### `removeEventListener()`
```javascript
static removeEventListener(eventName, handler)
```