# react-native-restart-app-android

> ## Getting started

Latest version **1.0.1** (published 2020-10-30) · 0 weekly downloads

## Install

```sh
npm install react-native-restart-app-android
pnpm add react-native-restart-app-android
yarn add react-native-restart-app-android
bun add react-native-restart-app-android
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-10-30 |
| First published | 2020-10-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 64.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | triracle |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-restart-app-android
- npm.io page: https://npm.io/package/react-native-restart-app-android

## Recent versions

- 1.0.1 (latest) — 2020-10-30
- 1.0.0 — 2020-10-29

## README

# react-native-restart-app-android

## Getting started

`$ npm install react-native-restart-app-android --save`

### Mostly automatic installation

`$ react-native link react-native-restart-app-android`

### Manual installation


#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNRestartAppAndroidPackage;` to the imports at the top of the file
  - Add `new RNRestartAppAndroidPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-restart-app-android'
  	project(':react-native-restart-app-android').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-restart-app-android/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-restart-app-android')
  	```


## Usage
```javascript
import RNRestartAppAndroid from 'react-native-restart-app-android';

// TODO: What to do with the module?
RNRestartAppAndroid;
```

---
_Source: https://npm.io/package/react-native-restart-app-android · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
