npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@provie17/react-native-performance-monitor

v0.1.11

Published

For monitoring the performance of React Native Apps

Readme

@provie17/react-native-performance-monitor

A comprehensive solution for monitoring and optimizing the performance of React Native applications in both development and production environments. Track component render times, navigation latency, and network request durations with AI-powered optimization suggestions.

Installation

npm install @provie17/react-native-performance-monitor

Usage

1. Create an account and get your unique access code

Visit the web dashboard to create an account and register your application to receive a unique access code.

2. Component Render Time Monitoring

Wrap your components with the withRenderTimeMonitor higher-order component:

import React from 'react';
import { View, Text } from 'react-native';
import { withRenderTimeMonitor } from '@provie17/react-native-performance-monitor';

const MyComponent = () => {
  return (
    <View>
      <Text>Hello World!</Text>
    </View>
  );
};

// Wrap component with performance monitoring
export default withRenderTimeMonitor(MyComponent);

3. Navigation Performance Monitoring

Add the NavigationObserver to destination screens and use setNavigationStartTime in start screens:

// In your destination screen
import React from 'react';
import { View, Text } from 'react-native';
import { NavigationObserver } from '@provie17/react-native-performance-monitor';

const DestinationScreen = () => {
  return (
    <View>
      {/* Add the NavigationObserver with your unique access code */}
      <NavigationObserver uniqueAccessCode="YOUR_UNIQUE_ACCESS_CODE" />
      <Text>Destination Screen</Text>
    </View>
  );
};

export default DestinationScreen;

// In your starting screen
import { useNavigation } from '@react-navigation/native';
import { setNavigationStartTime } from '@provie17/react-native-performance-monitor';

const StartScreen = () => {
  const navigation = useNavigation();

  const handleNavigation = () => {
    // Record navigation start time before navigating
    setNavigationStartTime(performance.now(), 'StartScreen', 'DestinationScreen');
    navigation.navigate('DestinationScreen');
  };

  // Component JSX...
};

4. Network Request Monitoring

Use fetchWithTimer instead of the standard fetch API:

import { fetchWithTimer } from '@provie17/react-native-performance-monitor';

const fetchData = async () => {
  try {
    const response = await fetchWithTimer(
      'YOUR_UNIQUE_ACCESS_CODE',
      'RequestName', // Descriptive name for this request
      'https://api.example.com/data'
    );
    
    const data = await response.json();
    // Process your data
  } catch (error) {
    console.error('Error fetching data:', error);
  }
};

5. Component Source Registration

Register component sources in your main App component to enable code optimization suggestions:

import React, { useEffect } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { registerComponentSource } from '@provie17/react-native-performance-monitor';

const App = () => {
  useEffect(() => {
  }, []);

  return (
    <NavigationContainer>
      {/* Your app components */}
    </NavigationContainer>
  );
};

export default App;

Features

  • 📊 Accurate Performance Metrics: Precise measurements of component render times, navigation delays, and network requests
  • 🔍 Production Monitoring: Track performance in real-world usage scenarios
  • 📱 Cross-device Support: Works across different device categories with minimal overhead
  • 🧠 AI-Powered Optimization: Receive actionable optimization suggestions through ML analysis
  • 📈 Interactive Dashboard: Visualize performance metrics through a web interface

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library