Skip to content

Commit

Permalink
release 2.2.0 close #2556
Browse files Browse the repository at this point in the history
  • Loading branch information
warmhug committed Jun 15, 2018
1 parent 460861a commit 9a4bc08
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ toc: false

### 2.2.0

`2018-06-19`
`2018-06-15`

Note: According to the previous [2.1.x final version plan](https://github.com/ant-design/ant-design-mobile/issues/2556), we have separated the react native components into a separate [ant-design-mobile-rn](https://github.com/ant-design/ant-design-mobile-rn) repo, and the `antd-mobile-rn` beta npm package has been released. If you use the react native components, modify your `package.json` file like so:

```diff
...
"dependencies": {
- "antd-mobile": "^2.1.11",
+ "antd-mobile-rn": "next",
+ "antd-mobile-rn": "^2.2.0",
"react": "16.3.1",
...
},
Expand All @@ -46,6 +46,7 @@ Then reinstall node_modules.
- **Enhancement**

- 📝 Update `Stepper` API doc ([#2573](https://github.com/ant-design/ant-design-mobile/issues/2573))
- Improve test

### 2.1.11

Expand Down
5 changes: 3 additions & 2 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ toc: false

### 2.2.0

`2018-06-19`
`2018-06-15`

注意:根据之前的 [2.1.x 最后版本计划](https://github.com/ant-design/ant-design-mobile/issues/2556),我们已经分离 react native 组件代码到单独的 [ant-design-mobile-rn](https://github.com/ant-design/ant-design-mobile-rn) 仓库,并且已经发布了 `antd-mobile-rn` beta 包。如果使用 react native 组件,请这样修改 `package.json` 文件:

```diff
...
"dependencies": {
- "antd-mobile": "^2.1.11",
+ "antd-mobile-rn": "next",
+ "antd-mobile-rn": "^2.2.0",
"react": "16.3.1",
...
},
Expand All @@ -46,6 +46,7 @@ toc: false
- **Enhancement**

- 📝 更新 `Stepper` API 文档 ([#2573](https://github.com/ant-design/ant-design-mobile/issues/2573))
- 增强测试

### 2.1.11

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "antd-mobile",
"version": "2.2.0-beta.1",
"version": "2.2.0",
"description": "基于 React 的移动设计规范实现",
"homepage": "http://mobile.ant.design",
"keywords": [
Expand Down
4 changes: 0 additions & 4 deletions site/desktop/src/template/Layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ export default class Layout extends React.Component {
return (
<IntlProvider locale={appLocale.locale} messages={appLocale.messages}>
<div className="page-wrapper">
<p style={{ backgroundColor: '#e6f7ff', textAlign: 'center', padding: '10px 0' }}>
Note: In antd-mobile@2.2.0, React Native components will be transferred to the separate
<span style={{ color: 'red' }}> antd-mobile-rn </span> package. Ref: <a href="https://github.com/ant-design/ant-design-mobile/issues/2556">#2556</a>
</p>
<Header {...restProps} isFirstScreen={isFirstScreen} />
{cloneElement(children, { isFirstScreen, onEnterChange: this.onEnterChange })}
<Footer {...restProps} />
Expand Down

0 comments on commit 9a4bc08

Please sign in to comment.