Skip to content

Commit 0ddc5fd

Browse files
committed
Slight syntax adjustment, 2.0.0 bump
1 parent 68b2fd5 commit 0ddc5fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-performance-monitor",
33
"description": "Monitor the performance of your React Native components in realtime",
4-
"version": "1.2.1",
4+
"version": "2.0.0",
55
"author": "kyle @kyle-ssg",
66
"bin": {
77
"react-native-performance-monitor": "./bin/run"

lib/provider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { Component } from 'react';
33
import hoistNonReactStatics from 'hoist-non-react-statics';
44

55
const Profiler = React.Profiler;
6-
export default ({ WrappedComponent, _id, ip = '127.0.0.1', events = ['mount', 'update'], showLogs = false, port = 8125, enableWS = true }) => {
6+
export default ({ WrappedComponent, id, ip = '127.0.0.1', events = ['mount', 'update'], showLogs = false, port = 8125, enableWS = true }) => {
77
const remote = `http://${ip}:${port}/value`;
88
const log = (message) => {
99
if (showLogs) {
@@ -70,7 +70,7 @@ export default ({ WrappedComponent, _id, ip = '127.0.0.1', events = ['mount', 'u
7070

7171
render() {
7272
return this.state.unmount ? null : (
73-
<Profiler id={_id} onRender={this.logMeasurement}>
73+
<Profiler id={id} onRender={this.logMeasurement}>
7474
<WrappedComponent
7575
{...this.props}
7676
{...this.state}

0 commit comments

Comments
 (0)