hybrid-navigation 3.0.3 → 3.0.4

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.
@@ -6,7 +6,6 @@ import { DrawerRouteHandler } from './drawer';
6
6
  import Navigation from '../Navigation';
7
7
  function pathParams(path) {
8
8
  const pathMatch = match(path, {
9
- encode: encodeURI,
10
9
  decode: decodeURIComponent,
11
10
  })(path);
12
11
  return pathMatch ? pathMatch.params : {};
@@ -40,7 +39,7 @@ class Router {
40
39
  if (!path.startsWith('/')) {
41
40
  route.path = '/' + route.path;
42
41
  }
43
- regexp = pathToRegexp(path);
42
+ regexp = pathToRegexp(path).regexp;
44
43
  }
45
44
  mode = mode || 'push';
46
45
  return { moduleName, mode, path, regexp, dependency };
@@ -21,9 +21,9 @@
21
21
 
22
22
  UIView *view = [super hitTest:point withEvent:event];
23
23
  NSString *viewName = [[[view classForCoder] description] stringByReplacingOccurrencesOfString:@"_" withString:@""];
24
-
24
+
25
25
  // RCTLogInfo(@"viewName:%@", viewName);
26
-
26
+
27
27
  NSArray *array = @[@"UINavigationBarContentView", @"UIButtonBarStackView", @"UIKit.NavigationBarContentView", NSStringFromClass([self class])];
28
28
  if ([array containsObject:viewName] && self.fakeBackgroundView.alpha < 0.01) {
29
29
  return nil;
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": "3.0.3",
4
+ "version": "3.0.4",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
7
7
  "react-native": "src/index",
@@ -12,7 +12,6 @@
12
12
  "android",
13
13
  "ios",
14
14
  "HybridNavigation.podspec",
15
- "README.md",
16
15
  "!android/build",
17
16
  "!android/.gradle",
18
17
  "!android/.idea",
@@ -45,7 +44,7 @@
45
44
  "react-native": ">=0.83"
46
45
  },
47
46
  "dependencies": {
48
- "path-to-regexp": "^6.1.0"
47
+ "path-to-regexp": "^8.3.0"
49
48
  },
50
49
  "devDependencies": {},
51
50
  "codegenConfig": {
@@ -21,7 +21,6 @@ interface IndexType {
21
21
 
22
22
  function pathParams(path: string) {
23
23
  const pathMatch = match<IndexType>(path, {
24
- encode: encodeURI,
25
24
  decode: decodeURIComponent,
26
25
  })(path);
27
26
  return pathMatch ? pathMatch.params : {};
@@ -60,7 +59,7 @@ class Router {
60
59
  if (!path.startsWith('/')) {
61
60
  route.path = '/' + route.path;
62
61
  }
63
- regexp = pathToRegexp(path);
62
+ regexp = pathToRegexp(path).regexp;
64
63
  }
65
64
  mode = mode || 'push';
66
65
  return { moduleName, mode, path, regexp, dependency };