@novodip/expo-router-devtools 1.0.8 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +6 -3
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Novodip
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,7 +4,8 @@ A lightweight development utility for inspecting and debugging routes in **Expo
|
|
|
4
4
|
Designed to be embedded directly into React Native apps without affecting production builds.
|
|
5
5
|
|
|
6
6
|
---
|
|
7
|
-
|
|
7
|
+
## Demo
|
|
8
|
+
https://github.com/user-attachments/assets/71dd6770-7e92-4275-9497-40b3fbbf1cae
|
|
8
9
|
## Features
|
|
9
10
|
|
|
10
11
|
- View the current route in real time
|
|
@@ -24,6 +25,8 @@ Designed to be embedded directly into React Native apps without affecting produc
|
|
|
24
25
|
- Routes are automatically stored in expo secure store
|
|
25
26
|
---
|
|
26
27
|
|
|
28
|
+
|
|
29
|
+
|
|
27
30
|
## Installation
|
|
28
31
|
|
|
29
32
|
```bash
|
|
@@ -66,21 +69,21 @@ export default function RootLayout() {
|
|
|
66
69
|
| Prop | Type | Default | Description |
|
|
67
70
|
|------|------|---------|-------------|
|
|
68
71
|
| `position` | `'top' \| 'bottom'` | `'top'` | Position of the DevTools panel |
|
|
69
|
-
| `theme` | `'light' \| 'dark'` | `'light'` | Color theme |
|
|
70
72
|
| `hideInProduction` | `boolean` | `true` | Hide in production builds |
|
|
71
73
|
| `storageKeyPrefix` | `string` | `'expo-router-devtools_'` | Prefix for SecureStore keys |
|
|
72
74
|
| `onRouteChange` | `(route: string) => void` | `undefined` | Callback when route changes |
|
|
73
75
|
| `enableHistory` | `boolean` | `true` | Enable route history tracking |
|
|
74
76
|
| `maxHistory` | `number` | `10` | Maximum history items |
|
|
75
77
|
| `maxNumOfLines` | `number` | `3` | Max lines for current route display |
|
|
78
|
+
| `replaceRoute` | `boolean` | `false` | Whether to replace of push the route |
|
|
76
79
|
|
|
77
80
|
### Example
|
|
78
81
|
|
|
79
82
|
```tsx
|
|
80
83
|
<ExpoRouterDevTools
|
|
81
84
|
position="bottom"
|
|
82
|
-
theme="dark"
|
|
83
85
|
maxHistory={20}
|
|
84
86
|
onRouteChange={(route) => console.log(route)}
|
|
85
87
|
/>
|
|
86
88
|
```
|
|
89
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novodip/expo-router-devtools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Development tools for Expo Router - visualize routes, save navigation states, and debug your app's navigation flow",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|