Gathering detailed insights and metrics for react-native-react-query-devtools
Gathering detailed insights and metrics for react-native-react-query-devtools
Gathering detailed insights and metrics for react-native-react-query-devtools
Gathering detailed insights and metrics for react-native-react-query-devtools
react-query-native-devtools
Flipper client plug-in for [React Query](https://github.com/tannerlinsley/react-query)
flipper-plugin-react-query-native-devtools
Inspect React Query cache with Flipper
react-query-external-sync
A tool for syncing React Query state to an external Dev Tools
@choi2021/react-native-react-query-devtools
React Query Dev Tools for React Native
React Query Dev Tools for React Native
npm install react-native-react-query-devtools
Typescript
Module System
Node Version
NPM Version
61.3
Supply Chain
55.2
Quality
77.9
Maintenance
50
Vulnerability
93.8
License
TypeScript (98.53%)
JavaScript (1.47%)
Total Downloads
265,254
Last Day
319
Last Week
8,444
Last Month
38,388
Last Year
255,213
146 Stars
69 Commits
9 Forks
3 Watchers
18 Branches
7 Contributors
Updated on Jul 05, 2025
Minified
Minified + Gzipped
Latest Version
1.5.0
Package Id
react-native-react-query-devtools@1.5.0
Unpacked Size
134.26 kB
Size
35.57 kB
File Count
46
NPM Version
10.8.2
Node Version
20.18.3
Published on
May 27, 2025
Cumulative downloads
Total Downloads
Last Day
3.2%
319
Compared to previous day
Last Week
-5.8%
8,444
Compared to previous week
Last Month
-1.3%
38,388
Compared to previous month
Last Year
2,441.7%
255,213
Compared to previous year
1
4
React Query Dev Tools The same tool you know and love! Now available for React Native with enhanced features and modern UI!
To integrate React Query Dev Tools into your React Native project, follow these simple installation steps. Open your terminal, navigate to your project directory, and execute:
1npm install react-native-react-query-devtools
This command adds the react-native-react-query-devtools package to your project dependencies, making the Dev Tools available for use.
Incorporating React Query Dev Tools into your application is straightforward. Begin by importing the DevToolsBubble component.
1import { DevToolsBubble } from "react-native-react-query-devtools";
Next, integrate the DevToolsBubble component into your app. To enable object copying functionality, you must provide a custom copy function that works with your platform (Expo or React Native CLI).
1function RootLayoutNav() { 2 const colorScheme = useColorScheme(); 3 const queryClient = new QueryClient(); 4 5 // Define your copy function based on your platform 6 const onCopy = async (text: string) => { 7 try { 8 // For Expo: 9 await Clipboard.setStringAsync(text); 10 // OR for React Native CLI: 11 // await Clipboard.setString(text); 12 return true; 13 } catch { 14 return false; 15 } 16 }; 17 18 return ( 19 <QueryClientProvider client={queryClient}> 20 <ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}> 21 <Stack> 22 <Stack.Screen name="(tabs)" options={{ headerShown: false }} /> 23 <Stack.Screen name="modal" options={{ presentation: "modal" }} /> 24 </Stack> 25 </ThemeProvider> 26 <DevToolsBubble onCopy={onCopy} queryClient={queryClient} /> 27 </QueryClientProvider> 28 ); 29}
The onCopy
prop is required to enable copying functionality in the dev tools. This function should:
Example implementations:
For Expo:
1import * as Clipboard from "expo-clipboard"; 2 3const onCopy = async (text: string) => { 4 try { 5 await Clipboard.setStringAsync(text); 6 return true; 7 } catch { 8 return false; 9 } 10};
For React Native CLI:
1import Clipboard from "@react-native-clipboard/clipboard"; 2 3const onCopy = async (text: string) => { 4 try { 5 await Clipboard.setString(text); 6 return true; 7 } catch { 8 return false; 9 } 10};
The DevToolsBubble component accepts additional props for customization:
1interface DevToolsBubbleProps { 2 queryClient: QueryClient; // Required: The QueryClient instance to use 3 onCopy: (text: string) => Promise<boolean>; 4 // Optional: Callback when selection state changes 5 onSelectionChange?: (hasSelection: boolean) => void; 6 // Optional: Custom pan responder for advanced gesture handling 7 panResponder?: PanResponderInstance; 8}
MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or have questions, please open an issue on GitHub.
No vulnerabilities found.
No security vulnerabilities found.