Skip to content

Commit cc73c48

Browse files
committed
update _id to id
1 parent 0ddc5fd commit cc73c48

File tree

3 files changed

+3459
-20
lines changed

3 files changed

+3459
-20
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npx react-native-performance-monitor get
1818
# Usage
1919
```
2020
import withPerformanceMonitor from 'react-native-performance-monitor/provider';
21-
export default withPerformanceMonitor({WrappedComponent: YourScreen, _id: 'Screen Name'});
21+
export default withPerformanceMonitor({WrappedComponent: YourScreen, id: 'Screen Name'});
2222
```
2323

2424
# An example
@@ -51,14 +51,14 @@ With this before and after I observed the following within a large flat list.
5151
In order to connect to a real device you will need to set the IP of your computer, for example:
5252

5353
```
54-
export default withPerformanceMonitor({ WrappedComponent: AwesomeChat, _id: 'AwesomeChat', ip: '192.168.1.10'});
54+
export default withPerformanceMonitor({ WrappedComponent: AwesomeChat, id: 'AwesomeChat', ip: '192.168.1.10'});
5555
```
5656

5757
By default the server is listening on port 8125 for event updates and 8126 for websocket.
5858
If you need to configure the port, because you are tunneling your request or similar, and or disable the Websocket communication, you can do it like this:
5959

6060
```
61-
export default withPerformanceMonitor({WrappedComponent: AwesomeChat, _id: 'AwesomeChat', ip: '192.168.1.10', events: undefined, showLogs: undefined, port: 80, enableWS: false});
61+
export default withPerformanceMonitor({WrappedComponent: AwesomeChat, id: 'AwesomeChat', ip: '192.168.1.10', events: undefined, showLogs: undefined, port: 80, enableWS: false});
6262
```
6363

6464
# How it works

lib/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ npx react-native-performance-monitor get
1414
# Usage
1515
```
1616
import withPerformanceMonitor from 'react-native-performance-monitor/provider';
17-
export default withPerformanceMonitor({WrappedComponent: YourScreen, _id: 'Screen Name'});
17+
export default withPerformanceMonitor({WrappedComponent: YourScreen, id: 'Screen Name'});
1818
```
1919

2020
# An example

0 commit comments

Comments
 (0)