Skip to content

Commit b120c45

Browse files
committed
react-router-dom
1 parent 0cab89e commit b120c45

File tree

4,327 files changed

+229617
-76043
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,327 files changed

+229617
-76043
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For example:
2121
In the render function return
2222

2323
```
24-
<Navigator onRef={ref => (this.navigatorRef = ref)} >
24+
<Navigator onRef={ref => (this.navigatorRef = ref)} onError={(error)=>{} }>
2525
2626
2727
<MyHomePage key="home" levelPage={0} />
@@ -84,6 +84,27 @@ options = { animatioPageIn:"fadeInRight" // have defult
8484
<td>required</td>
8585
<td>-</td>
8686
<td> onRef={ref => (this.navigatorRef = ref)} </td>
87+
</tr>
88+
<tr>
89+
<td>onError</td>
90+
<td>function</td>
91+
<td>optional</td>
92+
<td>-</td>
93+
<td> onError={error => ( do something )} </td>
94+
</tr>
95+
<tr>
96+
<td>beforBack</td>
97+
<td>function</td>
98+
<td>optional</td>
99+
<td>-</td>
100+
<td>For android backbutton only. beforBack={() =>{ ( do something and return false to stop back page process or retun true. )}} </td>
101+
</tr>
102+
<tr>
103+
<td>beforExit</td>
104+
<td>function</td>
105+
<td>optional</td>
106+
<td>-</td>
107+
<td>For android backbutton only. beforExit={() =>{ ( do something and return false to retun true to exit the app. )}} </td>
87108
</tr>
88109
<tr>
89110
<td>key</td>
@@ -192,6 +213,13 @@ options = { animatioPageIn:"fadeInRight" // have defult
192213
<td>optional</td>
193214
<td>-</td>
194215
<td></td>
216+
</tr>
217+
<tr>
218+
<td>props</td>
219+
<td>json</td>
220+
<td>optional</td>
221+
<td>-</td>
222+
<td>props={{myPropExample:this.state.example}}</td>
195223
</tr>
196224
<tr>
197225
<td>kill</td>

dist/index.js

Lines changed: 399 additions & 254 deletions
Large diffs are not rendered by default.

node_modules/.bin/acorn

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/acorn.cmd

Lines changed: 16 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/acorn.ps1

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mkdirp

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mkdirp.cmd

Lines changed: 16 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/mkdirp.ps1

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/terser

Lines changed: 0 additions & 15 deletions
This file was deleted.

node_modules/.bin/terser.cmd

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)