We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bedcb48 commit acb15f0Copy full SHA for acb15f0
extensions/navigation/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "reactxp-navigation",
3
- "version": "1.0.4",
+ "version": "1.0.5",
4
"description": "Plugin for ReactXP that provides a navigation framework",
5
"scripts": {
6
"build": "tsc",
extensions/navigation/src/native-common/NavigatorStandardDelegate.tsx
@@ -13,10 +13,10 @@ import RN = require('react-native');
13
14
// Navigator is deprecated and moved to separate package. But this version not compatible with rn 42
15
let RNNavigator: typeof RN.Navigator;
16
-if (RN.Navigator === undefined) {
17
- RNNavigator = require('react-native-deprecated-custom-components').Navigator;
18
-} else {
+try {
19
RNNavigator = RN.Navigator;
+} catch (e) {
+ RNNavigator = require('react-native-deprecated-custom-components').Navigator;
20
}
21
22
import {
0 commit comments