hybrid-navigation 2.13.1 → 2.13.2
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/android/build.gradle +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +1 -1
- package/src/NavigationComponentWrap.tsx +0 -2
- package/src/hooks.ts +0 -1
- package/src/index.ts +2 -7
- package/src/router/index.ts +0 -2
package/android/build.gradle
CHANGED
|
@@ -33,5 +33,5 @@ dependencies {
|
|
|
33
33
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
34
34
|
implementation 'com.facebook.react:react-native:+'
|
|
35
35
|
// api project(':navigation')
|
|
36
|
-
api 'io.github.listenzz:AndroidNavigation:12.5.
|
|
36
|
+
api 'io.github.listenzz:AndroidNavigation:12.5.8'
|
|
37
37
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare function topBarHeight(): number;
|
|
|
5
5
|
export default Navigation;
|
|
6
6
|
export { statusBarHeight, toolbarHeight, topBarHeight };
|
|
7
7
|
export { RESULT_OK, RESULT_CANCEL } from './Navigation';
|
|
8
|
-
export {
|
|
8
|
+
export { withNavigationItem, NavigationProps, InjectedProps } from './NavigationComponentWrap';
|
|
9
9
|
export * from './Navigator';
|
|
10
10
|
export * from './Garden';
|
|
11
11
|
export * from './ReactRegistry';
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
|
-
import Navigation from './Navigation';
|
|
3
2
|
import Event from './Event';
|
|
4
3
|
import GardenModule from './GardenModule';
|
|
5
4
|
import { withNavigation } from './NavigationComponentWrap';
|
|
5
|
+
import Navigation from './Navigation';
|
|
6
6
|
Navigation.setNavigationComponentWrap(withNavigation);
|
|
7
7
|
const { STATUSBAR_HEIGHT, TOOLBAR_HEIGHT } = GardenModule.getConstants();
|
|
8
8
|
let _statusBarHeight = STATUSBAR_HEIGHT;
|
|
@@ -23,7 +23,7 @@ function topBarHeight() {
|
|
|
23
23
|
export default Navigation;
|
|
24
24
|
export { statusBarHeight, toolbarHeight, topBarHeight };
|
|
25
25
|
export { RESULT_OK, RESULT_CANCEL } from './Navigation';
|
|
26
|
-
export {
|
|
26
|
+
export { withNavigationItem } from './NavigationComponentWrap';
|
|
27
27
|
export * from './Navigator';
|
|
28
28
|
export * from './Garden';
|
|
29
29
|
export * from './ReactRegistry';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hybrid-navigation",
|
|
3
3
|
"description": "React Native Navigation that supports seamless navigation between Native and React.",
|
|
4
|
-
"version": "2.13.
|
|
4
|
+
"version": "2.13.2",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|
package/src/hooks.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Platform } from 'react-native'
|
|
2
|
-
import Navigation from './Navigation'
|
|
3
2
|
import Event from './Event'
|
|
4
3
|
import GardenModule from './GardenModule'
|
|
5
4
|
import { withNavigation } from './NavigationComponentWrap'
|
|
5
|
+
import Navigation from './Navigation'
|
|
6
6
|
|
|
7
7
|
Navigation.setNavigationComponentWrap(withNavigation)
|
|
8
8
|
|
|
@@ -29,12 +29,7 @@ function topBarHeight() {
|
|
|
29
29
|
export default Navigation
|
|
30
30
|
export { statusBarHeight, toolbarHeight, topBarHeight }
|
|
31
31
|
export { RESULT_OK, RESULT_CANCEL } from './Navigation'
|
|
32
|
-
export {
|
|
33
|
-
withNavigation,
|
|
34
|
-
withNavigationItem,
|
|
35
|
-
NavigationProps,
|
|
36
|
-
InjectedProps,
|
|
37
|
-
} from './NavigationComponentWrap'
|
|
32
|
+
export { withNavigationItem, NavigationProps, InjectedProps } from './NavigationComponentWrap'
|
|
38
33
|
|
|
39
34
|
export * from './Navigator'
|
|
40
35
|
export * from './Garden'
|
package/src/router/index.ts
CHANGED
|
@@ -152,7 +152,6 @@ class Router {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
const route = this.pathToRoute(path, props, options)
|
|
155
|
-
|
|
156
155
|
if (!route) {
|
|
157
156
|
return
|
|
158
157
|
}
|
|
@@ -175,7 +174,6 @@ class Router {
|
|
|
175
174
|
const routeGraph = graphArray[0]
|
|
176
175
|
|
|
177
176
|
const consumed = await this.processRoute(route, routeGraph)
|
|
178
|
-
|
|
179
177
|
if (consumed) {
|
|
180
178
|
return
|
|
181
179
|
}
|