Skip to content

Commit 8d709c7

Browse files
committed
Repo readmes updated
1 parent 48c8b8b commit 8d709c7

4 files changed

Lines changed: 98 additions & 41 deletions

File tree

README.md

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# React Query Native Devtool
1+
# React Query Native Devtool 🐵 Monorepo
22

33
React Native Query Devtool is a monorepo containing a React Native component and a standalone app to visualize query data in a similar way to react-query-devtools for the web.
44

@@ -7,46 +7,21 @@ React Native Query Devtool is a monorepo containing a React Native component and
77
## Features
88

99
- Provides a component for integrating query data in React Native applications running react-query v3, and @tanstack/react-query v4 and v5.
10-
- Includes a standalone app to visualize and help debug query data.
11-
12-
## Standalone App
13-
14-
The standalone app allows you to visualize and debug query data from your React Native application using the `@jsmdeleon/react-native-query-devtool` package.
10+
- (Optional) Includes a standalone app to visualize and help debug query data.
1511

1612
## Installation
1713

18-
You can download the standalone app from the following link. Currently, it's available only for **macOS M1** and **Windows x64**:
19-
20-
[Download latest App](https://github.com/jossydeleon/react-native-query-devtool-monorepo/releases)
21-
22-
**Linux users:** You need to build the app from source as it's currently only available for **macOS M1** and **Windows x64**. Ensure to set up your environment accordingly before building the app.
14+
To use the devtool component in your React Native project, install the package using `npm` or `yarn`, You will also need to install `react-native-gesture-handlers` if you haven't already.
2315

2416
```bash
25-
# Go to app folder
26-
cd react-native-query-devtool-app
27-
28-
# Install dependencies
29-
yarn
30-
31-
# Build
32-
yarn build-server
33-
```
34-
35-
After running the build command, you'll find the freshly built app in a new folder named **'out'**.
36-
37-
## React Native Component
38-
39-
To use the devtool component in your React Native project, install the package:
40-
41-
```bash
42-
npm install @jsmdeleon/react-native-query-devtool
17+
npm install react-native-gesture-handler @jsmdeleon/react-native-query-devtool
4318
# or
44-
yarn add @jsmdeleon/react-native-query-devtool
19+
yarn add react-native-gesture-handler @jsmdeleon/react-native-query-devtool
4520
```
4621

4722
## Usage
4823

49-
In your React Native application, import `QueryNativeDevtool` to send query data to the server app for debugging:
24+
In your React Native application, import `QueryNativeDevtool`
5025

5126
```javascript
5227
import { QueryNativeDevtool } from "@jsmdeleon/react-native-query-devtool";
@@ -57,7 +32,7 @@ export default function App() {
5732
<View style={styles.container}>
5833
<Main />
5934
</View>
60-
<QueryNativeDevtool queryClient={queryClient} />
35+
<QueryNativeDevtool queryClient={queryClient} useRemoteDebugger={false} />
6136
</QueryClientProvider>
6237
);
6338
}
@@ -67,27 +42,56 @@ export default function App() {
6742

6843
If your app runs `react-query v3` pass `version="v3"` prop to `QueryNativeDevtool`
6944

70-
```javascript
71-
import { QueryNativeDevtool } from "@jsmdeleon/react-native-query-devtool";
45+
## Available Props
46+
47+
| Prop Name | Type | Description | Default Value |
48+
| -------------------- | ----------- | ------------------------------------------ | ------------- |
49+
| `queryClient`\* | QueryClient | First name of the user | undefined |
50+
| `version` | string | Last name of the user | "v5" |
51+
| `hideFloatingButton` | boolean | Hides Floating button | false |
52+
| `useRemoteDebugger` | boolean | Enable remote debugging via standalone app | false |
53+
54+
## Standalone app (Optional)
55+
56+
If you want more room to debug your query data, you can download the standalone app from the following link. Currently, it's available only for **macOS M1** and **Windows x64**. Check [Standalone Repo](https://github.com/jossydeleon/react-native-query-devtool-monorepo/tree/main/packages/react-native-query-devtool-app)
7257

58+
```javascript
7359
export default function App() {
7460
return (
7561
<QueryClientProvider client={queryClient}>
76-
<View style={styles.container}>
77-
<Main />
78-
</View>
79-
<QueryNativeDevtool queryClient={queryClient} version="v3" />
62+
<QueryNativeDevtool queryClient={queryClient} useRemoteDebugger={true} />
8063
</QueryClientProvider>
8164
);
8265
}
8366
```
8467

85-
This will enable your React Native application to send query data to the Electron app for debugging purposes.
68+
[Download latest App](https://github.com/jossydeleon/react-native-query-devtool-monorepo/releases)
69+
70+
**Note:** The binaries provided are not signed. If you have concerns about security or trust, you can choose to build the app from the source code for your machine.
71+
72+
**Linux users:** You need to build the app from source as it's currently only available for **macOS M1** and **Windows x64**. Ensure to set up your environment accordingly before building the app.
73+
74+
```bash
75+
# Go to app folder
76+
cd packages/react-native-query-devtool-app
77+
78+
# Install dependencies
79+
yarn
80+
81+
# Build
82+
yarn build-server
83+
```
84+
85+
After running the build command, you'll find the freshly built app in a new folder named **'out'**.
86+
87+
**Important:** The standalone app uses port `9017` by default. Ensure that this port is available and not blocked by any firewall settings or other applications on your system.
8688

8789
## Examples
8890

8991
In the example folder, you can find example projects demonstrating the usage of `@jsmdeleon/react-native-query-devtool` with different versions of React Query (v3, v4, and v5). To test the examples, navigate to the example folder, select the desired example, and run yarn ios or yarn android.
9092

93+
[Examples Repo](https://github.com/jossydeleon/react-native-query-devtool-monorepo/tree/main/example)
94+
9195
```bash
9296
cd example
9397

@@ -102,3 +106,7 @@ yarn ios
102106
# or
103107
yarn android
104108
```
109+
110+
## Contributions
111+
112+
Contributions to improve this project are welcome! If you have any ideas for new features, enhancements, bug fixes, or optimizations, feel free to submit a pull request. You can also report any bugs or issues you encounter by opening a new issue

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"dev-electron": "cd ./packages/react-native-query-devtool-app && electron-forge start",
1212
"build-server": "cd ./packages/react-native-query-devtool-app && electron-forge make",
13-
"publish-server":"cd ./packages/react-native-query-devtool-app && electron-forge publish",
13+
"publish-server": "cd ./packages/react-native-query-devtool-app && electron-forge publish",
1414
"build-client": "cd ./packages/react-native-query-devtool && tsup",
1515
"publish-client": "cd ./packages/react-native-query-devtool && yarn publish --access public",
1616
"v3-example-ios": "cd ./example/react-query-v3 && expo start --ios",
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# @jsmdeleon/react-native-query-devtool-app
2+
3+
## Features
4+
5+
Standalone app to visualize and help debug query data. You can download it from the following link. Currently, it's available only for **macOS M1** and **Windows x64**. [Download latest App](https://github.com/jossydeleon/react-native-query-devtool-monorepo/releases)
6+
7+
**Note:** The binaries provided are not signed. If you have concerns about security or trust, you can choose to build the app from the source code for your machine.
8+
9+
**Linux users:** You need to build the app from source as it's currently only available for **macOS M1** and **Windows x64**. Ensure to set up your environment accordingly before building the app.
10+
11+
```bash
12+
# Go to app folder
13+
cd react-native-query-devtool-app
14+
15+
# Install dependencies
16+
yarn
17+
18+
# Build
19+
yarn build-server
20+
```
21+
22+
After running the build command, you'll find the freshly built app in a new folder named **'out'**.
23+
24+
**Important:** The standalone app uses port `9017` by default. Ensure that this port is available and not blocked by any firewall settings or other applications on your system.
25+
26+
## Examples
27+
28+
In the example folder, you can find example projects demonstrating the usage of `@jsmdeleon/react-native-query-devtool` with different versions of React Query (v3, v4, and v5). To test the examples, navigate to the example folder, select the desired example, and run yarn ios or yarn android.
29+
30+
[Examples Repo](https://github.com/jossydeleon/react-native-query-devtool-monorepo/tree/main/example)
31+
32+
```bash
33+
cd example
34+
35+
# Navigate to the desired example, for example:
36+
cd react-query-v3
37+
38+
# Install dependencies
39+
yarn
40+
41+
# Run example
42+
yarn ios
43+
# or
44+
yarn android
45+
```
46+
47+
## Contributions
48+
49+
Contributions to improve this project are welcome! If you have any ideas for new features, enhancements, bug fixes, or optimizations, feel free to submit a pull request. You can also report any bugs or issues you encounter by opening a new issue

packages/react-native-query-devtool/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Features
44

55
- Provides a component for integrating query data in React Native applications running react-query v3, and @tanstack/react-query v4 and v5.
6-
- (Optional) Includes a standalone app to visualize and help debug query data.
6+
- (Optional) Includes a standalone app to visualize and help debug query data. [Download latest App](https://github.com/jossydeleon/react-native-query-devtool-monorepo/releases)
77

88
## Installation
99

0 commit comments

Comments
 (0)