-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31a1846
commit cdf8292
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## 支持mobx | ||
[mobx](https://github.com/mobxjs/mobx) 是React技术栈除了Redux之外,另一个比较流行的数据管理库。 Alita从1.0.2版本开始支持[mobx](https://github.com/mobxjs/mobx)的使用。 | ||
|
||
[mobx](https://github.com/mobxjs/mobx)最新的版本是**5.x**,但是**5.x**在实现上使用了[ES6 Proxies](https://kangax.github.io/compat-table/es6/#test-Proxy)。处于对兼容性的考虑,包括RN的兼容性,Alita转化H5的兼容性等等,我们并没有使用最新的**5.x**版本,而是使用了**4.11.0**, 对应的[mobx-react](https://github.com/mobxjs/mobx-react)使用了**5.4.4**版本。 所以在你的React Native项目,请: | ||
|
||
```shell | ||
npm install [email protected] [email protected] --save | ||
``` | ||
|
||
|
||
|