|
1 | 1 | ### 功能集合 |
2 | | -- [x] 热更新 code-push |
3 | | -- [x] carousel |
4 | | -- [x] redux 案例 |
5 | | -- [x] react-navigation 案例 |
6 | | -- [x] Android 硬更新 |
7 | | -- [x] iOS 硬更新 |
8 | | -- [ ] native 层 |
| 2 | + |
| 3 | +* [x] 热更新 code-push |
| 4 | +* [x] carousel |
| 5 | +* [x] redux 案例 |
| 6 | +* [x] react-navigation 案例 |
| 7 | +* [x] Android 硬更新 |
| 8 | +* [x] iOS 硬更新 |
| 9 | +* [ ] native 层 |
9 | 10 |
|
10 | 11 | ### 项目架构 |
11 | | -- [x] react-native, |
12 | | -- [x] react-navigation, |
13 | | -- [x] redux, |
14 | | -- [x] mobx, |
15 | | -- [x] react-native-vector-icons |
16 | | -- [x] react-native-splash-screen |
17 | | -- [x] react-native-code-push |
18 | | -... |
| 12 | + |
| 13 | +* [x] react-native, |
| 14 | +* [x] react-navigation, |
| 15 | +* [x] redux, |
| 16 | +* [x] mobx, |
| 17 | +* [x] react-native-vector-icons |
| 18 | +* [x] react-native-splash-screen |
| 19 | +* [x] react-native-code-push |
| 20 | + ... |
19 | 21 |
|
20 | 22 | ### 自动化工具 |
21 | | -- [x] prettier |
| 23 | + |
| 24 | +* [x] prettier |
22 | 25 |
|
23 | 26 | #### 案例效果图 |
| 27 | + |
24 | 28 | <center class="half"> |
25 | 29 | <img src="./assets/new_login.jpg" width="300px"/> |
26 | 30 | <img src="./assets/new_list.jpg" width="300px"/> |
|
29 | 33 |
|
30 | 34 | <figure> |
31 | 35 | <img src="./assets/new_info.jpg" width="300px"/> |
32 | | -</figure> |
| 36 | +</figure> |
33 | 37 |
|
34 | 38 | ### 快捷地址: |
| 39 | + |
35 | 40 | > [immutable doc][immutable] |
36 | 41 |
|
37 | 42 | > [immutable blog][immutable-blog] |
38 | 43 |
|
39 | 44 | > [react-navigation doc][react-navigation] |
40 | 45 |
|
41 | | -> [React Native Express ][React-Native-Express] |
| 46 | +> [React Native Express ][react-native-express] |
42 | 47 |
|
43 | 48 | > [react-navigation-redux-helpers doc][react-navigation-redux-helpers] |
44 | 49 |
|
|
47 | 52 | <img src="./assets/tab-navigator.png"/> |
48 | 53 |
|
49 | 54 | ### 介绍 Redux 中间件(Middleware) |
50 | | -还记得Redux的GIF嘛 |
| 55 | + |
| 56 | +还记得 Redux 的 GIF 嘛 |
51 | 57 |
|
52 | 58 | <img src="./assets/redux.gif" width="550px"/> |
53 | 59 |
|
|
56 | 62 | <img src="./assets/change-redux.gif" width="550px"/> |
57 | 63 |
|
58 | 64 | 正如你所看到的,这里还有一个概念:Middleware |
59 | | -#### 什么是Middleware |
60 | | -从[文档][Middleware]中看到: |
| 65 | + |
| 66 | +#### 什么是 Middleware |
| 67 | + |
| 68 | +从[文档][middleware]中看到: |
61 | 69 |
|
62 | 70 | ``` |
63 | 71 | It provides a third-party extension point between dispatching an action, and the moment it reaches the reducer |
64 | 72 | ``` |
65 | 73 |
|
66 | | -简而言之,这是一个函数,在Action到达Reducer之前,将使用Action调用该函数。 |
67 | | - |
68 | | -在这个功能中,你可以让Action继续前进,你可以阻止它继续前进,或者你可以改变它,并把它发送给下一个。 |
| 74 | +简而言之,这是一个函数,在 Action 到达 Reducer 之前,将使用 Action 调用该函数。 |
69 | 75 |
|
| 76 | +在这个功能中,你可以让 Action 继续前进,你可以阻止它继续前进,或者你可以改变它,并把它发送给下一个。 |
70 | 77 |
|
71 | | -[new-nav-redux]:http://blog.csdn.net/qq_33323251/article/details/79430398 |
| 78 | +[new-nav-redux]: http://blog.csdn.net/qq_33323251/article/details/79430398 |
72 | 79 | [immutable-blog]: https://github.com/camsong/blog/issues/3 |
73 | | -[Middleware]: http://redux.js.org/docs/advanced/Middleware.html |
| 80 | +[middleware]: http://redux.js.org/docs/advanced/Middleware.html |
74 | 81 | [immutable]: https://facebook.github.io/immutable-js/docs/#/ |
75 | 82 | [react-navigation]: https://reactnavigation.org/docs/getting-started.html |
76 | | -[React-Native-Express]: http://www.reactnativeexpress.com/ |
77 | | -[react-navigation-redux-helpers]:https://github.com/react-navigation/react-navigation-redux-helpers |
78 | | - |
79 | | - |
| 83 | +[react-native-express]: http://www.reactnativeexpress.com/ |
| 84 | +[react-navigation-redux-helpers]: https://github.com/react-navigation/react-navigation-redux-helpers |
0 commit comments