Skip to content

Commit acb15f0

Browse files
committed
reactxp-navigation: 1.0.5. Fixed support of RN.44+ in StandardNavigationDelegate.
1 parent bedcb48 commit acb15f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extensions/navigation/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactxp-navigation",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Plugin for ReactXP that provides a navigation framework",
55
"scripts": {
66
"build": "tsc",

extensions/navigation/src/native-common/NavigatorStandardDelegate.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import RN = require('react-native');
1313

1414
// Navigator is deprecated and moved to separate package. But this version not compatible with rn 42
1515
let RNNavigator: typeof RN.Navigator;
16-
if (RN.Navigator === undefined) {
17-
RNNavigator = require('react-native-deprecated-custom-components').Navigator;
18-
} else {
16+
try {
1917
RNNavigator = RN.Navigator;
18+
} catch (e) {
19+
RNNavigator = require('react-native-deprecated-custom-components').Navigator;
2020
}
2121

2222
import {

0 commit comments

Comments
 (0)