Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 8427755

Browse files
committed
2 parents 7f8efbf + 2089b30 commit 8427755

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ Add custom items to the React Native dev menu.
1010

1111
_It currently supports React Native **0.48+**._
1212

13+
![](https://github.com/zoontek/react-native-dev-menu/blob/master/docs/screenshots.png?raw=true)
14+
15+
## Usage
16+
17+
```js
18+
if (__DEV__) {
19+
const DevMenu = require('react-native-dev-menu');
20+
DevMenu.addItem('Say Hello', () => alert('Hello!'));
21+
}
22+
```
23+
1324
## Setup
1425

1526
```sh
@@ -76,14 +87,3 @@ protected List<ReactPackage> getPackages() {
7687

7788
// ...
7889
```
79-
80-
_**P.S.**: You will need to recompile your project with `react-native run-android`._
81-
82-
## Usage
83-
84-
```js
85-
if (__DEV__) {
86-
const DevMenu = require('react-native-dev-menu');
87-
DevMenu.addItem('Say Hello', () => alert('Hello!'));
88-
}
89-
```

0 commit comments

Comments
 (0)