Skip to content

Commit da41420

Browse files
committed
2.0.2
1 parent c027e4b commit da41420

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

dist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ var Navigator = function (_React$Component) {
5959
} else {
6060
startPage = window.location.href.substr(window.location.href.lastIndexOf("/")) === "/" || window.location.href.substr(window.location.href.lastIndexOf("/")) === "/#" ? homePage : window.location.href.substr(window.location.href.lastIndexOf("/") + 2);
6161
}
62+
if (props.routerKey) {
63+
startPage = props.routerKey;
64+
}
65+
6266
_this.touchBackPage = "";
6367

6468
_this.callbackFunOnChangePage = function () {};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react.cordova-navigation_controller",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Navigator for Cordova with React.js(react.cordova), This will help you to manage your pages history in the app and change pages with animation.",
55
"main": "dist/index.js",
66
"scripts": {

src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export default class Navigator extends React.Component {
4040
window.location.href.lastIndexOf("/") + 2
4141
);
4242
}
43+
if (props.routerKey) {
44+
startPage = props.routerKey;
45+
}
46+
4347
this.touchBackPage = "";
4448

4549
this.callbackFunOnChangePage = () => {};

0 commit comments

Comments
 (0)