Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Jan 15, 2019
1 parent 557f123 commit 3524be9
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ toc: false
- Major version release is not included in this schedule for breadking change and new features.

---


### 3.0.6

`2019-01-15`

- Fixes `image-picker` `groupTypes` is not supported on Android [#264](https://github.com/ant-design/ant-design-mobile-rn/issues/264)
- Fixes `tab-bar` does not update component after tab has changed [#201](https://github.com/ant-design/ant-design-mobile-rn/issues/201)


### 3.0.5

`2019-01-03`
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ toc: false

---

### 3.0.6

`2019-01-15`

- 修复`image-picker` 报错 `groupTypes` is not supported on Android [#264](https://github.com/ant-design/ant-design-mobile-rn/issues/264)
- 修复`tab-bar` 不会更新tab内容 [#201](https://github.com/ant-design/ant-design-mobile-rn/issues/201)

### 3.0.5

`2019-01-03`
Expand Down
20 changes: 20 additions & 0 deletions docs/react/introduce.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,26 @@ class HelloWorldApp extends Component {
AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);
```

**If you need to use `Modal` and `Toast` you also need to add `Provider` to the app entry point**

```jsx
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { Button, Provider, Toast } from '@ant-design/react-native';

class HelloWorldApp extends Component {
render() {
return (
<Provider>
<Button onPress={() => Toast.info('This is a toast tips')}>
Start
</Button>
</Provider>
);
}
}
```

##### Use modularized @ant-design/react-native

The following two ways used to load the **only components you used**, select one of the ways you like.
Expand Down
20 changes: 20 additions & 0 deletions docs/react/introduce.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,26 @@ class HelloWorldApp extends Component {
AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);
```

**如果需要使用`Modal`以及`Toast`还需要在 App 的入口处加上`Provider`**

```jsx
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { Button, Provider, Toast } from '@ant-design/react-native';

class HelloWorldApp extends Component {
render() {
return (
<Provider>
<Button onPress={() => Toast.info('This is a toast tips')}>
Start
</Button>
</Provider>
);
}
}
```

##### 按需加载

下面两种方式都可以**只加载**用到的组件,选择其中一种方式即可。
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": "@ant-design/react-native",
"version": "3.0.5",
"version": "3.0.6",
"description": "基于蚂蚁金服移动设计规范的 React Native 组件库",
"keywords": [
"ant",
Expand Down

0 comments on commit 3524be9

Please sign in to comment.